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.
  • A Anna Jayne Metcalfe

    I'd go further than that. You should also shut down DevStudio and delete the .ncb and .opt files. 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..."

    C Offline
    C Offline
    Chris Losinger
    wrote on last edited by
    #4

    ...and i'd go further than that and suggest that people just stop using class view altogether. :) -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

    J 1 Reply Last reply
    0
    • C Chris Losinger

      ...and i'd go further than that and suggest that people just stop using class view altogether. :) -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

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

      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?".

      T J C C C 5 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?".

        T Offline
        T Offline
        Tomasz Sowinski
        wrote on last edited by
        #6

        I don't think i've ever used it in my life, other than "what does this tab do?" I'm using ClassView as primary workspace/project navigation tool. Are you using File View to move between your classes? Tomasz Sowinski -- http://www.shooltz.com

        N L J 3 Replies Last reply
        0
        • T Tomasz Sowinski

          I don't think i've ever used it in my life, other than "what does this tab do?" I'm using ClassView as primary workspace/project navigation tool. Are you using File View to move between your classes? Tomasz Sowinski -- http://www.shooltz.com

          N Offline
          N Offline
          NormDroid
          wrote on last edited by
          #7

          Especially when deploying OOD in your project, how else would you navigate thru your alll your classes?

          C 1 Reply 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?".

            J Offline
            J Offline
            Joseph Dempsey
            wrote on last edited by
            #8

            I never used to use it at all until I started my current job. All of a sudden I was working on a project with over 1700 classes. ClassView became the easiest way to navigate through all of that without becoming completely lost. How do you manage large projects? I can see that it would be easy on a code base you wrote all of but what of the ones you have to start in the middle of? Joseph Dempsey jdempsey@cox.rr.com Joseph.Dempsey@thermobio.com "Software Engineering is a race between the programmers, trying to make bigger and better fool-proof software, and the universe trying to make bigger fools. So far the Universe in winning." --anonymous

            1 Reply 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
              Chris Losinger
              wrote on last edited by
              #9

              i'm file view, 100%. class view is worthless to me. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

              realJSOPR 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
                coder8472
                wrote on last edited by
                #10

                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 1 Reply Last reply
                0
                • N NormDroid

                  Especially when deploying OOD in your project, how else would you navigate thru your alll your classes?

                  C Offline
                  C Offline
                  Chris Losinger
                  wrote on last edited by
                  #11

                  it's easy! CThisClass goes in ThisClass.cpp and ThisClass.h . :) ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

                  1 Reply Last reply
                  0
                  • C Chris Losinger

                    i'm file view, 100%. class view is worthless to me. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

                    realJSOPR Offline
                    realJSOPR Offline
                    realJSOP
                    wrote on last edited by
                    #12

                    The only thing the class view brings to the table is the ability to do the intellisense stuff. The key is that intellisense depends on the clw and ncb file being up to date. If the NCB file gets corrupted (intellisense will not work if this is the case), merely shut down the IDE, delete the NCB file, and restart the IDE. At that point, intellisense should start working again.

                    T 1 Reply Last reply
                    0
                    • realJSOPR realJSOP

                      The only thing the class view brings to the table is the ability to do the intellisense stuff. The key is that intellisense depends on the clw and ncb file being up to date. If the NCB file gets corrupted (intellisense will not work if this is the case), merely shut down the IDE, delete the NCB file, and restart the IDE. At that point, intellisense should start working again.

                      T Offline
                      T Offline
                      Tomasz Sowinski
                      wrote on last edited by
                      #13

                      The only thing the class view brings to the table is the ability to do the intellisense stuff. Sorry, but Intellisense works in the editor, not in the Workspace docking window. The only common thing is that they both use .ncb file. Tomasz Sowinski -- http://www.shooltz.com

                      1 Reply Last reply
                      0
                      • C Chris Losinger

                        i'm file view, 100%. class view is worthless to me. -c ------------------------------ Smaller Animals Software, Inc. http://www.smalleranimals.com

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

                        When I want to jump to the definition (or declaration) of a function, Class View is much faster than firing up the Browser (not to mention saving the extra time to compile with browser info generation) or search in all filesl. Sure, I could use a tags tool, but ClassView is fine for most of my work, so why bother. Of course, ClassView does suffer a lot with respect to real C++ code (i.e., namespaces, templates, etc.) just as IntelliSense does, but it's still quite useful for my work.

                        T 1 Reply Last reply
                        0
                        • T Tomasz Sowinski

                          I don't think i've ever used it in my life, other than "what does this tab do?" I'm using ClassView as primary workspace/project navigation tool. Are you using File View to move between your classes? Tomasz Sowinski -- http://www.shooltz.com

                          L Offline
                          L Offline
                          l a u r e n
                          wrote on last edited by
                          #15

                          likewise ... i stopped using the fileview a long whiles ago as just too inefficient when you have >100 member functions in some classes --- "every year we invent better idiot proof systems and every year they invent better idiots"

                          C D 2 Replies Last reply
                          0
                          • J Jonathan Gilligan

                            When I want to jump to the definition (or declaration) of a function, Class View is much faster than firing up the Browser (not to mention saving the extra time to compile with browser info generation) or search in all filesl. Sure, I could use a tags tool, but ClassView is fine for most of my work, so why bother. Of course, ClassView does suffer a lot with respect to real C++ code (i.e., namespaces, templates, etc.) just as IntelliSense does, but it's still quite useful for my work.

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

                            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 1 Reply Last reply
                            0
                            • T Tomasz Sowinski

                              I don't think i've ever used it in my life, other than "what does this tab do?" I'm using ClassView as primary workspace/project navigation tool. Are you using File View to move between your classes? Tomasz Sowinski -- http://www.shooltz.com

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

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

                              Z 1 Reply Last reply
                              0
                              • L l a u r e n

                                likewise ... i stopped using the fileview a long whiles ago as just too inefficient when you have >100 member functions in some classes --- "every year we invent better idiot proof systems and every year they invent better idiots"

                                C Offline
                                C Offline
                                coder8472
                                wrote on last edited by
                                #18

                                the fileview works fine if you use something like Visual Assist ;P maXallion
                                  "Look for bugs, I hate bugs!" - Warden, The Mummy
                                  www.maxallion.de - coded evil & more

                                1 Reply Last reply
                                0
                                • L l a u r e n

                                  likewise ... i stopped using the fileview a long whiles ago as just too inefficient when you have >100 member functions in some classes --- "every year we invent better idiot proof systems and every year they invent better idiots"

                                  D Offline
                                  D Offline
                                  Dale Thompson
                                  wrote on last edited by
                                  #19

                                  > likewise ... i stopped using the fileview a long whiles ago as > just too inefficient when you have >100 member functions in > some classes Wow - I think you need to do some more decomposition resulting in more classes with fewer members. Dale Thompson

                                  1 Reply Last reply
                                  0
                                  • 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
                                          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