problems migrating from visual c++ 6.0 to the .NET express environment
Hi everyone.
First of all, I'm new to the .NET framework but have much experience in MFC and in VISUAL c++ 6.0.
I'm now trying to migrate a project I have on the 6.0 to the express version and boy, this is difficult ....
some examples :
stdafx.h, makes many problems. evantualy I made an empty header by that name and now it seems to be compilng - I'm not sure though what is the effect on the code of my workaround.
A few more compiling problems that I don't know how to resolve : I get an errormessage on that : 3.const CString L_ENGLISH ="ENGLISH\n"; 4. PenArray[BLACK].CreatePen(PS_SOLID,m_pen,RGB(0,0,0));
1. I have a class in Visual c++ 6.0 defined like :
class CamsStack :public CList<void*,void*&>
How do I compile the same in the Visual express version ?
2. The project creates a DLL with class defined like this :
class AFX_EXT_CLASS ams_gdi_objects
{
...
}
c:\esek_express\amsdb\ams_gdi_objects.h(29) : error C2470: 'ams_gdi_objects' : looks like a function definition, but there is no parameter list; skipping apparent body
doesn't compile. I get :
c:\esek_express\amsdb\ams_globals.h(27) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
C:\esek_express\amsdb\ams_globals.h(27) : error C2146: syntax error : missing ';' before identifier 'L_ENGLISH'
and I get :
c:\esek_express\amsdb\ams_gdi_objects.cpp(60) : error C3861: 'RGB': identifier not foundAll in all, it looks like I'm can't use the old MFC code....![]()
![]()
![]()
Thanks in advance,
Ohad.

