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. General Programming
  3. C / C++ / MFC
  4. General question about versions of VC++

General question about versions of VC++

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsharpc++announcementlounge
6 Posts 2 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.
  • Z Offline
    Z Offline
    zizzzz
    wrote on last edited by
    #1

    salam good morning, when I try to execute a sample done in VC++ 6 and I m working with VC++ .net it allow me to convert it but when I run it, it doesn't work there is many errors. and I remarque that many people tried it and it work for them but in VC++ 6. what's the difference between these two version normally when we do an amelioration we keep the basics of the last version ? thank you ! have a nice day zizzzzzzzzzz

    C 1 Reply Last reply
    0
    • Z zizzzz

      salam good morning, when I try to execute a sample done in VC++ 6 and I m working with VC++ .net it allow me to convert it but when I run it, it doesn't work there is many errors. and I remarque that many people tried it and it work for them but in VC++ 6. what's the difference between these two version normally when we do an amelioration we keep the basics of the last version ? thank you ! have a nice day zizzzzzzzzzz

      C Offline
      C Offline
      Cedric Moonen
      wrote on last edited by
      #2

      zizzzz wrote:

      when I try to execute a sample done in VC++ 6 and I m working with VC++ .net

      :confused: What are you trying to do ? To execute a program, you don't need to use VC++, you simply starts your program. You mean you try to open the project file created with VC6 under VC.NET ?

      zizzzz wrote:

      it allow me to convert it but when I run it, it doesn't work there is many errors

      Again, what means "run" in this case ? For me running a program is just executing it. You probably meant compile it ? And it generates a lot of errors? Is that correct ? Ok, but what are these errors ? It's difficult to help without actually having a look at these errors. Could you please pay more attention at the words you are using because it's causing a lot of confusions. If you want that people help you, they first need to understand clearly what the problem is.


      Cédric Moonen Software developer
      Charting control [v1.1]

      Z 1 Reply Last reply
      0
      • C Cedric Moonen

        zizzzz wrote:

        when I try to execute a sample done in VC++ 6 and I m working with VC++ .net

        :confused: What are you trying to do ? To execute a program, you don't need to use VC++, you simply starts your program. You mean you try to open the project file created with VC6 under VC.NET ?

        zizzzz wrote:

        it allow me to convert it but when I run it, it doesn't work there is many errors

        Again, what means "run" in this case ? For me running a program is just executing it. You probably meant compile it ? And it generates a lot of errors? Is that correct ? Ok, but what are these errors ? It's difficult to help without actually having a look at these errors. Could you please pay more attention at the words you are using because it's causing a lot of confusions. If you want that people help you, they first need to understand clearly what the problem is.


        Cédric Moonen Software developer
        Charting control [v1.1]

        Z Offline
        Z Offline
        zizzzz
        wrote on last edited by
        #3

        yes exactly this I try to open the project file created with VC6 under VC.NET and I find many errors when compiling it for example in the sample gridctrl_demo221 which is available here with samples of codeproject I find this errors: error C2360: initialisation of 'pts' is ignored bye 'case' in all samples of gridctrl I found many problems but when I run the sample.exe it is working properly

        C 1 Reply Last reply
        0
        • Z zizzzz

          yes exactly this I try to open the project file created with VC6 under VC.NET and I find many errors when compiling it for example in the sample gridctrl_demo221 which is available here with samples of codeproject I find this errors: error C2360: initialisation of 'pts' is ignored bye 'case' in all samples of gridctrl I found many problems but when I run the sample.exe it is working properly

          C Offline
          C Offline
          Cedric Moonen
          wrote on last edited by
          #4

          This error should be generated also under VC6 if I remember well. Anyway, can you post the switch statement in which this error is generated ?


          Cédric Moonen Software developer
          Charting control [v1.1]

          Z 1 Reply Last reply
          0
          • C Cedric Moonen

            This error should be generated also under VC6 if I remember well. Anyway, can you post the switch statement in which this error is generated ?


            Cédric Moonen Software developer
            Charting control [v1.1]

            Z Offline
            Z Offline
            zizzzz
            wrote on last edited by
            #5

            switch (pMsg->message) { case WM_MBUTTONDOWN: POINTS pts = MAKEPOINTS( pMsg->lParam ); POINT point; point.x = pts.x; point.y = pts.y; ClientToScreen( &point ); pWnd = WindowFromPoint( point ); if( pWnd == this ) pWnd = m_pParentWnd; hittest = (int)pWnd->SendMessage(WM_NCHITTEST,0,MAKELONG(point.x,point.y)); case WM_KEYDOWN: **case WM_SYSKEYDOWN:** //here is the first error **case WM_KEYDOWN:** case WM_SYSKEYDOWN: //here is the second error Hide(); m_pParentWnd->PostMessage( pMsg->message, pMsg->wParam, pMsg->lParam ); return TRUE; } thank's

            C 1 Reply Last reply
            0
            • Z zizzzz

              switch (pMsg->message) { case WM_MBUTTONDOWN: POINTS pts = MAKEPOINTS( pMsg->lParam ); POINT point; point.x = pts.x; point.y = pts.y; ClientToScreen( &point ); pWnd = WindowFromPoint( point ); if( pWnd == this ) pWnd = m_pParentWnd; hittest = (int)pWnd->SendMessage(WM_NCHITTEST,0,MAKELONG(point.x,point.y)); case WM_KEYDOWN: **case WM_SYSKEYDOWN:** //here is the first error **case WM_KEYDOWN:** case WM_SYSKEYDOWN: //here is the second error Hide(); m_pParentWnd->PostMessage( pMsg->message, pMsg->wParam, pMsg->lParam ); return TRUE; } thank's

              C Offline
              C Offline
              Cedric Moonen
              wrote on last edited by
              #6

              You can't declare a variable inside a case except if it is inside brackets. It is strange that this code compiles under VC6 (did you test it ?). I know that compilers become more strict and thus sometimes generate an error when previously you had only a warning.


              Cédric Moonen Software developer
              Charting control [v1.1]

              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