Posted on 2003-03-12
I'm trying to display a dialog box using the wlxDialogBox function. However, despite several attempts, I am unable to get the function to return anythng other than -1 - i.e. it fails. Please note I am very new to this library of functions and their use.
I have the hWndOwner and dlgprc parameters as NULL. is this allowed?
I'm calling the wlxDialogBox function if the GWlxLoggedOutSAS returns WLX_SAS_ACTION_LOGON. (I'm modifying the ginastub sample)
int res = pWlxFuncs->WlxDialogBox( hGlobalWlx, hDllInstance, (LPTSTR)MAKEINTRESOURCE(IDD_OS_CHOICE_DLG), NULL, NULL);
I created the dialog using the resource editor. I'm using the MAKEINTRESOURCE macro to convert my resource ID.
hGlobalWlx is taken from wlxInitialize.
hDllInstance is taken from DLLmain function.
I'm kinda desperate!