Is Static link of DLL (using *.lib) possible from code only (without add to project, something like #pragma link “…”)?
问题 I am upgrading my preexisting CAD/CAM project (quite big one > 10MByte of code) and have to add some special measuring equipment. The problem is I have more than one supplier of the measuring system (although is already decided which one to use) and I want to configure them (using #define in case vendor is changed in future) with code to use only selected device type. So I have something like: #define use_vendor1 //#define use_vendor2 //#define use_vendor3 and some of the vendors APIs require