Going From MFC to .NET

M

Medical-Fix

I hope someone can help me on this!
here is what's happening:
Big project created on MFC C++ with extensive GUI etc...
I tryed to open this project using .NET
and everything is fine from GUI to project settings etc...
Now the problem is that when I try to compile a debug or release vr.
the project gives the following error after successfully compiling all
of the other codes:

//**THIS IS JUST PART OF THE OUTPUT**//

Linking...
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\msimg32.lib : warning LNK4003: invalid library
format; library ignored
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\msimg32.lib : warning LNK4003: invalid library
format; library ignored
C:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\lib\msimg32.lib : warning LNK4003: invalid library
format; library ignored
LogFile.obj : error LNK2001: unresolved external symbol "unsigned long
__cdecl _exception_code(void)" (?_exception_code@@YAKXZ)
Option_DCT_Settings.obj : error LNK2019: unresolved external symbol
"unsigned long __cdecl _exception_code(void)" (?_exception_code@@YAKXZ)
referenced in function "bool __cdecl
ATL::_ATL_SAFE_ALLOCA_IMPL::_AtlVerifyStackAvailable(unsigned long)"
(?_AtlVerifyStackAvailable@_ATL_SAFE_ALLOCA_IMPL@ATL@@YA_NK@Z)
HardDriveTest.obj : error LNK2001: unresolved external symbol "unsigned
long __cdecl _exception_code(void)" (?_exception_code@@YAKXZ)
common.obj : error LNK2001: unresolved external symbol "unsigned long
__cdecl _exception_code(void)" (?_exception_code@@YAKXZ)
globals.obj : error LNK2019: unresolved external symbol "unsigned long
__cdecl _exception_code(void)" (?_exception_code@@YAKXZ) referenced in
function "unsigned long __stdcall
ATL::GetEnvironmentVariableWFake(unsigned short const *,unsigned short
*,unsigned long)" (?GetEnvironmentVariableWFake@ATL@@YGKPBGPAGK@Z)
ThreadSafe.obj : error LNK2001: unresolved external symbol "unsigned
long __cdecl _exception_code(void)" (?_exception_code@@YAKXZ)
 
C

Christopher Benson-Manica

In comp.lang.c++ Medical-Fix said:
Big project created on MFC C++ with extensive GUI etc...
I tryed to open this project using .NET

<ot>.NET offers such an improvement over MFC that, IMHO, this effort
sounds like a waste of time. If you or your company has the resources
to completely rewrite this application in .NET (presumably C#), then do
that; otherwise, learn to live with MFC. You won't be the only one.</ot>
 
T

Tom Serface

Hi Bensen,

I couldn't figure out what you mean by the comment. You said ".NET offers
such an improvement over MFC, this effort sounds like a waste of time."
That sounds contradictory to me. However, I agree that this effort could
maybe not be worth the trouble unless there is something specific in the
managed code stuff in.NET that is needed. Just curious.

Tom
 
M

Medical-Fix

Ok here is what's happening...
I have opened the project "originally created MFC" using VC++ .NET
I got does errors for some reason unknown, I fixed other minor errors
and opened the project once more but on a different computer...
What u know! works!
it's something to do with my computer I gess and I can't figure it
out...
Perhaps some settings are wrong on VC++??

I thank you guys concerns and help...

Jona
 
T

Tom Serface

I've had to fix minor errors in my code for every release. Lots of things
have changed since 6.0 (assuming that's where you are coming from) so some
upgrading pretty normal. Could be the other computer has some components
installed that you don't, etc. It might help if you post some of the errors
your seeing.

Tom
 
C

Christopher Benson-Manica

In comp.lang.c++ Tom Serface said:
I couldn't figure out what you mean by the comment. You said ".NET offers
such an improvement over MFC, this effort sounds like a waste of time."

What I meant is that trying to open an MFC project with .NET sounds
much less fruitful than simply rewriting the project, assuming
resources are available.
 

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

Members online

Forum statistics

Threads
473,951
Messages
2,570,113
Members
46,699
Latest member
Abigail89S

Latest Threads

Top