Click here to Skip to main content
16,005,162 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Window automagically resizes Pin
DRHuff17-Aug-01 4:04
DRHuff17-Aug-01 4:04 
GeneralSimple Registry Question Pin
calebcohoon16-Aug-01 11:38
calebcohoon16-Aug-01 11:38 
GeneralRe: Simple Registry Question Pin
16-Aug-01 12:21
suss16-Aug-01 12:21 
GeneralRe: Simple Registry Question Pin
calebcohoon16-Aug-01 15:30
calebcohoon16-Aug-01 15:30 
GeneralRe: Simple Registry Question Pin
Jim Howard17-Aug-01 12:40
Jim Howard17-Aug-01 12:40 
GeneralLocalhost in win2k on uninitialized net Pin
Boris Russel16-Aug-01 10:37
Boris Russel16-Aug-01 10:37 
GeneralLame icon association Pin
Jake Palmer16-Aug-01 9:35
Jake Palmer16-Aug-01 9:35 
GeneralRe: Lame icon association Pin
Ben Burnett16-Aug-01 10:06
Ben Burnett16-Aug-01 10:06 
I think there are several ways of fixing this, not sure that will do the trick for you but here they are;

1) Fire up your registry editor and go to;

HKEY_CLASSES_ROOT\.abc\

Check the '(default)' string entry, if its empty go to the sub-key 'DefaultIcon' and set the correct number. If it has a string in it, find the key it refers to ( from the '(default)' entry );

HKEY_CLASSES_ROOT\*the key*\

And do the same as above.

BTW: this is only a temporary fix, you should use one of the others to make sure it will work properly on other PC's.

2) Pass '/Unregister' as a command line option to your application (if your using MFC) then re-run it to correct the associations.

3) In VC++ open up your executable as a resource file, check that the new icon you added is at the end of the icon resource list. If it is not, then you will need to play around with the resouce.h file and make the icon's ID larger than that of the document's.

One of these should do the trick, but no promises.

Ben Burnett

---------
On the topic of code with no error handling -- It's not poor coding, it's "optimistic" Wink | ;)
GeneralRe: Lame icon association Pin
Jake Palmer16-Aug-01 11:50
Jake Palmer16-Aug-01 11:50 
GeneralSomething else you might try Pin
Andrew Peace16-Aug-01 11:35
Andrew Peace16-Aug-01 11:35 
GeneralRe: Lame icon association Pin
Richard Bywater16-Aug-01 11:38
Richard Bywater16-Aug-01 11:38 
GeneralRe: Lame icon association Pin
Michael Dunn16-Aug-01 13:17
sitebuilderMichael Dunn16-Aug-01 13:17 
GeneralGroup Boxes Pin
Steve Thresher16-Aug-01 9:35
Steve Thresher16-Aug-01 9:35 
GeneralRe: Group Boxes Pin
Michael Dunn16-Aug-01 13:18
sitebuilderMichael Dunn16-Aug-01 13:18 
GeneralRe: Group Boxes Pin
PJ Arends16-Aug-01 14:17
professionalPJ Arends16-Aug-01 14:17 
GeneralRe: Group Boxes Pin
Steve Thresher16-Aug-01 23:45
Steve Thresher16-Aug-01 23:45 
GeneralDouble to string Pin
16-Aug-01 9:16
suss16-Aug-01 9:16 
GeneralRe: Double to string Pin
Bret Faller16-Aug-01 9:36
Bret Faller16-Aug-01 9:36 
GeneralRe: Double to string Pin
Jesse Rosalia16-Aug-01 19:19
Jesse Rosalia16-Aug-01 19:19 
GeneralRe: Double to string Pin
Jesse Rosalia16-Aug-01 19:19
Jesse Rosalia16-Aug-01 19:19 
GeneralRe: Double to string Pin
Jake Palmer16-Aug-01 9:40
Jake Palmer16-Aug-01 9:40 
GeneralRe: Double to string Pin
16-Aug-01 11:45
suss16-Aug-01 11:45 
GeneralRe: Double to string Pin
briefcase16-Aug-01 12:43
briefcase16-Aug-01 12:43 
GeneralRe: Double to string Pin
16-Aug-01 10:23
suss16-Aug-01 10:23 
GeneralRe: Double to string Pin
Michael Dunn16-Aug-01 13:20
sitebuilderMichael Dunn16-Aug-01 13:20 

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.