About dll dynamic load - a simple question?
C / C++ / MFC
2
Posts
2
Posters
0
Views
1
Watching
-
Hi, here If I repeat load library in VC: HMODULE handle0 = LoadLibrary(TEXT("testdll0.dll")); HMODULE handle1 = LoadLibrary(TEXT("testdll0.dll")); My program will load the two copies of the testd110.dll in memory? handle0 should be equal to handle1? Thanks a lot!
-
Hi, here If I repeat load library in VC: HMODULE handle0 = LoadLibrary(TEXT("testdll0.dll")); HMODULE handle1 = LoadLibrary(TEXT("testdll0.dll")); My program will load the two copies of the testd110.dll in memory? handle0 should be equal to handle1? Thanks a lot!
Only one copy of the DLL will be loaded.
handle0
will be equal tohandle1
. TheFreeLibrary
will need to be called twice to unload the DLL as you calledLoadLibrary
twice.Steve