char userName[MAX_PATH];
CString sUsername;
DWORD size=MAX_PATH;
::GetComputerName(userName,&size);
sUsername.Format("%s",userName);
MFC获取计算机名
最新推荐文章于 2022-02-16 19:25:29 发布
char userName[MAX_PATH];
CString sUsername;
DWORD size=MAX_PATH;
::GetComputerName(userName,&size);
sUsername.Format("%s",userName);