including MFC classes to .NET application

A

--== Alain ==--

Hi,

I'm migrating my MFC application to .NET and therefore i need to create
it again...

However, there are some *.cpp and *.h file which i would like to keep as
such (in MFC coding).

How can i makethem usuable for VC.NET ?

I tried a simple include and here is the result :

MyAPP\wrapper\CARDLLWrapper.h(10) : error C2065: 'FUNCT_LocGetString' :
undeclared identifier

Where in my CARDLLWrapper.h :
typedef LPTSTR (*FUNCT_LocGetString)(HMODULE, long);

and in my CARDLLWrapper.cpp :
(FUNCT_LocGetString)MyGetStr =
(FUNCT_LocGetString)GetProcAddress(m_hlibLoc, (LPCSTR)("DLL_GetString"));

I tried to play with C++/compiler options but without success.

Could you help me please ?
thanks a lot,

Alain
 
B

Ben Voigt

--== Alain ==-- said:
Hi,

I'm migrating my MFC application to .NET and therefore i need to create it
again...

However, there are some *.cpp and *.h file which i would like to keep as
such (in MFC coding).

How can i makethem usuable for VC.NET ?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top