I have written a program in VC++ 6.0 which needs to link to a DLL file, iphlpapi.dll.
In VC++ 6.0, I simply use LoadLibrary("iphlpapi.dll") and it went just fine.
Now, after I ported my projects to Visual Studio 2005, I cannot use LoadLibrary anymore.
Please take a look at the code:
hModule = LoadLibrary("iphlpapi.dll");
if (hModule == NULL)
Everytime when I run my program, I always got "Error linking" message.
I tried to explicitly specify the DLL file path but it still didnt work.
Indeed, I have included the .h and .lib files which are related to the DLL already.
(They are done before I ported and I set the Project properties to include the .h and .lib path already.)
Another question is there are many version of the DLL and H files, how could I know that the versions I am using are the same.
I mean, how could I know that the DLL file is compatible with the H file I am referring to.
I believe there must be some way to syncronize the file versions.
Thanks a lot!