Click here to Skip to main content
15,885,546 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Saving text files Pin
Hamid_RT12-Apr-07 0:02
Hamid_RT12-Apr-07 0:02 
QuestionHow to initialize RIL Pin
dishadiv11-Apr-07 18:56
dishadiv11-Apr-07 18:56 
QuestionMust use XmlDocument in managed C++? Pin
nathan711-Apr-07 17:04
nathan711-Apr-07 17:04 
AnswerRe: Must use XmlDocument in managed C++? Pin
Ravi Bhavnani11-Apr-07 17:16
professionalRavi Bhavnani11-Apr-07 17:16 
QuestionMFC and Serialize... How do I attach an icon/schema? Pin
maxmaven11-Apr-07 16:11
maxmaven11-Apr-07 16:11 
QuestionRe: MFC and Serialize... How do I attach an icon/schema? Pin
Ravi Bhavnani11-Apr-07 17:12
professionalRavi Bhavnani11-Apr-07 17:12 
AnswerRe: MFC and Serialize... How do I attach an icon/schema? Pin
maxmaven11-Apr-07 18:20
maxmaven11-Apr-07 18:20 
GeneralRe: MFC and Serialize... How do I attach an icon/schema? Pin
Steve S11-Apr-07 21:27
Steve S11-Apr-07 21:27 
This is nothing to do with serialization, then.
In the registry under HKEY_CLASSES_ROOT there are a number of keys corresponding to an extension, such as ".acl". This has an unnamed (default) value of "Agent.Character.2", for example. This relates to another key which again, has a default value. This is the description of the file as it would appear in explorer. Also under there is a key called "DefaultIcon" which contains a string describing where to get the icon for the file, normally the name of an exe or dll with an icon index.

If you want the user to be able to double-click on the file and have explorer launch your app, you need to look at the shell and shellex keys. Have a browse for stuff like .xls etc if you have office installed, and you'll see what I mean.

Normally, MFC apps take care of this by calling CWinApp::RegisterShellFileTypes(), but if you are a non-admin user, then you cannot write to the relevant bits of the registry, so this should really be done by an installer.

BTW, are you a Terry Pratchett fan? Smile | :)

Steve S
Developer for hire

GeneralRe: MFC and Serialize... How do I attach an icon/schema? Pin
maxmaven12-Apr-07 11:05
maxmaven12-Apr-07 11:05 
Questionopengl and tcp/ip Pin
synapticleft11-Apr-07 14:55
synapticleft11-Apr-07 14:55 
AnswerRe: opengl and tcp/ip Pin
El Corazon11-Apr-07 15:18
El Corazon11-Apr-07 15:18 
GeneralRe: opengl and tcp/ip Pin
synapticleft16-Apr-07 13:11
synapticleft16-Apr-07 13:11 
GeneralRe: opengl and tcp/ip Pin
Moak17-Apr-07 0:13
Moak17-Apr-07 0:13 
QuestionIs this a Bug or What? Pin
sanket.patel11-Apr-07 11:37
sanket.patel11-Apr-07 11:37 
AnswerRe: Is this a Bug or What? Pin
sthotakura11-Apr-07 11:47
sthotakura11-Apr-07 11:47 
GeneralRe: Is this a Bug or What? Pin
sanket.patel11-Apr-07 11:53
sanket.patel11-Apr-07 11:53 
GeneralRe: Is this a Bug or What? Pin
sthotakura11-Apr-07 11:58
sthotakura11-Apr-07 11:58 
GeneralRe: Is this a Bug or What? Pin
toxcct11-Apr-07 12:03
toxcct11-Apr-07 12:03 
GeneralRe: Is this a Bug or What? Pin
Christian Graus11-Apr-07 15:49
protectorChristian Graus11-Apr-07 15:49 
GeneralRe: Is this a Bug or What? Pin
BadKarma11-Apr-07 20:34
BadKarma11-Apr-07 20:34 
GeneralRe: Is this a Bug or What? Pin
Christian Graus12-Apr-07 1:50
protectorChristian Graus12-Apr-07 1:50 
GeneralRe: Is this a Bug or What? Pin
Rajesh R Subramanian11-Apr-07 22:43
professionalRajesh R Subramanian11-Apr-07 22:43 
AnswerRe: Is this a Bug or What? Pin
toxcct11-Apr-07 12:00
toxcct11-Apr-07 12:00 
GeneralRe: Is this a Bug or What? Pin
sanket.patel11-Apr-07 12:11
sanket.patel11-Apr-07 12:11 
GeneralRe: Is this a Bug or What? Pin
toxcct11-Apr-07 12:17
toxcct11-Apr-07 12:17 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.