多个文档,多个模板单击并运行问题 [英] multiple document, multiple template click and run issues

查看:53
本文介绍了多个文档,多个模板单击并运行问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我有一个支持多种文档类型的应用程序.直到最近,对于单击并运行的每种文档类型,它在Windows-xp上都可以正常工作.

但是,在Windows-7上,它不起作用.

解决方案

您的关联在Windows 7中未正确设置.将您的文件类型添加到关联中,它应该可以工作. /blockquote>

约翰,

感谢您的回复.我正在使用它来创建关联:

 pTextDocTemplate =  CMultiDocTemplate(
     IDR_ASCIITYPE,
     RUNTIME_CLASS(文档),
     RUNTIME_CLASS(CMDIChildWnd),
     RUNTIME_CLASS(ViewText));
 AddDocTemplate(pTextDocTemplate); 



 m_pTemplate =  CMultiDocTemplate(
   IDR_RLMSPLTYPE,
   RUNTIME_CLASS(NS1 :: Document),
   RUNTIME_CLASS(NS2 :: MdiChildBase),
   RUNTIME_CLASS(NS3 :: FormView)
);
AddDocTemplate(m_pTemplate); 




RegisterShellFileTypes();
EnableShellOpen();

还有什么我需要改变的吗?

问候,
Shishir


Hi,

I have an application which is supports multiple document type. It used to work fine until recently on windows-xp for each of the document type for click and run.

How-ever, on Windows-7, it doesn''t work. Has anyone encountered a similar problem before ?

解决方案

Your associations aren''t set correctly in Windows 7. Add your file types to the Associations and it should work.


Hi John,

Thanks for the response. I am using this for creating associations :

pTextDocTemplate = new CMultiDocTemplate(
     IDR_ASCIITYPE,
     RUNTIME_CLASS(Doc),
     RUNTIME_CLASS(CMDIChildWnd),
     RUNTIME_CLASS(ViewText));
 AddDocTemplate(pTextDocTemplate);



m_pTemplate = new CMultiDocTemplate(
   IDR_RLMSPLTYPE,
   RUNTIME_CLASS(NS1::Document),
   RUNTIME_CLASS(NS2::MdiChildBase),
   RUNTIME_CLASS(NS3::FormView)
);
AddDocTemplate(m_pTemplate);




RegisterShellFileTypes();
EnableShellOpen();

is there anything else that I will have to change ?

Regards,
Shishir


这篇关于多个文档,多个模板单击并运行问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆