C++ 编译错误 “CREATEFILEW”: 不能将参数 _从“CHAR []”转换为“LPCWSTR”
HANDLEhCom;DWORDdwError;hCom=CreateFile("COM1",GENERIC_READ|GENERIC_WRITE,0,NULL,OPEN_EXISTING,0,NULL);if(hCom==(HANDLE)0xFFFFFFFF){dwError=GetLastError();MessageBox(dwError); 解决方法: 1.由于VS2005/2008/20