Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. visual c++

visual c++

Scheduled Pinned Locked Moved The Lounge
c++helpcomworkspace
29 Posts 17 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Tim Deveaux

    Just a point that I stumbled on recently - the class view is limited to classes/etc contained in files with standard c++ extensions. I've been working on a legacy prog that was originally a 16 VC 1.52 project, and made use of a third party GUI design tool that subclassed the mfc window classes and used a convention of '#including' c++ code from files with non-standard extentions (e.g. XXc instead of cpp). (I know - yucch) The no-compile-browser (ncb) can't deal with the stuff in these files - if you want to jump to the decl of one of these wrappers, you need to build the real browse info (or, yes, do the Find In Files thing). Wonder if there's something I'm missing here - can we add these extensions to VC somehow so that these classes will show?

    B Offline
    B Offline
    Ben Burnett
    wrote on last edited by
    #20

    Yim, You can make VC++ automatically highlight them by adding the file extensions to the following registry key;

    [HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Text Editor\Tabs/Language Settings\C/C++]
    FileExtensions=cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;cc;XXc

    This also seems to allow one to browse through that kind of file with the class browser. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)

    T 1 Reply Last reply
    0
    • J James Millson

      No, I use the wizard bar (I think thats what it's called).

      Z Offline
      Z Offline
      Zyxil
      wrote on last edited by
      #21

      I used to teach the Microsoft Official Curriculum course on the MFC and would ask the students if they used Class View, File View or the Wizard Bar to navigate through their projects. Only one time out of about 200 students did someone admit to using the Wizard Bar. I hate that thing. ;P -John

      J A 2 Replies Last reply
      0
      • B Ben Burnett

        Yim, You can make VC++ automatically highlight them by adding the file extensions to the following registry key;

        [HKEY_CURRENT_USER\Software\Microsoft\Devstudio\6.0\Text Editor\Tabs/Language Settings\C/C++]
        FileExtensions=cpp;cxx;c;h;hxx;hpp;inl;tlh;tli;rc;rc2;cc;XXc

        This also seems to allow one to browse through that kind of file with the class browser. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)

        T Offline
        T Offline
        Tim Deveaux
        wrote on last edited by
        #22

        Ben Nice one! I had to find a better reg loc than HKCU, though - it gets overwritten (on NT anyway). I think the pivotal key is in the profile your logged as - HKEY_USERS\<big scary key here>\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++ It also exists in HKEY_USERS\.DEFAULT\Software\... but I had success only when I changed the profiled key. Maybe you are on Win98? Haven't looked at that yet. Still can't build a Class Wizard database, which may be another issue, but the classes now show up in the class browser and I get syntax highlighting.

        B 1 Reply Last reply
        0
        • Z Zyxil

          I used to teach the Microsoft Official Curriculum course on the MFC and would ask the students if they used Class View, File View or the Wizard Bar to navigate through their projects. Only one time out of about 200 students did someone admit to using the Wizard Bar. I hate that thing. ;P -John

          J Offline
          J Offline
          James Millson
          wrote on last edited by
          #23

          Why? Surely it is by far the easiest method as it is always infront of you no matter which document type you are working in. One click (ok, three clicks) and you are in any function, or whatever, for any class in the entire project - no matter how big.

          1 Reply Last reply
          0
          • T Tim Deveaux

            Ben Nice one! I had to find a better reg loc than HKCU, though - it gets overwritten (on NT anyway). I think the pivotal key is in the profile your logged as - HKEY_USERS\<big scary key here>\Software\Microsoft\DevStudio\6.0\Text Editor\Tabs/Language Settings\C/C++ It also exists in HKEY_USERS\.DEFAULT\Software\... but I had success only when I changed the profiled key. Maybe you are on Win98? Haven't looked at that yet. Still can't build a Class Wizard database, which may be another issue, but the classes now show up in the class browser and I get syntax highlighting.

            B Offline
            B Offline
            Ben Burnett
            wrote on last edited by
            #24

            > I had to find a better reg loc than HKCU, though - it gets > overwritten (on NT anyway) [snip] > Maybe you are on Win98? Haven't looked at that yet. Strage... I'm running Win2K and the settings havent ever been overwritten, even after a reboot. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)

            T J 2 Replies Last reply
            0
            • J James Millson

              That's an interesting point:- How many of you actually use the classview? I don't mean the class wizard (I only use that when assigning names to variables, etc). I don't think i've ever used it in my life, other than "what does this tab do?".

              C Offline
              C Offline
              Christian Graus
              wrote on last edited by
              #25

              It's funny, because I *always* use the classview, but others here use the Wizard Bar more ( I use a combination of the two ), and some even use the source file view to navigate (urgh). I always believe that good software offers a multitude of ways to achive core functions so people can, to a degree, define their own interface by choosing the methods that suit them. I guess this shows VC++ achieves that. Christian #include "std_disclaimer.h" People who love sausage and respect the law should never watch either one being made. The things that come to those who wait are usually the things left by those who got there first.

              1 Reply Last reply
              0
              • B Ben Burnett

                > I had to find a better reg loc than HKCU, though - it gets > overwritten (on NT anyway) [snip] > Maybe you are on Win98? Haven't looked at that yet. Strage... I'm running Win2K and the settings havent ever been overwritten, even after a reboot. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)

                T Offline
                T Offline
                Tim Deveaux
                wrote on last edited by
                #26

                Well, got it going on 98, but sort of the same situation - just editing the CURRENT_USER mirror won't do it - here I had to edit USERS/.DEFAULT, which updated HKCU, and had to do it with DevStudio closed - which seemed to overwrite the HKCU key when I closed it in order to reopen... Maybe W2K handles the HKCU alias differently? Maybe I shouldn't be editing the registry? :-D

                1 Reply Last reply
                0
                • B Ben Burnett

                  > I had to find a better reg loc than HKCU, though - it gets > overwritten (on NT anyway) [snip] > Maybe you are on Win98? Haven't looked at that yet. Strage... I'm running Win2K and the settings havent ever been overwritten, even after a reboot. -Ben --------- On the topic of code with no error handling -- It's not poor coding, it's "optimistic" ;)

                  J Offline
                  J Offline
                  Jonathan Gilligan
                  wrote on last edited by
                  #27

                  Strage... I'm running Win2K and the settings havent ever been overwritten, even after a reboot. I've had this problem a lot. I've consistently found that a number of the keys DevStudio uses to store user configurations get hosed frequently (on NT). Most noticeable is that if I customize the menus from Tools/Options, the titles for the menu entry gets hosed the second time I fire up DevStudio after doing the customization. For instance, I might add a menu item for a macro (or add-in command) called MyVeryLongWindedMacro and name the menu item "Foo". The next time I start DevStudio, I will have "Foo" on the menu. The following time I start DevStudio, the menu item will be renamed automagically to "MyVeryLongWindedMacro". I finally dealt with this one by writing a macro that rewrites the menus the way I like them. If I run this macro at startup, I get to keep my preferences. Unfortunately, if other registry keys are getting hosed as well, you can't reset them as easily from inside DevStudio. He was allying himself to science, for what was science but the absence of prejudice backed by the presence of money? --- Henry James, The Golden Bowl

                  1 Reply Last reply
                  0
                  • Z Zyxil

                    I used to teach the Microsoft Official Curriculum course on the MFC and would ask the students if they used Class View, File View or the Wizard Bar to navigate through their projects. Only one time out of about 200 students did someone admit to using the Wizard Bar. I hate that thing. ;P -John

                    A Offline
                    A Offline
                    Anna Jayne Metcalfe
                    wrote on last edited by
                    #28

                    Me neither. I develop on two machines - an NT box with an 1152x864 17" display, and a Win98 laptop with an 800x600 TFT. Neither has enough real estate, so until I've got three 19" monitors on each machine, the WizardBar stays off! ;P In fact, half the time I work in full screen mode (esp on the laptop) and use WndTabs to get around... Andy Metcalfe - Sonardyne International Ltd
                    (andy.metcalfe@lineone.net)
                    http://www.resorg.co.uk

                    "I used to be a medieval re-enactor, but I'm (nearly) alright now..."

                    1 Reply Last reply
                    0
                    • C coder8472

                      I mostly use the file-view nowadays, because the classes kept dissapearing, as soon as I changed something, and I didn't want to open the header file and save it everytime. I sometimes use the class-view to create member functions, because it's quicker, but that doesn't work allways... maXallion
                        "Look for bugs, I hate bugs!" - Warden, The Mummy
                        www.maxallion.de - coded evil & more

                      A Offline
                      A Offline
                      Anna Jayne Metcalfe
                      wrote on last edited by
                      #29

                      I had the same problem, until I discovered the OpenVC add-in iwth its "NukeNCB" button...it works for me! Andy Metcalfe - Sonardyne International Ltd
                      (andy.metcalfe@lineone.net)
                      http://www.resorg.co.uk

                      "I used to be a medieval re-enactor, but I'm (nearly) alright now..."

                      1 Reply Last reply
                      0
                      Reply
                      • Reply as topic
                      Log in to reply
                      • Oldest to Newest
                      • Newest to Oldest
                      • Most Votes


                      • Login

                      • Don't have an account? Register

                      • Login or register to search.
                      • First post
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • World
                      • Users
                      • Groups