有人可以告诉我如何在消息框中输出 szFileName 吗?
我在下面的尝试不起作用
//Retrieve the path to the data.dat in the same dir as our app.dll is located
TCHAR szFileName[MAX_PATH+1];
GetModuleFileName(_Module.m_hInst, szFileName, MAX_PATH+1);
StrCpy(PathFindFileName(szFileName), _T("data.dat"));
FILE *file =fopen(szFileName,"rb");
if (file)
{
fseek( file,iFirstByteToReadPos, SEEK_SET);
fread(bytes,sizeof(unsigned char), iLenCompressedBytes, file);
fclose(file);
}
else
{
MessageBox(NULL, szFileName + " not found", NULL, MB_OK);
DebugBreak();
}