ERROR: Cannot find dialog template with IDD 0x7803.
来源:互联网 发布:c语言实现cp命令 编辑:程序博客网 时间:2024/05/16 01:12
2009-03-04 01:36:00
标签:Bug 代码 打印 解决 休闲
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 、作者信息和本声明。否则将追究法律责任。http://phinecos.blog.51cto.com/1941821/368173
ActiveX控件中的打印代码一直是运行正常,可今天为了修改ActiveX控件的版本,修改资源文件后,打印功能一直报错。
Debug后发现错误描述信息是:
- ERROR: Cannot find dialog template with IDD 0x7803.
错误的根源就是下述代码,原因是用于打印预览的对话框工具栏的资源无法找到,而这些资源是在afxprint.rc文件中的。
- #ifdef _DEBUG
- // dialog template must exist and be invisible with WS_CHILD set
- if (!_AfxCheckDialogTemplate(lpszTemplateName, TRUE))
- {
- ASSERT(FALSE); // invalid dialog template name
- PostNcDestroy(); // cleanup if Create fails too soon
- return FALSE;
- }
- #endif //_DEBUG
因此修改的方法也很简单,用“源代码文本编辑器”打开资源文件”XXX.rc”,在其中加入
- #include "l.chs\\afxprint.rc"
参考资料
http://www.codeguru.com/forum/showthread.php?t=347195
本文出自 “洞庭散人” 博客,请务必保留此出处http://phinecos.blog.51cto.com/1941821/368173
- ERROR: Cannot find dialog template with IDD 0x7803.
- 想在对话框中使用CView的打印/预览功能“ERROR: Cannot find dialog template with IDD 0x7803.”
- WM程序出现ERROR: Cannot find dialog template with IDD 0x131的解决方法
- ,CFormView::Create()里,_AfxCheckDialogTemplate输出Cannot find dialog template with IDD 0x00AB
- error: cannot find -ldemo_shared
- error: template with C linkage
- cannot find the word template:WordToRqm.dot
- Go error--cannot find package
- Error: Cannot find module 'express'
- Error: Cannot find module 'express'
- Error: Cannot find module 'express'
- QT5 error: cannot find -lGL
- Error:Cannot find module 'stylus'
- Cannot find module “async” Error
- Error:Cannot find module 'stylus'
- configure: error: Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案
- configure: error: Cannot find php-config. Please use --with-php-config=PATH
- configure: error: Cannot find php-config. Please use --with-php-config=PATH 错误的解决方案
- opencv连接摄像头
- 演讲稿开场白
- PowerDesigner安装
- 编译程序的分类
- [Win32]注册表的写
- ERROR: Cannot find dialog template with IDD 0x7803.
- opencv对图片的处理
- 1004 N组A+B
- .NET 在IIS7.5下自定义404错误页面的方法
- 几种开源Java Web容器线程池的实现方法简介
- BUAA 533 nanae 是弱小灰(SAM)
- Android优秀开源项目大全
- xcode制作越狱的ipa包
- win7下安装配置tomcat,java运行环境