赞
踩
//W2M
WCHAR szManufacturer[MAX_PATH+1]={0};
HidD_GetManufacturerString(m_DeviceHandle, szManufacturer, MAX_PATH);
char _devicename[100];
mbs = NULL;
//M2W
char* mstr = "mutil char test";
int lengthOfM = MultiByteToWideChar( CP_ACP, 0,mstr , -1, NULL, 0 );
wchar_t* wcs = new wchar_t[lengthOfM ];
MultiByteToWideChar( CP_ACP, 0,mstr , -1, wcs,lengthOfM );
delete wcs;
wcs = NULL;
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。