获取用户名得小程序
#include "windows.h"int WINAPI WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance,
PSTR szCmdLine, int iCmdShow)
{
char szUserName;
DWORD dwSize = 128;
GetUserName( szUserName, &dwSize);
MessageBox(0,szUserName,"name",MB_OK);
} 跟帖鼓励;加油吧 OK,我来加点工:loveliness: C++难啊,太灵活了,不好学。。。。LZ加右:lol X学习啊,很多都不懂,慢慢看. ...小z转行转的真快.
前段时间的E 搞的轰轰烈烈的..
页:
[1]