12-27-2006 05:24 AM
12-27-2006 09:06 AM
Hi Moshik,
As you discovered, LabWindows/CVI reports an error if you attempt to build a static library when you have a DLL import library in your project. This is expected behavior as static libraries are "self-contained" libraries. If you need to make DLL calls in your static library, you will need to use the Windows SDK function LoadLibrary and GetProcAddress rather than use your import library.
Understanding the concepts linked above about static linking and dynamic linking are really helpful. Essentially, dynamic linking provides a way for a process to call a function that is not part of its executable code. The executable code for the function is located in the DLL verse the executable you built. These libraries are "dynamically-linked" because they are linked to an application when its loaded and executed rather than when its created. In the case of static linking, the linker gets all the referenced functions from the static link library and places it with your code in your executable file.
Hope this helps!
Best Regards,
12-27-2006 10:21 AM
12-27-2006 11:24 AM