473,796 Members | 2,462 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

VC++6 MFC migration managed C++(windows form )


I want to port my MFC (VC++6) application to manageg VC ++. 7. I want to do
this because some things are much better done with C#. So i could write a C#
class and use in
my VC++ code as Languague interoperabilit y is one of the main features of
the .Net
framework. I know my application would have to obey to the CTS (common type
specification) but my main concerns are the MFC stuff!
I do not really know which options you have with windows forms. Can they do
what MFC
can do? How about functions pointers. How does managed C++ deal with this?
Maybe this is not the right place to post this, but any usefull comment will
be very
appreciated.

Thanks
Jul 21 '05
23 2240
Before i totally go for this dot net thing. I have to say that
my application is a videosurveillan ce program and i'm thinking
if i 'll alter performance considerably as i totaaly rely on the dotnet
runtime
for code generation.

Let me know what you think.
"Bredal Jensen" <br****@jensen. dk> skrev i en meddelelse
news:el******** ******@TK2MSFTN GP15.phx.gbl...
I can not see it in the project menu .
The IDE "Itself" also prompted me to reinstall .

But before i do , could you show code snippet of how to use "#using " thing.

Assum i want to get the list of my local ip/ips . I know
this can be done with Ip helper but i guess it must be much
more straight forward using .Net.

"Niki Estner" <ni*********@cu be.net> skrev i en meddelelse
news:u%******** *******@TK2MSFT NGP15.phx.gbl.. .
"Bredal Jensen" <br****@jensen. dk> wrote in
news:uO******** ********@TK2MSF TNGP11.phx.gbl. ..
I think i have a problem my visusal studio installation. i need to do a
reinstall.
I can not even see the add reference option .


Really? Select your project in the solution explorer and choose "Add
Reference" from the project menu.

You can also do the same from the source code with the "#using"

preprocessor
directive.

Niki


Jul 21 '05 #21
"Bredal Jensen" <br****@jensen. dk> wrote in
news:um******** ******@TK2MSFTN GP15.phx.gbl...
Before i totally go for this dot net thing. I have to say that
my application is a videosurveillan ce program and i'm thinking
if i 'll alter performance considerably as i totaaly rely on the dotnet
runtime
for code generation.

Let me know what you think.


In my experience, .NET creates quite fast code, and you can still implement
performance-critical code in managed C++, so I don't think that will be a
problem.

But, as always with performance: trust noone but your own benchmark.

Niki
Jul 21 '05 #22
Hi Niki,

well i enjoyed your help so much and i 'm almost sure , i 'll need it again.
I just want to know where i can catch you when i encounter trouble ;).
I assum you are on this group , and i hope you 'll see my postings.
Best regard
JB


"Niki Estner" <ni*********@cu be.net> wrote in message
news:O7******** ********@TK2MSF TNGP09.phx.gbl. ..
"Bredal Jensen" <br****@jensen. dk> wrote in
news:um******** ******@TK2MSFTN GP15.phx.gbl...
Before i totally go for this dot net thing. I have to say that
my application is a videosurveillan ce program and i'm thinking
if i 'll alter performance considerably as i totaaly rely on the dotnet
runtime
for code generation.

Let me know what you think.
In my experience, .NET creates quite fast code, and you can still

implement performance-critical code in managed C++, so I don't think that will be a
problem.

But, as always with performance: trust noone but your own benchmark.

Niki

Jul 21 '05 #23
"Bredal Jensen" <Br***********@ mimosa.com> wrote in
news:OV******** ******@TK2MSFTN GP11.phx.gbl...
Hi Niki,

well i enjoyed your help so much and i 'm almost sure , i 'll need it
again.
I just want to know where i can catch you when i encounter trouble ;).
I assum you are on this group , and i hope you 'll see my postings.


I'll do my best

Niki
Jul 21 '05 #24

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

Similar topics

1
2595
by: Bob | last post by:
I would appreciate any suggestions on handling the following... I currently have a VC++ MDI Application. The core pieces/products are all handled in separate dll's. Our shop has slowly been rewriting other applications over to VB.net. My application has now been targeted with coming over, but management does not want to incur a rewrite timeline. Since we have a standard vb.net framework in place, their thoughts are to try and take the...
6
2789
by: Ben Terry | last post by:
Hello, I have a VS 2003.NET solution which consists of four c++ unmanaged legacy projects. I am adding a new project to the solution which will be in c#. What do I need to do to my c++ projects in order to call my c# modules from within c++? From what I understand, I need to convert my c++ code from unmanaged to managed using the /clr switch (IJW). Is this correct? Are there any other considerations I need to be aware of? Ben
23
427
by: Bredal Jensen | last post by:
I want to port my MFC (VC++6) application to manageg VC ++. 7. I want to do this because some things are much better done with C#. So i could write a C# class and use in my VC++ code as Languague interoperability is one of the main features of the .Net framework. I know my application would have to obey to the CTS (common type specification) but my main concerns are the MFC stuff! I do not really know which options you have with windows...
0
10457
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10231
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10013
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9054
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7550
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6792
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5443
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4119
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3733
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.