473,395 Members | 1,584 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

MFC to manged VC++ ...



Hello,

I have an MFC application. I want to port to a managed C++ application.
Is there support for this in VS.Net .?
Many Thanks
JB
Nov 17 '05 #1
3 952
In theory you can just turn on managed extension in the project.
However you normally have a bit of manual work to do.
We had to work through several microsoft articles before suceeding.

Just out of interest, what are you hoping to achieve under MC++? Are you
writing all new stuff from now on in c#?

"Bredal Jensen" wrote:


Hello,

I have an MFC application. I want to port to a managed C++ application.
Is there support for this in VS.Net .?
Many Thanks
JB

Nov 17 '05 #2
Hi...
However you normally have a bit of manual work to do.
We had to work through several microsoft articles before suceeding.
Could u give some references to the microsoft articles u're talkin abt here.

I'm workin on movin an MFC application to managed C++.

Thanks.
"James" wrote:
In theory you can just turn on managed extension in the project.
However you normally have a bit of manual work to do.
We had to work through several microsoft articles before suceeding.

Just out of interest, what are you hoping to achieve under MC++? Are you
writing all new stuff from now on in c#?

"Bredal Jensen" wrote:


Nov 17 '05 #3
Here are my links. If you produce your own dlls, my advice is not to bother
trying to convert them to MC++ as there is a lot more work to do.

1) Manually edit project files setting BasicRuntimeChecks="0"
http://www.groupsrv.com/dotnet/viewtopic.php?p=7922

2) Declare Empty Definitions for tree controls:
struct _IMAGELIST { };
struct _TREEITEM { };
http://www.winterdom.com/mcppfaq/archives/000262.html

3) Debugging

1. Download latest Windows XP SP2 symbols for system dlls from
http://www.microsoft.com/whdc/devtoo...symbolpkg.mspx
2. Put these in a folder
3. Link to these in the solution properties under Common Properties, Debug
Symbol Files.

Error: exceptions in mscorwks.dll, whenever a breakpoint is reached.

Link: search for “.net 1.1 service pack 1 debug symbols” at
http://communities2.microsoft.com/co...s/default.aspx

ps- expect debugging to be much slower in MC++, release builds seems OK
speed though.

"gowharjan" wrote:
Hi...
However you normally have a bit of manual work to do.
We had to work through several microsoft articles before suceeding.


Could u give some references to the microsoft articles u're talkin abt here.

I'm workin on movin an MFC application to managed C++.

Thanks.
"James" wrote:
In theory you can just turn on managed extension in the project.
However you normally have a bit of manual work to do.
We had to work through several microsoft articles before suceeding.

Just out of interest, what are you hoping to achieve under MC++? Are you
writing all new stuff from now on in c#?

"Bredal Jensen" wrote:

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Tatu Portin | last post by:
Have this kind of struct: typedef struct { char **user_comments; /* ... */ } vorbis_comment; /* prototype */ char * read_vorbis_string ( FILE *sc);
0
by: Fred Mellender | last post by:
I had VC# 2003 installed and then installed the Managed DirectX SDK. When I highlight a Direct3D class (e.g. Device) and press F1, I get the help page from the SDK and everything works fine within...
4
by: Anthony Gallagher | last post by:
I have a bunch of libraries compiled using VC++ 6.0, and I am trying to recompile one of our projects using VC++ .NET. I get all kind of linker errors (specially in STL calls). How do I get rid of...
0
by: P Reddy | last post by:
Hi All, Greetings!!! I have a question. Please respond.... I am trying to write a C# component that need to inherit some of the the interfaces from unmanged code(VC). I think one way to...
2
by: um | last post by:
When the POSIX pthreads library for w32 release 2-2-0 (http://sources.redhat.com/pthreads-win32/) is compiled with VC++6 then it compiles and passes all the benchmark tests in the subdirectory...
2
by: MR | last post by:
help! I have an unmanaged DLL that I do not have the source code, so i can't recompile or make changes. the DLL requires a callback function. I would like to implement the callback method in a...
4
by: gabe | last post by:
i have a solution to gather the text in each window that is open, but would rather use only managed code rather than unmanaged code my current solution relies on. The purpose is to get the text in...
15
by: Michael Tissington | last post by:
I have a Visual Basic 6.0 ActiveX Control. It seems there is no way with VS 2005 to create a similar control for containers that host ActiverX controls, is this correct ? I'm thinking of...
2
by: Cartoper | last post by:
I am working in VS2005 (.Net 2.0). I have a unmanaged C++ class that will be used by C#, once I get to that point. I would like to throw a System::ApplicationException from the unmanaged code,...
7
by: Norman Diamond | last post by:
A project depends on VC runtime from Visual Studio 2005 SP1, and DotNet Framework 2. Options are set in the setup project properties, so if these two dependencies are not already installed then...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.