|
-
June 11th, 2012, 10:45 PM
#1
How to load dll which is win32 into x64 environment
Hi
In VS2010, I have VC++ class in x64 enviornment, when I use
HINSTANCE hDLL = LoadLibrary(L"test.dll"); => test.dll is win32
hDll is NULL
if I use
HINSTANCE hDLL =LoadLibraryExW(L"test.dll",NULL,LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE );
hDll has value.
but when I run
FUNC Setup2004;
Setup2004 = (FUNC)GetProcAddress(hDLL, "SetUp2004");
Setup2004 is NULL.
And, test.dll run in win32 enviroment with above program is well.
So, who could give me some suggestion?
Thanks
Angel
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|