CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    May 2001
    Location
    Silicon Valley
    Posts
    113

    Question 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.

  2. #2
    Join Date
    Mar 2005
    Location
    Vienna, Austria
    Posts
    4,538

    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

  3. #3
    Join Date
    Jan 2002
    Location
    Scaro, UK
    Posts
    5,940

    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.
    www.pinvoker.com - PInvoker - the .NET PInvoke Interface Exporter for C++ Dlls.

  4. #4
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  5. #5
    Join Date
    Jan 2006
    Location
    Fox Lake, IL
    Posts
    15,007

    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.
    David

    CodeGuru Article: Bound Controls are Evil-VB6
    2013 Samples: MS CODE Samples

    CodeGuru Reviewer
    2006 Dell CSP
    2006, 2007 & 2008 MVP Visual Basic
    If your question has been answered satisfactorily, and it has been helpful, then, please, Rate this Post!

  6. #6
    Join Date
    May 2001
    Location
    Silicon Valley
    Posts
    113

    Re: C# learning guide for an ex MFC programmer

    Quote Originally Posted by Arjay View Post
    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.

  7. #7
    Arjay's Avatar
    Arjay is offline Moderator / EX MS MVP Power Poster
    Join Date
    Aug 2004
    Posts
    13,490

    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.

  8. #8
    Join Date
    Sep 2006
    Posts
    199

    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
  •  





Click Here to Expand Forum to Full Width

Featured