Thanks for your reply. Yes, you are correct and we dont even have audio. I already have a way to save videos, but when saving longer videos, I am facing issues such as file index corruption etc and these longer videos are very important for us as they are research data.
I am looking for a new better way tos ave videos without any problems.
Would AVIFileWriteData do the trick? "The AVIFileWriteData function writes supplementary data (other than normal header, format, and stream data) to the file."
I hope you are well aware that there are at least three Win32 API for working on audio / video files. The "AVI", "capAVI" and "wave". I am curently using capAVI and recomend always to use whatever standard status/ error reporting API's are avaiable in the particular set. Cheers Vaclav
Try to Google "ffmpeg" this library helps you to write avi files with very little hassle. You can even choose coded or write uncompressed files using their example code included in the library download.
I'm trying to copy some C code to a C++ class and I've got stuck with a function pointer issue. I've been trying to mess around with calling conventions but I don't want to make my C++ function static and don't want to change the old C code. Thanks for looking.
int theFunction(int theParam1);
typedef int (*funcPtr) (int Param1);
int theClass::theFunction(int theParam1)
int function(int theParam1)
bool globFunction (funcPtr aFunction, bool someOtherArg)
int anArg = 0;
int ret = aFunction(anArg);
globFunction (function, false);
globFunction (&theClass::theFunction, true); // error C2440: 'type cast' : cannot convert from 'int (__thiscall theClass::* )(int)' to 'funcPtr'return0;