I want to use the function winUser() but I retrieve this error:
- Code: Select all Expand view
Error: Unresolved external '_HB_FUN_WINUSER' referenced from OBJ\MAIN.OBJ
Exists any lib to include on my project?
Error: Unresolved external '_HB_FUN_WINUSER' referenced from OBJ\MAIN.OBJ
#pragma BEGINDUMP
#include <windows.h>
#include <hbapi.h>
// BOOL GetUserName( LPTSTR lpBuffer, LPDWORD nSize );
//
//http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sysinfo/base/getusername.asp
HB_FUNC ( GETUSERNAME )
{
TCHAR lpBuffer[255];
DWORD nSize = 255;
GetUserName( lpBuffer, &nSize );
hb_retc( lpBuffer );
}
#pragma ENDDUMP
I tried to use wNetGetUser()... are it return the same user!?
Return to FiveWin for Harbour/xHarbour
Users browsing this forum: No registered users and 74 guests