社区
进程/线程/DLL
帖子详情
warning C4275: non dll-interface class 'CFaceDetectorBase' used as base for dll-interface class
Sander
2006-12-15 08:50:41
请问这个dll是什么问题
...全文
1388
3
打赏
收藏
warning C4275: non dll-interface class 'CFaceDetectorBase' used as base for dll-interface class
请问这个dll是什么问题
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
3 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
blastzgd
2006-12-21
打赏
举报
回复
把父类也导出来.
Sander
2006-12-21
打赏
举报
回复
还请高手呀指点呀,我是vc6.0下的
DentistryDoctor
2006-12-15
打赏
举报
回复
导出的类是从未导出的类派生的。
错误消息
非 DLL 接口类键“identifier”作为 DLL 接口类键“identifier”的基使用
导出的类是从未导出的类派生的。
要在使用 __declspec(dllexport) 导出类时使数据损坏的可能性降到最小,请确保:
所有静态数据都是通过从 DLL 导出的函数进行访问的。
类的任何内联方法都不能修改静态数据。
类的所有内联方法都不使用 CRT 函数或其他使用静态数据的库函数。
内联类函数都不使用 CRT 函数或其他库函数(例如,可从中访问静态数据的库函数)。
如果 EXE 和 DLL 中的实例化具有静态数据差异时,类的任何方法(无论是否为内联)都不能使用类型。
通过定义一个 DLL 可以避免导出类,该 DLL 定义一个具有虚函数的类,您可以调用这些函数对该类型的对象进行实例化和删除。然后在该类型上调用虚函数即可。
有关导出模板的更多信息,请参见 http://support.microsoft.com/default.aspx?scid=KB;EN-US;168958。
如果要从标准 C++ 库中的类型派生,并且要编译调试版本 (/MTd),而且编译器错误信息引用 _Container_base,则在 Microsoft Visual C++ 2005 中可以忽略 C4275。
复制代码
// C4275.cpp
// compile with: /EHsc /MTd /W2
#include <vector>
using namespace std;
class Node;
class __declspec(dllimport) VecWrapper : vector<Node *> {}; // C4275
ICS delphixe10源码版
non
-ported components). ICS for Mac OSX is currently experimental. The zip file has sub-directories in it. You must use the WinZip "Use folder names" option to restore this directory tree or you will...
Bochs - The cross platform IA-32 (x86) emulator
- Implemented FS/GS
BASE
access instructions support (according to document from http://software.intel.com/en-us/avx/) - Rewritten from scratch SMC
detect
ion algorithm - Implemented fine-grained ...
UG二次开发vs2012升级到vs2022编译问题
*
warning
C4275
: 非
dll
接口
class
“std::exception”用作
dll
接口
class
“NXOpen::NXException”的基。//(std::exception根据情况替换)意思是ug的
dll
中的类继承了标准库中的std::exception类…找到ug二次开发的...
去除
Warning
C4251 “
class
'std::vector<_Ty>' needs to have
dll
-
inter
face
to be u
sed
by clients of
class
Microsoft Visual Studio .NET 2003
Warning
C4251 I always try to get rid of compiler
warning
s. It just seems like a good thing to do.
Warning
-free code makes me happy. But some
warning
s just don
mysql手机版编译器_带有版本配置的MySQL++的编译器警告
出于某种原因,当使用发布配置构建时,我收到一些关于“非
dll
接口类”的警告,但没有调试。...c:\sql\mysql 5.0\mysql++-3.0.9\lib\qparms.h(49) :
warning
C4275
:
non
dll
-
inter
face
class
'std::_Co...
进程/线程/DLL
15,466
社区成员
49,169
社区内容
发帖
与我相关
我的任务
进程/线程/DLL
VC/MFC 进程/线程/DLL
复制链接
扫一扫
分享
社区描述
VC/MFC 进程/线程/DLL
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章