Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

GetProcAdress return NULL

7 views
Skip to first unread message

iRed

unread,
Apr 22, 2008, 9:40:21 AM4/22/08
to
Hi everyone,

I want to use ILCreateFromPath() from shell32.dll but i can't because
GetProcAddress always return NULL.

Here's my code:

header:

typedef HANDLE (__stdcall *LPILCFP)(LPCWSTR);

LPILCFP lpILCreateFromPath;

/-----------------------------------------------------------------------------------
Cpp:

HANDLE hShell = ::GetModuleHandle("shell32.dll"); // I've tried with
LoadLibrary(): same result

if (!hShell) // hSell is not NULL
return;

lpILCreateFromPath = (LPILCFP) ::GetProcAddress(hShell,
MAKEINTRESOURCE(190)); //
lpILCreateFromPath //
is NULL here


Have somebody any idea?

Thanks you.

0 new messages