Stupid Questions on C++ .NET
-
I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks
-
I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks
Anonymous wrote: why do I keep hearing people saying to move away from MFC and learn .Net because some people are convinced that every new Microsoft technology is the answer to all programming problems. .Net has its place, but as the name implies, that place is on the net, where it is a big improvement over what came before. on the desktop, it's not yet as powerful as MFC - at least what i've seen. just my opinion, of course. i'm sure others will come by and give you The Truth about .Net, and viciously scold me for my heresy. Image Toolkits | Image Processing | Cleek
-
I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks
Anonymous wrote: Is there a MFC equivalent in .Net? Yes and No. MFC is still distributed with VC.NET2003 (depending on which edition you get), so MFC is an option, even if all it does is give you access to an improved compiler. As for the alternatives to MFC - Windows Forms is the .NET equivalent. To take a guess, you looked at the code and it looked to simple compared to what MFC provided. Doc/View SDI/MDI are now so simple to achieve that Microsoft don't worry about them in the fashion that they used to - no more wizards, no more chunks of code that are labelled 'DO NOT EDIT'. If you do need to emulate the MFC styles of interface it's not hard at all. If you need large GUI's are you sure that you need to be writing them in C++? Microsoft now recommend that C# is an acceptable alternative in many cases and it simplifies the coding even further. If you need to access legacy code previously written in C++ you can wrap it in managed extensions or COM objects.
-
I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks
>> If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. One of the reason to move away from MFC is that it is not backward compatible between versions. For example, there are lots of changes (documented and non-documented) between MFC 6 (Visual Studio 98) and MFC 7.0 and MFC 7.1 (.NET 2003). So, if you have a large-scaled project, heavily based on MFC 6 and you are planning for migration to .NET 2003 with MFC 7, be prepare for lots of compile-time and run-time surprises. Serge
-
I am new to C++ .Net and I have been told to move away from MFC to .Net. I have read through a few introduction book on .Net & C++ .Net by Microsoft Press, but so far I have yet to see anything in .Net that's similar to Doc/View or SDI/MDI in MFC. I only see .Net Framework Forms which looks like MFC's Dialog. Is there a MFC equivalent in .Net? How would I go about converting MFC to .Net or create Doc/View/SDI/MDI in .Net? If there isn't one why do I keep hearing people saying to move away from MFC and learn .Net. I would also appreciate any book recommendation. Thanks
Anonymous wrote: anything in .Net that's similar to Doc/View or SDI/MDI in MFC. No, at least not yet. I don't know if this has made it to 2.0. Anonymous wrote: any book recommendation I'm using these 3:
- Windows Forms Programming in C# (Chris Sells)[^]
- Programming Windows with C# (Charles Petzold)[^]
- Inside C# (2nd ed) (Andrew Whitechapel & Tom Archer)[^]
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com
-
Anonymous wrote: Is there a MFC equivalent in .Net? Yes and No. MFC is still distributed with VC.NET2003 (depending on which edition you get), so MFC is an option, even if all it does is give you access to an improved compiler. As for the alternatives to MFC - Windows Forms is the .NET equivalent. To take a guess, you looked at the code and it looked to simple compared to what MFC provided. Doc/View SDI/MDI are now so simple to achieve that Microsoft don't worry about them in the fashion that they used to - no more wizards, no more chunks of code that are labelled 'DO NOT EDIT'. If you do need to emulate the MFC styles of interface it's not hard at all. If you need large GUI's are you sure that you need to be writing them in C++? Microsoft now recommend that C# is an acceptable alternative in many cases and it simplifies the coding even further. If you need to access legacy code previously written in C++ you can wrap it in managed extensions or COM objects.
I looked at the examples in the books, all I see are MFC Dialog type interface. I know if I spend time I can make something look like Doc/View but right now I don't have that luxury to find out how to create one from scratch. Do you know any example that I can look at? As for C#, I don't know if I have the time to learn another language right now. I am on a tight schedule to get my program working. X|
-
Anonymous wrote: anything in .Net that's similar to Doc/View or SDI/MDI in MFC. No, at least not yet. I don't know if this has made it to 2.0. Anonymous wrote: any book recommendation I'm using these 3:
- Windows Forms Programming in C# (Chris Sells)[^]
- Programming Windows with C# (Charles Petzold)[^]
- Inside C# (2nd ed) (Andrew Whitechapel & Tom Archer)[^]
/ravi My new year's resolution: 2048 x 1536 Home | Articles | Freeware | Music ravib@ravib.com