12-18-2009 02:03 PM
12-18-2009 02:54 PM - edited 12-18-2009 02:56 PM
Shouldn't the location of the .lib follow the target settings in the Build pull-down menu?
It could be you're not matched on the .lib file you've got in the project to the location in the target settings for the DLL. Or you're including the release .lib in your debug build not the debug .lib
This can be really confusing, especially when you also have a release version of the DLL which in turn creates a release version of the import library with separate target settings. CVI doesn't automatically switch the libraries for you - when you switch the client application build mode from release to debug, you have to ensure that you're building with the appropriate lib file if you intend to debug into the DLL.
You have to watch the search path / location of the DLL closely - I've about gone nuts trying to debug a DLL then realizing the client app was picking up the DLL from some unexpected location. Especially with WinXP which can re-direct the location of the DLL to be loaded. Several times I've had to go in and brute force rip out every copy, release and debug, of a dll to ensure I was running the one I wanted.
Good luck
Menchar
12-29-2009 10:09 AM
12-30-2009 05:26 PM
pblase,
Have you tried changing the settings for your mixed up project to direct the DLL to another folder? It would be interesting to see if the import library got created in this new folder or was still created in the incorrect folder. The only option that should modify the location of the import library is the Import Library Choices dialog that you can get to from the Target Settings dialog. Make sure both of those checkboxes are unchecked, since that would move the import library to a different folder.