...C2664: “CreateThread”: 不能将参数 6 从“int *”转换为“...
_T宏是定义字符串常量用的,char型字符串转换为WCHAR型字符串是用MultiByteToWideChar,MSDN中有例子,如果用MFC,可以用A2T宏来实现char型字符串向TCHAR型字符串转换。
最好程序中都使用TCHAR,这样通常不需要做转换。
http://hi.baidu.com/ybear2008/blog/item/5d529cdb95da1361d0164eac.html
如何把CString转换为DWORD
再把 dword转为字符串的也发出来void HashToString(char *strHash,SHA1 hash,int iSize) //hash转成字符串{uchar *p=(uchar *)&hash;char tmp[3]={0};for (int j=0;j{sprintf(tmp,"%02X",(uchar)p[j]);//OutputDebugString(tmp);strcat(strHash,tmp);}//OutputDebugString(strHash);}
转载请注明出处51数据库 » lpdword转dword
老娘很温柔-