FILE *pFile = fopen("d:\\$I25RSCR.PNG","rb");
if (pFile == NULL)
{
return 1;
}
fseek (pFile, 0 , SEEK_END);
int lSize = ftell (pFile);
rewind (pFile);
std::vector<WCHAR> tempData(lSize);
int result = fread (&tempData[0],1,lSize,pFile);
int index = 0;
int ilen = _tcslen( &tempData[0] );
std::vector<std::wstring> strData;
while ( TRUE )
{
strData.push_back(&tempData[index]);
index += ilen +1;
if (index>=lSize)
{
break;
}
ilen = _tcslen( &tempData[index] );
}
fclose(pFile);
//
FILE *pfile=_wfopen(L"D:\\OUTerr.out",L"wb+");
fwrite(strTmp.GetBuffer(),sizeof(TCHAR),_tcslen(strTmp.GetBuffer()),pfile);
fclose(pfile);