能力值:
( LV2,RANK:10 )
|
-
-
[求助]Unicode串和寄存器问题
A是ASCII版本的
W是unicode版本
系统根据你编译的语言会自动选择相应版本
所以你直接使用MessageBox应该可以
而且写入文件后 也是只有一个字符 如下面的函数 请问为何?
void _stdcall WriteToFile(char buff[50])
{
HANDLE hFile=CreateFile("c:\\log.txt",GENERIC_WRITE,0,NULL,OPEN_ALWAYS,FILE_ATTRIBUTE_NORMAL,NULL);
if(hFile==INVALID_HANDLE_VALUE)
{
return;
}
::SetFilePointer(hFile,0,NULL,FILE_END);
DWORD dwWrite;
WriteFile(hFile,buff,strlen(buff),&dwWrite,NULL);
CloseHandle(hFile);
}
|