If I have a.dll and b.dll, both of them have exactly same function names. for example, foo(), bar() from a.dll and foo(), bar() from b.dll. Will the later loaded one override/replace the former loaded one?
Asked
Active
Viewed 432 times
-1
-
With `LoadLibrary` you use `GetProcAddress`, specifying the DLL handle, to get pointers to the functions, so it's not a problem. – Cheers and hth. - Alf Aug 31 '17 at 00:53
1 Answers
1
Both dll's can be loaded with loadlibrary (even if one is a copy of the other in a different directory). Nothing will override anything ,since in order to call a function from either one you need to use the GetProcAddress routine.

engf-010
- 3,980
- 1
- 14
- 25