error C2664: “CWnd::MessageBoxW”: 不能将参数 1 从“char *[260]”转换为“LPCTSTR”
voidCMFCRWDlg::OnBnClickedButton2(){FILE*pFile=fopen("demo.txt","r");if(pFile){char*p...
void CMFCRWDlg::OnBnClickedButton2()
{
FILE *pFile = fopen("demo.txt","r");
if (pFile)
{
char *pchDate[MAX_PATH] ={0};
fread(pchDate,sizeof(char),MAX_PATH,pFile);
MessageBox(pchDate,_T("tishi"));
fclose(pFile);
}
} 展开
{
FILE *pFile = fopen("demo.txt","r");
if (pFile)
{
char *pchDate[MAX_PATH] ={0};
fread(pchDate,sizeof(char),MAX_PATH,pFile);
MessageBox(pchDate,_T("tishi"));
fclose(pFile);
}
} 展开
2个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询