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. Annoying problem with VS.NET 2003 (VC++)

Annoying problem with VS.NET 2003 (VC++)

Scheduled Pinned Locked Moved The Lounge
c++csharpjavascriptvisual-studiohelp
11 Posts 7 Posters 0 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.
  • R Offline
    R Offline
    Rama Krishna Vavilala
    wrote on last edited by
    #1

    May be this might be a feature. Lets say you have an implementation file svrconndlg.cpp with top lines:-

    #include "stdafx.h"
    #include "ImpCmnUI.h"
    #include "SvrConnDlg.h"

    Everytime you add a function using the wizard or override a event handler the top few line become

    #include "stdafx.h"
    #include "ImpCmnUI.h"
    #include "SvrConnDlg.h"
    #include ".\SvrConnDlg.h"

    Notoce the last line added by wizard. It does it everytime you use the wizard. Anyone else annoyed by it? I switched to VS.NET 2003 because I had problems with VS.NET 2002 with the resource editor. Looks like I should have sticked with VC++ 6.0 .


    I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

    R D M N 4 Replies Last reply
    0
    • R Rama Krishna Vavilala

      May be this might be a feature. Lets say you have an implementation file svrconndlg.cpp with top lines:-

      #include "stdafx.h"
      #include "ImpCmnUI.h"
      #include "SvrConnDlg.h"

      Everytime you add a function using the wizard or override a event handler the top few line become

      #include "stdafx.h"
      #include "ImpCmnUI.h"
      #include "SvrConnDlg.h"
      #include ".\SvrConnDlg.h"

      Notoce the last line added by wizard. It does it everytime you use the wizard. Anyone else annoyed by it? I switched to VS.NET 2003 because I had problems with VS.NET 2002 with the resource editor. Looks like I should have sticked with VC++ 6.0 .


      I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

      R Offline
      R Offline
      Ryan Binns
      wrote on last edited by
      #2

      What happens if you change

      #include "SvrConnDlg.h"

      to

      #include ".\SvrConnDlg.h"

      Does it keep doing it then?

      Ryan

      "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

      R 1 Reply Last reply
      0
      • R Ryan Binns

        What happens if you change

        #include "SvrConnDlg.h"

        to

        #include ".\SvrConnDlg.h"

        Does it keep doing it then?

        Ryan

        "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

        R Offline
        R Offline
        Rama Krishna Vavilala
        wrote on last edited by
        #3

        It works but I don't want to do that because the former method gives me more flexibility for moving files later on.


        I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

        R 1 Reply Last reply
        0
        • R Rama Krishna Vavilala

          It works but I don't want to do that because the former method gives me more flexibility for moving files later on.


          I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

          R Offline
          R Offline
          Ryan Binns
          wrote on last edited by
          #4

          That's fair enough. What about using a #pragma(once) inside the header file so it doesn't matter if it's included twice (or whatever the equivalent is in VC.NET) It's just a hack, but if it works...

          Ryan

          "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

          V J 2 Replies Last reply
          0
          • R Ryan Binns

            That's fair enough. What about using a #pragma(once) inside the header file so it doesn't matter if it's included twice (or whatever the equivalent is in VC.NET) It's just a hack, but if it works...

            Ryan

            "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

            V Offline
            V Offline
            Victor Boctor
            wrote on last edited by
            #5

            "#pragma once" works in .NET. phpWebNotes is a page annotation system modelled after php.net. http://webnotes.sourceforge.net/demo.php[^]

            1 Reply Last reply
            0
            • R Ryan Binns

              That's fair enough. What about using a #pragma(once) inside the header file so it doesn't matter if it's included twice (or whatever the equivalent is in VC.NET) It's just a hack, but if it works...

              Ryan

              "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

              J Offline
              J Offline
              Jorgen Sigvardsson
              wrote on last edited by
              #6

              the #pragma doesn't solve the path problems that may arise... right? -- I am on fire. Do you need a light?

              R 1 Reply Last reply
              0
              • J Jorgen Sigvardsson

                the #pragma doesn't solve the path problems that may arise... right? -- I am on fire. Do you need a light?

                R Offline
                R Offline
                Ryan Binns
                wrote on last edited by
                #7

                Jörgen Sigvardsson wrote: the #pragma doesn't solve the path problems that may arise... right? That's right, but I can't think of anything else at the moment :(

                Ryan

                "Punctuality is only a virtue for those who aren't smart enough to think of good excuses for being late" John Nichol "Point Of Impact"

                1 Reply Last reply
                0
                • R Rama Krishna Vavilala

                  May be this might be a feature. Lets say you have an implementation file svrconndlg.cpp with top lines:-

                  #include "stdafx.h"
                  #include "ImpCmnUI.h"
                  #include "SvrConnDlg.h"

                  Everytime you add a function using the wizard or override a event handler the top few line become

                  #include "stdafx.h"
                  #include "ImpCmnUI.h"
                  #include "SvrConnDlg.h"
                  #include ".\SvrConnDlg.h"

                  Notoce the last line added by wizard. It does it everytime you use the wizard. Anyone else annoyed by it? I switched to VS.NET 2003 because I had problems with VS.NET 2002 with the resource editor. Looks like I should have sticked with VC++ 6.0 .


                  I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

                  D Offline
                  D Offline
                  David Wulff
                  wrote on last edited by
                  #8

                  Hell yeah, that is annoying.


                  David Wulff

                  This thing called love, it cries in a cradle all night It swings, it jives, it shakes all over like a jelly fish I kinda like it. Crazy little thing called love - Queen

                  1 Reply Last reply
                  0
                  • R Rama Krishna Vavilala

                    May be this might be a feature. Lets say you have an implementation file svrconndlg.cpp with top lines:-

                    #include "stdafx.h"
                    #include "ImpCmnUI.h"
                    #include "SvrConnDlg.h"

                    Everytime you add a function using the wizard or override a event handler the top few line become

                    #include "stdafx.h"
                    #include "ImpCmnUI.h"
                    #include "SvrConnDlg.h"
                    #include ".\SvrConnDlg.h"

                    Notoce the last line added by wizard. It does it everytime you use the wizard. Anyone else annoyed by it? I switched to VS.NET 2003 because I had problems with VS.NET 2002 with the resource editor. Looks like I should have sticked with VC++ 6.0 .


                    I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

                    M Offline
                    M Offline
                    Member 96
                    wrote on last edited by
                    #9

                    Mine is doing that as well, causes a compilation error and I have to pick through and find the include that it added for me "helpfully". Also it opens a window to the msdn site every time I resize the main splitter bar but apparently I'm the only one that gets that as I posted about that a while ago and no one else claimed theirs did that as well. Good to see I'm not crazy with at least one bug. Wonder if MS is going to fix that include bug. ------------

                    R 1 Reply Last reply
                    0
                    • M Member 96

                      Mine is doing that as well, causes a compilation error and I have to pick through and find the include that it added for me "helpfully". Also it opens a window to the msdn site every time I resize the main splitter bar but apparently I'm the only one that gets that as I posted about that a while ago and no one else claimed theirs did that as well. Good to see I'm not crazy with at least one bug. Wonder if MS is going to fix that include bug. ------------

                      R Offline
                      R Offline
                      Rama Krishna Vavilala
                      wrote on last edited by
                      #10

                      John Cardinal wrote: Also it opens a window to the msdn site every time I resize the main splitter bar :wtf::wtf: That's probably is the bug of the year


                      I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

                      1 Reply Last reply
                      0
                      • R Rama Krishna Vavilala

                        May be this might be a feature. Lets say you have an implementation file svrconndlg.cpp with top lines:-

                        #include "stdafx.h"
                        #include "ImpCmnUI.h"
                        #include "SvrConnDlg.h"

                        Everytime you add a function using the wizard or override a event handler the top few line become

                        #include "stdafx.h"
                        #include "ImpCmnUI.h"
                        #include "SvrConnDlg.h"
                        #include ".\SvrConnDlg.h"

                        Notoce the last line added by wizard. It does it everytime you use the wizard. Anyone else annoyed by it? I switched to VS.NET 2003 because I had problems with VS.NET 2002 with the resource editor. Looks like I should have sticked with VC++ 6.0 .


                        I don't choose the targets - they present themselves to me in an almost garish display of submission and sacrifice. It's my duty to react as I do. - John Simmons/Outlaw Programmer

                        N Offline
                        N Offline
                        Nick Hodapp
                        wrote on last edited by
                        #11

                        Rama -- I looked into this and found out that it is a known bug that is scheduled to be fixed in the next release. Sorry I don't have better news than that... Nick Hodapp This posting is provided “AS IS” with no warranties, and confers no rights. You assume all risk for your use. © 2003 Microsoft Corporation. All rights reserved.

                        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