woodcarver
Technical User
Hi all: How does one pass the logged user name to the caption bar on a child window.This is the code that I want to modify:
{
DWORD dwSize = 0;
GetUserName(NULL,&dwSize);
char*szBuf=new char[dwSize];
szBuf[0]='\0';
GetUserName(szBuf,&dwSize);
LabelX->Caption=szBuf; //puts name into a label on to
delete[]szBuf; the same form
}
{
DWORD dwSize = 0;
GetUserName(NULL,&dwSize);
char*szBuf=new char[dwSize];
szBuf[0]='\0';
GetUserName(szBuf,&dwSize);
LabelX->Caption=szBuf; //puts name into a label on to
delete[]szBuf; the same form
}