Click here to Skip to main content
16,016,024 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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 ?
Posted

Hi John,

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

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


VB
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
 
Share this answer
 
Your associations aren't set correctly in Windows 7. Add your file types to the Associations and it should work.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900