General question about versions of VC++
-
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
-
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
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] -
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]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
-
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
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] -
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]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 -
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'sYou 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]