-
4 votesanswersviews
Visual Studio 2010 Arduino cpp错误:类型“char *”的参数与“LPCWSTR”类型的参数不兼容
我在这里找到的代码工作了'm trying to set up an arduino uno for serial port communication with a C++ program in visual studio 2010. I':http://playground.arduino.cc/Interfacing/CPPWindows 不幸的是,.cpp文件为变量'portName'的第... -
1 votesanswersviews
如何将char *传递给GetModuleHandle函数?
我只是想根据一个很像“somefile.exe”的字符串来获取模块信息 . MODULEINFO GetModuleInfo(char *szModule) { MODULEINFO modinfo = {0}; HMODULE hModule = GetModuleHandle(szModule); if(hModule == 0) return modi... -
0 votesanswersviews
LPCWSTR到char *,反之亦然
我正在使用DirectX9开展一个简单的项目 . 我对数据类型的一些转换有点困难,我做了一些研究,但没有发现任何特别有用的东西 . 让我们从代码开始: LPDIRECT3DSURFACE9 LoadSurface(char *fileName, D3DCOLOR transColor) { LPDIRECT3DSURFACE9 image = NULL; D3DXIMAGE_INFO info; ... -
0 votesanswersviews
WORD *类型的参数与LPCWSTR类型的参数不兼容
问题是 &cursorTile.Attributes.我得到的错误是 (argument of type "WORD*" is incompatible with parameter of type "LPCWSTR")我试图找到一些解决方案,我使用的是多字节字符集 . void CMap::Draw(){ SMALL_RECT drawRect =... -
-3 votesanswersviews
“char *”类型的参数与“LPCWSTR”类型的参数不兼容[重复]
这个问题在这里已有答案: Convert char[] to LPCWSTR 5个答案 我收到此错误: “char *”类型的参数与“LPCWSTR”类型的参数不兼容 这是我的代码的一部分 void score(void) { char s[128]; sprintf_s(s, "Thread War! Hits:%d Misses:%d", hit,...