cl_dll/vfw.cpp
// LoadAVIFile - loads AVIFile and opens an AVI file.
//
// szfile - filename
// hwnd - window handle
//
loads AVIFile and opens an AVI file.
szfile - filename
hwnd - window handle
loads AVIFile and opens an AVI file . szfile - filename hwnd - window handle
void LoadAVIFile(const char *szFile)
{
	LONG hr;
	PAVIFILE pfile;
	AVIFileInit(); 
	hr = AVIFileOpen(&pfile, szFile, OF_SHARE_DENY_WRITE, 0L);
	if (hr != 0)
	{
		return;
	}
	 Place functions here that interact with the open file.
	AVIFileRelease(pfile);  closes the file
	AVIFileExit();		    releases AVIFile library
}
void LoadAVIFile ( const char * szFile ) { LONG hr ; PAVIFILE pfile ; AVIFileInit ( ) ; hr = AVIFileOpen ( & pfile , szFile , OF_SHARE_DENY_WRITE , 0L ) ; if ( hr != 0 ) { return ; } AVIFileRelease ( pfile ) ; AVIFileExit ( ) ; }
LoadAVIFile - loads AVIFile and opens an AVI file.
LoadAVIFile - loads AVIFile and opens an AVI file .
// opens AVIFile library // Handle failure. // // Place functions here that interact with the open file. // // closes the file // releases AVIFile library