Thread: I ruined my *.cpp, *.h extensions...

  1. #1
    Registered User
    Join Date
    Jun 2002
    Posts
    132

    I ruined my *.cpp, *.h extensions...

    I can't open a cpp or h file as default with MSVC++6, I ruined the registry somehow, is there a way to fix it without reinstalling VC++?

    I remember there is a value in ther egistries where you set which file MSVC+6 can load, but I don't remember the path.

    Thanks
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Hold down shift....rightclick a cpp or h file.....click "open with"....chose VC++6...click tickbox for "Always use this program for this file" (or whatever)

  3. #3
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Yea I knew that, but how can I do it from the registry? Will this update the reg key of VC++ the same way?
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  4. #4
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Posts
    5,793
    Why not just try it!

    Yes it will update the registry if you click the tickbox as I said.....its the cleanest way to do it without reinstall

    None of the VC++ reg keys even need to be altered.....just a few to explain to the shell how to open the file...

    To edit the registry you have to recreate a few keys....I'm not bothering to detail it here, but I have posted about how to do it in the past...so the information can be found if you wish to look for it

  5. #5
    Registered User
    Join Date
    Jun 2002
    Posts
    132
    Coolness. Thanks
    Y3K Network http://www.y3knetwork.com
    Bringing the software of the future on the net.

  6. #6
    Seven years? civix's Avatar
    Join Date
    Jul 2002
    Posts
    605
    You can also use Control Panel>Folder Options>File Types, and highlight the file type you want to change and hit the advanced button..or opens with...one or the other
    .

  7. #7
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    same as above can be done with windows explorer
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. C related file extensions
    By vb.bajpai in forum C Programming
    Replies: 4
    Last Post: 06-04-2007, 05:44 AM
  2. Choosing a compiler
    By pushingsquares in forum Game Programming
    Replies: 27
    Last Post: 12-14-2006, 10:33 AM
  3. html extensions
    By Chesspunk in forum Tech Board
    Replies: 5
    Last Post: 05-22-2004, 12:25 AM
  4. Change Open File extensions
    By bennyandthejets in forum Windows Programming
    Replies: 0
    Last Post: 05-11-2004, 12:50 AM
  5. File Extensions
    By Polymorphic OOP in forum C++ Programming
    Replies: 2
    Last Post: 01-29-2003, 05:43 PM