I am writing a DLL on a VC 7.1. I have compiled the project using the debug settings. In the debug setting, I renamed the output DLL to say MyDLL_Debug.DLL and the debug lib to say MyLib_Debug.lib. In the release versions, I left the names without _Debug.
When I link my exe with this dll, and I am in debug mode, I use debug version of the lib. Shouln't that tell the exe to use the debug version of my dll? I though so, but it seems I am wrong. Even though I am linking against the debug version of the lib, it appears that I link to release version of the DLL. Actually, it links to the DLL that has the same name as a project. If that name is for debug dll, then it will link with that debug dll. Otherwise, it seems to link with release. I though that by generating a debug lib, the lib will let the exe know what DLL name to call. But, it will NOT link to anything that does not match the project name of the DLL.