I can't find either. But I solved it this morning.
I missed a part of my code:
Quote:
typedef void (__stdcall *LPFUNC)
(
HWND hwnd,
HINSTANCE hinst,
LPWSTR lpszCmdLine,
int nCmdShow
);
Well, a void will never return any value, right?
then... I changed:
Quote:
typedef int (__stdcall *LPFUNC)
(
HWND hwnd,
HINSTANCE hinst,
LPWSTR lpszCmdLine,
int nCmdShow
);
And, works fine:
Quote:
int ret = PrintUIEntry(
GetDesktopWindow(),
lib,
(wchar_t *)bstrParam,
SW_SHOW
);
Sorry about my mistake.
Tks for your help!
Raphael