|
-
June 19th, 2009, 03:16 AM
#1
C# learning guide for an ex MFC programmer
Folks,
I want to become proficient with C#. I’m aware that it will take no less than 6 months. There’s a desktop app that I want to design and write while using the best practices during this time. The app is a real-time data plotter (components from National Instruments Measurement Studio will do the heavy plotting).
I know C++ and used to be somewhat proficient with MFC and COM. However I was staying away from C++ for the last 6 years. I was writing in C (for microcontrollers), VB6 and MATLAB.
Would anybody recommend good books or other resources?
What puzzles me at the moment is the document/view architecture in .NET .
- Nick
Last edited by kender_a; June 20th, 2009 at 05:01 PM.
-
June 19th, 2009, 07:04 AM
#2
Re: C# learning guide for an ex MFC programmer
Maybe use one of the MS VS C# 2005 Step by Step ( or similar ) Which is a good step introducing C# and a bit of how to design WinForm apps. Easy to read. For getting an idea about design pattens there are much books like 'C# Design Pattens' on the market. Shouldn't be too difficult for someone who already has doen a lot in programming. But you will heve to be fee of the design patterns of C++MFC its totally others. Its more going into the direction of a great mixture of Java and VB
 Jonny Poet
To be Alive is depending on the willingsness to help others and also to permit others to help you. So lets be alive. !
Using Code Tags makes the difference: Code is easier to read, so its easier to help. Do it like this: [CODE] Put Your Code here [/code]
If anyone felt he has got help, show it in rating the post.
Also dont forget to set a post which is fully answered to 'resolved'. For more details look to FAQ's about Forum Usage. BTW I'm using Framework 3.5 and you ?
My latest articles :
Creating a Dockable Panel-Controlmanager Using C#, Part 1 | Part 2 | Part 3 | Part 4 | Part 5 | Part 6 | Part 7
-
June 19th, 2009, 11:43 AM
#3
Re: C# learning guide for an ex MFC programmer
What puzzles me at the moment is the document/view architecture in .NET
There isn't really any document/view architecture for .NET. In fact the world has moved on from this design to a Model/View/Presenter architecture.
You might want to look at Microsoft Composite Application Blocks (CAB). See here.
However it'll be pretty heavy going (using a lot of .NET specific language elements such as attributes) for someone coming at this from new.
Darwen.
-
June 20th, 2009, 04:53 PM
#4
Re: C# learning guide for an ex MFC programmer
I'd recommend skipping learning WinForms and go directly to WPF instead.
WPF will give you more flexibility with your app in terms of graphics, custom controls, and has much better data binding than the WinForms approach.
-
June 20th, 2009, 07:07 PM
#5
Re: C# learning guide for an ex MFC programmer
Download the samples from the link in my signature, then try every program. Make sure that it runs. Then, step thru it, line by line to see HOW it works.
You'll see a wide variety of useful tidbits that will give you a general overview of the language.
-
July 4th, 2009, 01:21 AM
#6
Re: C# learning guide for an ex MFC programmer
 Originally Posted by Arjay
I'd recommend skipping learning WinForms and go directly to WPF instead.
From what I've read (and may be I've interpreted in incorrectly), WinForms and WFP have different purposes. WinForms occupies the niche of MFC (or Java AWT), and WFP is more for media-rich applications.
Last edited by kender_a; July 4th, 2009 at 02:50 PM.
-
July 4th, 2009, 02:31 AM
#7
Re: C# learning guide for an ex MFC programmer
WPF is just a newer way to build applications and isn't limited to creating media apps.
Building simple form UI's probably is easier with WinForms, but if you need custom controls, more complex interaction between controls, or advanced data binding, WPF is the way to go.
-
July 6th, 2009, 08:32 AM
#8
Re: C# learning guide for an ex MFC programmer
I'd second the recommendation to go with WPF. Since you have to learn C# anyway, might as well learn what's on the cutting edge. I don't write any Winforms apps anymore. Everything (including business apps) I do in WPF.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|