请教'建立空文档失败'问题

iuchy 2003-09-18 11:07:07
我的程序在有些机器上注册ActiveX控件后可以运行,而有些机器会报错'建立空文档失败'。程序采用静态连接,使用的ActiveX控件也已注册。如何确定我的程序中使用了哪些动态连接库?特求教高人。
...全文
202 13 打赏 收藏 转发到动态 举报
写回复
用AI写文章
13 条回复
切换为时间正序
请发表友善的回复…
发表回复
iuchy 2003-09-22
  • 打赏
  • 举报
回复
up
fanfyj 2003-09-19
  • 打赏
  • 举报
回复
up
iuchy 2003-09-19
  • 打赏
  • 举报
回复
没有人知道如何解决License的问题吗?
iuchy 2003-09-19
  • 打赏
  • 举报
回复
非常感谢warmchang(风滑过的痕迹)!
你知道如何获得License key 吗?
warmchang 2003-09-19
  • 打赏
  • 举报
回复
Flex Grid Control在对话框中实例话可以直接使用。

而在动态创建的时候需要lisence key!

When Visual C++ is installed on a machine, the entire machine becomes licensed to use the redistributable ActiveX controls as part of the installation process. If an instance of one of the redistributable controls is created dynamically and no License key is specified, the creation will succeed because the control is able to determine that the entire machine is licensed and so will allow itself to be created. However, if the same code that performs the dynamic creation of the control is executed on a machine that has not had Visual C++ installed on it (such as Visual Basic or another application that provides the same control), the creation will fail. In this case the control will not allow itself to be created if a License key is not specified and the machine has not been licensed.

iuchy 2003-09-19
  • 打赏
  • 举报
回复
up
没有人知道如何解决License的问题吗?
或绕开License解决问题
iuchy 2003-09-19
  • 打赏
  • 举报
回复
并不是所有机器都有这个问题。
benz600 2003-09-19
  • 打赏
  • 举报
回复
很奇怪,我在我这里做了一下测试,没有问题啊,动态创建的。
iuchy 2003-09-19
  • 打赏
  • 举报
回复
up
iuchy 2003-09-18
  • 打赏
  • 举报
回复
是.
我使用"activex control test container"测试(TSTCON32.EXE),
在"edit"中选"insert new control",选择"Microsoft FlexGrid Control, version 6.0"
插入,结果显示不能加入的错误????
请问各位大侠是什么问题?
benz600 2003-09-18
  • 打赏
  • 举报
回复
应该不会啊,
m_grid.Create("test",WS_VISIBLE,CRect(10,10,300,200),this,IDC_test);
是类似上面的句子吗
iuchy 2003-09-18
  • 打赏
  • 举报
回复
thanks kingzai!

现在的问题是当动态创建ActiveX控件时出现'建立空文档失败',
如果在cformview中直接加入ActiveX控件不会出错。
ActiveX控件是Microsoft FlexGrid Control, version 6.0
请问是什么问题?
kingzai 2003-09-18
  • 打赏
  • 举报
回复
use dependency tool to check needed dll

3,245

社区成员

发帖
与我相关
我的任务
社区描述
ATL,Active Template Library活动(动态)模板库,是一种微软程序库,支持利用C++语言编写ASP代码以及其它ActiveX程序。
社区管理员
  • ATL/ActiveX/COM社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧