Managed C++ with MFC
-
Hello I am very new to managed c++, i have to start the codeing which needs many MFC features. I have done the same in VC++ 6.0. Now i must port it onto VC++.net. Can anyone please confirm me wheather, i can start my project in VC++.net version (Managed C++) and also use the features of MFC. Kindly give me the method i need to follow. Thank you
Kind Regards Sandy
-
Hello I am very new to managed c++, i have to start the codeing which needs many MFC features. I have done the same in VC++ 6.0. Now i must port it onto VC++.net. Can anyone please confirm me wheather, i can start my project in VC++.net version (Managed C++) and also use the features of MFC. Kindly give me the method i need to follow. Thank you
Kind Regards Sandy
Yes, you can create an MFC project and add the ( from memory ) /clr compiler switch to allow you to use managed code. However, MFC doesn't offer anything that .NET doesn't offer, are you sure you want to rely on both ?
Christian Graus - C++ MVP
-
Yes, you can create an MFC project and add the ( from memory ) /clr compiler switch to allow you to use managed code. However, MFC doesn't offer anything that .NET doesn't offer, are you sure you want to rely on both ?
Christian Graus - C++ MVP
Thanks Christain, i think you have really made my work light. I am still in a dilama where i need to communicate with a firmware and also use some of the OCX for graphs and sliders. can my .net VC++ work in the same mannar as that of the MFC. since MFC is strong on these concepts(like sending and reciving data from any other device) and also very mush usefull in system programming. Kindly help me, I have to make a decision betwenn VC++.net and VC++.Net MFC. Is vc++.Net same as MFC? Sorry if i am bugging you up. I am deseprate for some support.
Kind Regards Sandy
-
Thanks Christain, i think you have really made my work light. I am still in a dilama where i need to communicate with a firmware and also use some of the OCX for graphs and sliders. can my .net VC++ work in the same mannar as that of the MFC. since MFC is strong on these concepts(like sending and reciving data from any other device) and also very mush usefull in system programming. Kindly help me, I have to make a decision betwenn VC++.net and VC++.Net MFC. Is vc++.Net same as MFC? Sorry if i am bugging you up. I am deseprate for some support.
Kind Regards Sandy
ksandy45 wrote:
Is vc++.Net same as MFC?
No, it's not even close. .NET is newer, less supported, but certainly does more. If you have the choice, I'd take C# over C++/CLI.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
ksandy45 wrote:
Is vc++.Net same as MFC?
No, it's not even close. .NET is newer, less supported, but certainly does more. If you have the choice, I'd take C# over C++/CLI.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
Hmmmm..... I am bit confused, i don't mean that way. Can i achieve my things like communicating with Firmware, via VC++.net. Is it functionality wise Same(.net & MFC)?
Kind Regards Sandy
ksandy45 wrote:
Can i achieve my things like communicating with Firmware, via VC++.net.
Yes. There is *nothing* you can do in MFC that you can't do in C++/CLI ( or Win32, for that matter ). But, C++/CLI has a more modern framework, so it offers all sorts of stuff that vanilla C++ and MFC do not.
ksandy45 wrote:
Is it functionality wise Same(.net & MFC)?
No. Like I said, the .NET framework offers a lot of stuff that MFC does not.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
ksandy45 wrote:
Can i achieve my things like communicating with Firmware, via VC++.net.
Yes. There is *nothing* you can do in MFC that you can't do in C++/CLI ( or Win32, for that matter ). But, C++/CLI has a more modern framework, so it offers all sorts of stuff that vanilla C++ and MFC do not.
ksandy45 wrote:
Is it functionality wise Same(.net & MFC)?
No. Like I said, the .NET framework offers a lot of stuff that MFC does not.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
Thank you Christian. I have clear picture now. I can start my project using Managed C++ and still do all the functionalists that i have done using MFC. I hope what i predict is right? Kindly help me for my further queries. Thanks a lot.
Kind Regards Sandy
-
Thank you Christian. I have clear picture now. I can start my project using Managed C++ and still do all the functionalists that i have done using MFC. I hope what i predict is right? Kindly help me for my further queries. Thanks a lot.
Kind Regards Sandy
MFC is just a Win32 wrapper. .NET is a whole new framework. C++/CLI will allow you to do any Win32 call you like.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert
-
MFC is just a Win32 wrapper. .NET is a whole new framework. C++/CLI will allow you to do any Win32 call you like.
Christian Graus - C++ MVP 'Why don't we jump on a fad that hasn't already been widely discredited ?' - Dilbert