今天写了一个DLL,DLL中用到的一个类里用到的MSXML的COM组件,所以在DLL中要包含afx.h头文件,也就不可避免的要用到MFC的类库了,但在编译时出现了错误:mfcs42d.lib(dllmodul.obj) : error LNK2005:_DllMain@12 already defined in NetDriverConfig.obj, 在http://topic.csdn.net/t/20010911/10/281452.html 处的贴子里找到了以下回答,试了一个原来是文件里
unsafe class Program { [DllImport("mwhrf_bj.dll")] public static extern int rf_card(int icdev, Byte _Mode, UInt64* _Snr); [DllImport("mwhrf_bj.dll")] public static extern int Open_USB(); [DllImport("mwhrf_bj.dll")] public sta
异常: Error 10 error LNK2019: unresolved external symbol _CLRCreateInstance@12 referenced in function "unsigned long __stdcall StartTheDotNetRuntime(void *)" (?StartTheDotNetRuntime@@YGKPAX@Z) E:\C++\VC项目\NativeDll\NativeDll.obj NativeDll 解决措施: na