news:1bf18dae-5999-464f-8fd4-cd3323a76586@v39g2000pro.googlegroups.com...
On Nov 11, 3:58 pm, David Lowndes <Dav...@example.invalid> wrote:
I'm surprised no one really encountered the exact problem that I've
now. I've the VC++ code that works fine on XP but simply hangs up in
Vista SP1. Here is the snippet.
HINSTANCE hInst = NULL; //
hInst = LoadLibrary("ThirdParty.dll");
It seems odd that it hangs - is that really what you mean?
If it is hanging, the problem is presumably inside ThirdParty.dll
Dave
Yes thats right, in the debugger mode when I try to pass that
statement, it does not move any further - does not throw out any error
either.
I tried using LoadLibraryEx() this function has a 3rd argument with
the choices of
0. NULL
1. LOAD_IGNORE_CODE_AUTHZ_LEVEL
2. LOAD_WITH_ALTERED_SEARCH_PATH
3. DONT_RESOLVE_DLL_REFERENCES
4. LOAD_LIBRARY_AS_DATAFILE
5. LOAD_LIBRARY_AS_DATAFILE_EXCLUSIVE
6. LOAD_LIBRARY_AS_IMAGE_RESOURCE
with 0-2, the behavior is same as LoadLibrary, for others it does not
hang but does not get the job right ( GetProcAddress fails to extract
the correct location)
Is there a sure way to check to see its the dll that is the culprit
here?
Thanks,
thats dragging the func into such behavior. A clean project just with
loadlibrary works fine...