I am using Visual Studio 6.0 Professional. I am receving a video file by the network by listening to a specified socket. I am creating a file and writing those packets in it. I have a thread that creates and writes to file and I have another thread that open Windows media player with filename path specified. The command I use is:
system(cmd); //string cmd = "wmplayer.exe" + filename
The proble is that when wmplayer tries to open the file, it says it is already in use. But my application needs to open the file to continuously write the data being received. (I am streaming a video feed from another computer and I want to be able to play it while I am still receiving packets).
To open the file, I am doing:
FILE *pVideoFile;
fp = fopen(DEST_FILENAME, "wb+");
Is there a way to create a file that has no protection access so that Windows player will accept to open it while I am writing in it.
system(cmd); //string cmd = "wmplayer.exe" + filename
The proble is that when wmplayer tries to open the file, it says it is already in use. But my application needs to open the file to continuously write the data being received. (I am streaming a video feed from another computer and I want to be able to play it while I am still receiving packets).
To open the file, I am doing:
FILE *pVideoFile;
fp = fopen(DEST_FILENAME, "wb+");
Is there a way to create a file that has no protection access so that Windows player will accept to open it while I am writing in it.