Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » GetUserName fails on WinXP/MinGW
GetUserName fails on WinXP/MinGW [message #19684] Mon, 05 January 2009 16:26 Go to previous message
White_Owl is currently offline  White_Owl
Messages: 27
Registered: January 2009
Location: New York
Promising Member
My code
void MyDlg::MyDlg () {
   username.SetData(GetUserName());
   // username is defined as LineEdit in lay
}

Gives an error:
C:/usr/include/winbase.h:1580: error: too few arguments to function `BOOL GetUserNameA(CHAR*, DWORD*)'

I am using U++ 2008.1 Windows installation without MinGW.

And anyway, should not it be GetUserNameW()?
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Very need function Age.
Next Topic: How to load only header of the file with LoadFromFile?
Goto Forum:
  


Current Time: Wed May 15 19:01:55 CEST 2024

Total time taken to generate the page: 0.03425 seconds