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 :
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
{
...
}

I get an errormessage on that :
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

3.const CString L_ENGLISH ="ENGLISH\n";
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'

4. PenArray[BLACK].CreatePen(PS_SOLID,m_pen,RGB(0,0,0));
and I get :
c:\esek_express\amsdb\ams_gdi_objects.cpp(60) : error C3861: 'RGB': identifier not found

All in all, it looks like I'm can't use the old MFC code....Tongue TiedTongue TiedTongue Tied

Any ideas ?

Thanks in advance,
Ohad.

[2487 byte] By [OhadNinio] at [2007-12-17]
# 1

Express FAQ: http://msdn.microsoft.com/vstudio/express/support/faq/default.aspx

MFC and ATL are not included with Visual C++ 2005 Express. MFC and ATL will
be included in all other Visual Studio 2005 Editions.

The platform SDK includes MFC folder, but it does not come with all MFC files. With the Express you are "encouraged" to move to .NET development or buy the full version.

androidi at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 2
Hi,

Thanks for the quick response.
I would be happy if you can clarify a few things for me :

1. You mentioned that "The platform SDK includes MFC folder". What/Where can I download the SDK you are talking about ? and what should I do in order to test if it is enough for me ?

2. In the other part, you said that MFC and ATL are part of the others version of visual studio.
2.1. If I have one of those, will it convert all my code that uses ATL and MFC to the new .NET environment ?
2.2. If so, what is the minimun version I should have to accomplish that ?

Thanks,
Ohad.

OhadNinio at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...
# 3
Hi there!

The Platform SDK is the download that contains the headers and libs you need to develop applications for Windows. See: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/sdkintro/sdkintro/devdoc_platform_software_development_kit_start_page.asp

If you upgrade to the Visual Studio 2005 products your MFC and ATL code will be updated to the latest version, which does not necessarily target .NET (it can with a simple addition of a compiler switch, though). The minimum version that contains these components is Visual Studio 2005 Standard edition. More information on the products is here: http://msdn.microsoft.com/vstudio/

Thanks!
April Reagan
Visual C++ Program Management

AprilReagan at 2007-9-8 > top of Msdn Tech,Visual Studio Express Editions,Installing and Registering Visual Studio 2005 Express Editions...