CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241

    Question Transition from Visual C++ (MFC) to C++.NET

    Can anyone who has done any code transitions from Visual Studio 6.0 Visual C++ to Visual Studio C++.NET tell me how painful it might be?

    I think there is adding namespaces to code, but what else? We have a pretty large project that is very Visual (e.g. LOTS of MFC). Would this be a major effort to turn over to Visual C++.NET?

  2. #2
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241

    Question

    bUmP! Anybody?

  3. #3
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125
    There are two basic ways to go.

    1) Use the MFC implementation that comes with .NET

    2) Use native .NET/CLR object models.

    I believe that option #2 is a far beter way to go when possible/practical.

    On the other hand staying with MFC is much easier for getting the initial conversion done.

    If your product is a commercial one that you will have to support and maintain for a significant period of time, give serious thought to #2.

    If your product is very stable or for limited use, stay with option #1


    If you are designing a new product, RUN AS FAST AS YOU CAN FROM MFC. [The aboce statement is a personal opinion not shared by some other members here ]
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  4. #4
    Join Date
    Jul 2002
    Location
    Seattle Area, WA
    Posts
    241
    Thank you for the reply. I would definitely love to run from MFC as quickly as possible.

    I am really interested in the efforts of the conversion? How easy/difficult is it? From what you post, option #1 is more our style as it is a product that is pretty stable and only used in-house.

    Can anyone give any clues on the conversion effort that would be required?

    The background: what we are really look at is we have this big MFC product to use and maintain. We would like to move to .NET, but it is really dependent on the conversion effort of this product as to whether we would or not.

  5. #5
    Join Date
    Apr 1999
    Location
    VA BEACH
    Posts
    467
    You will find some errors when converting you Message handlers. I remember getting tons of errors b/c VC6 did not check arguments being passed to the messages as strongly as VC7 does, so you have to go through and fix all those.

    Other than that I don't remember too much.

    JDH

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