Re: File Association in Dialog-Based Application

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thanks. I just didn't have much info on making the required registry changes in a way that would be reliable long-term.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"David Lowndes" <DavidL@xxxxxxxxxxxxxxx> wrote in message news:mt47g41cc57utcksj8qp6lo4ibfba3c56b@xxxxxxxxxx
>Has anyone seen any info on how to associated a file type with my
dialog-based application?

In order to use RegisterShellFileTypes(), I must add my document template
using AddDocTemplates(). But AddDocTemplates() can't be called without a
CDocument class.

Jonathan,

I think you just have to do it by adding the registry values manually
(or through your application's setup program).

See "File Types" in MSDN.

Dave

.



Relevant Pages

  • Re: File Association in Dialog-Based Application
    ... One "modern" problem is that some users don't have access to this part of the registry these days since it usually requires administrator privileges. ... "Jonathan Wood" wrote in message ... I must add my document template using AddDocTemplates(). ...
    (microsoft.public.vc.mfc)
  • Re: File Association in Dialog-Based Application
    ... I'd use my Registry library because it is so trivial to use and I don't have to think ... that Joe is a huge proponent of code readability and maintainability so he ... Jonathan Wood ... simple dummy app ...
    (microsoft.public.vc.mfc)
  • Re: Encrypting passwords
    ... David Lowndes wrote: ... > If you only need to target Windows 2000 and later operating systems, ... >> I would just need simple XOR encryption/ decryption. ... you are going to use a fixed key, a XOR-ed password stored in the registry ...
    (microsoft.public.vc.language)
  • Re: Determining Win XP vs. Classic styles
    ... expect that is in the registry. ... Available for consulting: http://www.softcircuits.com/jwood/resume.htm ... > Jonathan Wood wrote in message ... >> SoftCircuits ...
    (microsoft.public.vb.winapi)
  • Re: File Association in Dialog-Based Application
    ... The main thing is finding the right places in the registry to write the keys. ... "Jonathan Wood" wrote in message ... Even the main code in MFC fails for many applications, you just don't see it because it fails elegantly. ... but it hasn't been updated for Vista and assumes administrator privileges for at least one running of my program: ...
    (microsoft.public.vc.mfc)