[求助]静态文本框的问题
就是想在静态文本框里得到这种显示路径的效果,应该怎么办呢
HKEY hKey3;
LPBYTE DirectoryBuffer = new BYTE [60];
DWORD BufferSize=60;
DWORD WordType = REG_SZ;
RegOpenKeyEx(HKEY_LOCAL_MACHINE,"Software\\Linkage\\宽带上网助手",0,KEY_ALL_ACCESS,&hKey3);
RegQueryValueEx(hKey3,"InstallPath",0,&WordType,DirectoryBuffer,&BufferSize);
RegCloseKey(hKey3);
CStatic* pStc = (CStatic*)GetDlgItem(IDC_STATIC1);
char *pc=&DirectoryBuffer;
pStc->SetWindowText(pc);
error C2440: 'initializing' : cannot convert from 'unsigned char ** ' to 'char *'
[此贴子已经被作者于2006-9-13 22:48:33编辑过]