473,769 Members | 6,337 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

MFC Migration

I am thinking of migrating our MFC application to .NET using C++/CLI. My
question is does a migration from MFC applications and ATL to WinForms make
sense, given that XAML is likely to be the approach of the future?
Nov 17 '05 #1
14 3112
gator wrote:
I am thinking of migrating our MFC application to .NET using C++/CLI.
My question is does a migration from MFC applications and ATL to
WinForms make sense, given that XAML is likely to be the approach of
the future?


IMO, no. There's no need to abandon your existing C++ code base.

Port your MFC/ATL application to VC++ 2005 today. You can add new features
(views, forms, etc) using Winforms today and using Avalon when the time
comes.

-cd
Nov 17 '05 #2
Hi Gator,

"gator" <ga***@discussi ons.microsoft.c om> wrote in message
news:21******** *************** ***********@mic rosoft.com...
I am thinking of migrating our MFC application to .NET using C++/CLI. My
question is does a migration from MFC applications and ATL to WinForms
make
sense, given that XAML is likely to be the approach of the future?


IMO migrating our MFC application to .NET using C++/CLI is the only option.
Being stuck in the native world is not an option given that we currently
have version 2 of .NET and .NET is *the* accepted technology for user mode
development on MS platforms. Rewriting your code from scratch is not an
option given that WPF is not released and WinForms is not the API of the
future.

Moving to .NET using C++/CLI and IJW (nowadays called "Interop
Technologies"), allows you to
* keep your UI as it is instead of implementing an intemediate solution
* refactor and extend your application towards .NET step by step
* use all features of the base class library - not only winforms
* integrate WinForms controls in MFC dialogs and views
* integrate Avalon (WPF) controls in MFC dialogs and views

Nov 17 '05 #3
I haven't done anything with the 2005 version of WinForms yet, but the
version in 2003 was not suited for a larger desktop application in my
opinion. I agree with Carl and I'd wait until there is more info. I do
support the paradigm of managed code, in theory, but for now I need my
desktop applications to run as quickly as possible and since they are large
to compile as small as possible. I can see lots of things to use .NET for,
but so far this is not one of them. FWIW, Microsoft is still compiling
their office applications native so they are following this same trend. I
don't know if they use MFC for Office any more or not, but that's a whole
different question :o)

Tom

"gator" <ga***@discussi ons.microsoft.c om> wrote in message
news:21******** *************** ***********@mic rosoft.com...
I am thinking of migrating our MFC application to .NET using C++/CLI. My
question is does a migration from MFC applications and ATL to WinForms
make
sense, given that XAML is likely to be the approach of the future?

Nov 17 '05 #4
Tom Serface wrote:
FWIW,
Microsoft is still compiling their office applications native so they
are following this same trend.


Oh no, please! Don't start again the question "Why hasn't Microsoft
converted the whole multi-million lines code base of Office to .NET" !

Of course they haven't ported it! What would be the point? What would be the
added-value, both for Microsoft and for the customers? It would be several
man-years of work without adding any features, without correcting any bug
(worse, it will most probably add new bugs).
Not porting Office doesn't assume anything about .NET qualities (or lack
thereof) for GUI apps.

Arnaud
MVP - VC
Nov 17 '05 #5
Good point. Of course the same applies to others with working applications
in MFC. That's all I was saying.

Tom

"Arnaud Debaene" <ad******@clu b-internet.fr> wrote in message
news:u6******** ********@TK2MSF TNGP11.phx.gbl. ..
Tom Serface wrote:
FWIW,
Microsoft is still compiling their office applications native so they
are following this same trend.


Oh no, please! Don't start again the question "Why hasn't Microsoft
converted the whole multi-million lines code base of Office to .NET" !

Of course they haven't ported it! What would be the point? What would be
the added-value, both for Microsoft and for the customers? It would be
several man-years of work without adding any features, without correcting
any bug (worse, it will most probably add new bugs).
Not porting Office doesn't assume anything about .NET qualities (or lack
thereof) for GUI apps.

Arnaud
MVP - VC

Nov 17 '05 #6
Like Tom correctly points out: MS expects everybody else to port. Don't
they?

-Michael Viking

"Arnaud Debaene" <ad******@clu b-internet.fr> wrote in message
news:u6******** ********@TK2MSF TNGP11.phx.gbl. ..
Tom Serface wrote:
FWIW,
Microsoft is still compiling their office applications native so they
are following this same trend.
Oh no, please! Don't start again the question "Why hasn't Microsoft
converted the whole multi-million lines code base of Office to .NET" !

Of course they haven't ported it! What would be the point? What would be

the added-value, both for Microsoft and for the customers? It would be several
man-years of work without adding any features, without correcting any bug
(worse, it will most probably add new bugs).
Not porting Office doesn't assume anything about .NET qualities (or lack
thereof) for GUI apps.

Arnaud
MVP - VC

Nov 17 '05 #7
Michael Viking wrote:
Like Tom correctly points out: MS expects everybody else to port.
Don't they?


No, I don't believe so.. What have you seen, read or heard that make you
think so?

Arnaud
MVP - VC
Nov 17 '05 #8
Actually, to be fair, I've never heard any one at Microsoft tell me they
expect me to port and I wasn't trying to insinuate that. There is a big
push towards managed code, rightfully so, but everyone I've talked to about
my applications tells me that porting them to managed code should be a
gradual process since they already work. As .NET continues to improve it
becomes more compelling as well.

So, my take, is: it's a good idea to start working towards living in a
managed world, but I wouldn't drop everything and feel I'm not "up to date"
if I'm still compiling natively. I think the smart thing to do is consider
the application, the legacy code, and what you intend to do with it. For
example, I hate using Xerces to parse XML. The .NET XML parser, in my
tests, works great. I plan to really quickly port my XML parsing to managed
code even though other parts of my application are still compiled native.
I'm really glad C++ 2005 allows me to do that.

Tom

"Arnaud Debaene" <ad******@clu b-internet.fr> wrote in message
news:e%******** ********@tk2msf tngp13.phx.gbl. ..
Michael Viking wrote:
Like Tom correctly points out: MS expects everybody else to port.
Don't they?


No, I don't believe so.. What have you seen, read or heard that make you
think so?

Arnaud
MVP - VC

Nov 17 '05 #9
Well, I may be speaking out of turn and it's pretty hard to search for
articles of this nature to determine one way of the other. It's just the
general feeling I've developed over the years of reading these newsgroups.

-Michael Viking

"Arnaud Debaene" <ad******@clu b-internet.fr> wrote in message
news:e%******** ********@tk2msf tngp13.phx.gbl. ..
Michael Viking wrote:
Like Tom correctly points out: MS expects everybody else to port.
Don't they?


No, I don't believe so.. What have you seen, read or heard that make you
think so?

Arnaud
MVP - VC

Nov 17 '05 #10

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

Similar topics

9
2129
by: Paddy McCarthy | last post by:
Frustrated at being prevented from using Python at work I went gunning for Perl. Time to roll out some useless Google statistics to make me feel better Google Phrase count ------------- ----- "prefer perl to python" 26 "prefers perl to python" 0
4
19994
by: susmita_ganguly | last post by:
Hi I am trying to upgrade from oracle 8i to oracle 9i on the same server ..I don't know much abt migration . Can anyone help me out. Thanks. Susmita
11
9532
by: Jep | last post by:
Any help or advice appreciated. We have just installed and configured a new DB2 v.8.1 with latest FixPack. Just a few days later it dies and now we have a DB that is totally unusable. - - - - It went all wrong one morning when connecting gave us this msg:
4
3987
by: Abram Friesen | last post by:
Hi, I'm a developer for a software application vendor, and our application makes use of a customer-maintained Oracle 8i/9i database. We've had a customer request to support DB2 database, and I'm looking into the feasibility of migration. Our application runs on NT Server and, the DB2 database would be in some cases on a separate AIX machine, in other cases on an AS/400. There are two problems we are running into, both relating to our...
1
2072
by: sac | last post by:
I am using DB2 v8.1 on UNIX. A few weeks ago the DBAs carried out node migration activity on the database. After the node migration I observed that the queries that execute on temporary tables show extreme poor performance. One of the query was partly optimized by declaring a partitioning key on the temporary table. However it still takes longer than before the node migration. I would appreciate if I could get information on the...
1
2681
by: rob | last post by:
Dear All, I have a very small test project to convert asp to asp.net using the Microsoft/Artisan ASP to ASP.NET Migration Assistant (http://msdn.microsoft.com/asp.net/using/migrating/aspmig/aspmigasst/default ..aspx). Everything works fine when my include file is in the same directory as the asp file that includes the include file. What I am having trouble with is that the migration tool doesn't see my include file when it resids in a...
1
3875
by: Bonggoy Cruz | last post by:
We have a fairly big size ASP.NET web application that was written VB.NET. We are in the process converting the web project. We used the migration wizard included in VS 2005. I followed step by step guide outlined in here: http://msdn.microsoft.com/asp.net/reference/migration/upgrade/default.aspx?pull=/library/en-us/dnaspp/html/webprojectsvs05.asp. I was able to convert the project without any problem. Compiling and building them is...
60
4939
by: Shawnk | last post by:
Some Sr. colleges and I have had an on going discussion relative to when and if C# will ever support 'true' multiple inheritance. Relevant to this, I wanted to query the C# community (the 'target' programming community herein) to get some community input and verify (or not) the following two statements. Few programmers (3 to7%) UNDERSTAND 'Strategic Functional Migration
9
4204
by: Troels Arvin | last post by:
At work, some people have found IBM's Migration Toolkit (MTK) to be a nice tool for copying data from one table (in another DBMS product) to DB2. Now, they want to do the same thing from one DB2 database to another DB2 database. - But MTK (surprisingly) doesn't seem to support DB2-DB2 copies. These are non-regular, ad-hoc tasks, performed by users without administrative rights (and generally somewhat annoyed by command line...
3
4642
Frinavale
by: Frinavale | last post by:
I have been researching the best approach to migrating a VB6 application into a VB.NET application. There is a lot of information out there but most of it recommends that you "train in the migration process before jumping into it". One site even recommends that this training process should take at least 2-3 weeks. I'm not sure how you can train for such a process...but maybe I'll find something while I'm researching. I was wondering if anyone...
0
9423
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10222
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
10050
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...
1
7413
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
5310
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...
0
5448
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3967
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
3570
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2815
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.