delphi activex "The OLE control does not support self-registration"
来源:互联网 发布:squid nginx 比较 编辑:程序博客网 时间:2024/06/10 20:17
1. 今天为了帮同学解决一个问题, 在自己的 activex 上进行操作, 把自己写的 activex 进行反注册后, 再重新注册, 结果居然报 "The OLE control does not support self-registration".
(1). 注册 activex
(2). 报错 "The OLE control does not support self-registration"
2. 网上找了半天没找到解决方法; 看提示既然说不支持"self-registration", 那我就手动注册好了, 在 cmd 里输入以下命令: regsvr32 ActiveSuDaPrintProj1.ocx, 结果还是报错: "模块已加载,但找不到入口点 DllRegisterServer..
3. 在自己的项目里搜了一遍, 确实没有 DllRegistrServer 函数, 随后在 .dpr 文件 看到 DllUnregisterServer, 就想着是不是少了 DllRegistrServer 函数, 手动加上后, 编译错误.
4. 找一个可以正常注册的 ocx 项目, 其 .dpr 文件如下
发现一共是少了3行, 把这三行加上去后, 问题解决.
5. 吐槽一下 delphi, 少了3行, 居然还能正常编译, 在注册的时候报错也让人摸不着头脑, 如果不是使用 regsvr32 注册的时候报错信息比较明了, 还不知要怎么来解决这问题呢.
开发环境: windows7 + delphi7
好久没写文章了,居然发现 csdn 博客不能上传图片了, 是bug吗?
- delphi activex "The OLE control does not support self-registration"
- ‘str' does not support the buffer interface
- Xcode "The selected destination does not support the architecture " 错误
- Xcode "The selected destination does not support the architecture " 错误
- Xcode "The selected destination does not support the architecture " 错误
- Error: Current license file does not support the EP2C5Q208C8 device
- A workgroup installation computer does not support the operation
- System.InvalidOperationException: The stream does not support reading
- The current deployment target does not support automated __weak references
- tomcat报错:The server does not support version 3.0
- The current deployment target does not support automated __weak references
- TypeError:'str' does not support the buffer interface
- IllegalArgumentException: AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- AppCompat does not support the current theme features
- TypeError:’str’ does not support the buffer interface
- Python 3 TypeError: ‘str’ does not support the buffer interface
- 使用 Toolbar时候出现 AppCompat does not support the current
- IOS网络编程介绍
- linux系统下编译的一些有用的选项以及错误
- 高考,究竟有什么意义
- WeakReference 弱引用
- 混杂设备、字符设备、平台设备三者的注册方式比较
- delphi activex "The OLE control does not support self-registration"
- 网络编程常见函数解析
- XCode各版本对应的Mac OS操作系统版本
- 贪心算法
- 索引和数据完整性约束的总结
- B-树
- Linux实模式与保护模式下的寄存器
- .NET 序列化 "该类型不能序列化"
- 【转】linux解压tar命令