|
6Qter豆
我有一个头文件,在Visual Studio里使用完全正常,在Creator里使用就报错,因为这个头文件不是我写的,也不好改。
能让Creator使用VS的编译器吗?
# if defined(_WIN32) || defined(WIN32) // the following two methods are for internal using only, don't call them directly! __inline HMODULE GetBDaqLibInstance() { static HMODULE instance = NULL; if (instance == NULL) { instance = LoadLibrary(TEXT("biodaq.dll")); } return instance; } __inline void* GetBDaqApiAddress(char const * name) { #ifdef _WIN32_WCE return GetProcAddressA(GetBDaqLibInstance(), name); #else return GetProcAddress(GetBDaqLibInstance(), name); //这句报错,2767: 错误:invalid conversion from 'int (*)()' to 'void*' #endif }
|
最佳答案
查看完整内容
是单独用5.3的IDE还是完整的Qt ?
vs版Qt好像只有5.x版本
Qt4和Qt5的差别网上很多了,我不需要多说
|