void dshowCapture::initlogfile() { /////////log file initialization//// TCHAR dwDirectory[256]; TCHAR capturelogfile[256]; ZeroMemory(dwDirectory, sizeof(dwDirectory)); ZeroMemory(capturelogfile, sizeof(capturelogfile)); GetCurrentDirectory(256, dwDirectory); strcpy (capturelogfile,dwDirectory); strcat(capturelogfile,"\\CaptureLog.txt"); std::ofstream *fs; fs=new std::ofstream(capturelogfile); char *log="helow"; for(int i=0;i<1000;i++) fs->write(log,sizeof(log)); fs->close(); delete fs; }
std::ofstream *fs; fs=new std::ofstream(capturelogfile);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)