Thread: Windows, MFC, .NET, C++ ???

  1. #1
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109

    Windows, MFC, .NET, C++ ???

    It's been a while since I've posted on the boards, or have programmed for that matter. But I'm getting back into it.

    I've mostly worked with C++, some C, but what I remember most is C++. I have not yet worked with MFC or Windows programming.

    I have this program that was written with MFC in C++. I'd like to know what exactly I'm looking at. I tried to find some tutorials through google, but I'm still somewhat confused.

    I'm also looking at using .NET. I have yet to program with .NET.

    So I'm looking at mixing the MFC with .NET, or getting it over to .NET.

    The program was written with VS 5, and I was given a copy of that to use. I can get a hold of VS .NET 2003 as my school offers licenses to each engineering student.

    I'm looking at keeping it C++.

    So my questions are:

    Is there any recommended books or online references/tutorials on MFC and .NET?

    Anything that would make the MFC to .NET transition easier?

    hmm, and any tips or recommendations in general. I'm sure I'll come up with more questions.

    Thanks.

  2. #2
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Mixing .NET and MFC is bad.
    Why porting an already working MFC code to .NET?
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  3. #3
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    Quote Originally Posted by siavoshkc
    Mixing .NET and MFC is bad.
    Why porting an already working MFC code to .NET?
    Client wants it.

    Basically, trying to port to .NET yet still be able to access an unmanaged DLL.

  4. #4
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    Is this client end user or not?
    [edit]
    I think it shouldn't be. They are wasting their money.
    Last edited by siavoshkc; 08-03-2006 at 05:48 PM.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  5. #5
    pronounced 'fib' FillYourBrain's Avatar
    Join Date
    Aug 2002
    Posts
    2,297
    I don't know that I agree. The port is possible and reasonable. MFC is outdated and it should be moved. What's a more reasonable alternative than porting to .NET?

    In fact, all you need to do is add the /clr flag to your MFC project makes it a .NET capable app.

    Take one dialog at a time. Over time, the MFC will be gone.
    "You are stupid! You are stupid! Oh, and don't forget, you are STUPID!" - Dexter

  6. #6
    Registered User Dante Shamest's Avatar
    Join Date
    Apr 2003
    Posts
    970
    If it's portability you're really worried about, you should use Java then. As far as .NET usage goes, Microsoft still writes its own applications in Vista (Notepad, Wordpad, Office, etc) in native code using MFC and the API.

  7. #7
    System Novice siavoshkc's Avatar
    Join Date
    Jan 2006
    Location
    Tehran
    Posts
    1,246
    MFC is fine for next 5 years.
    Learn C++ (C++ Books, C Books, FAQ, Forum Search)
    Code painter latest version on sourceforge DOWNLOAD NOW!
    Download FSB Data Integrity Tester.
    Siavosh K C

  8. #8
    The Right Honourable psychopath's Avatar
    Join Date
    Mar 2004
    Location
    Where circles begin.
    Posts
    1,071
    Quote Originally Posted by alpha
    yet still be able to access an unmanaged DLL
    You may be looking at writing wrappers for these unmanaged DLLs, if there isn't already a managed .NET version available. Or do you mean system/MS DLLs? (In which case a .NET version or counterpart is probably already available)
    M.Eng Computer Engineering Candidate
    B.Sc Computer Science

    Robotics and graphics enthusiast.

  9. #9
    Registered User
    Join Date
    Nov 2002
    Posts
    1,109
    The unmanaged DLL is part of a driver package. It is third party and needs to be incorporated into the software.

    Anyways, any recommended reading material?

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. API or MFC in Managed C++ (.NET)
    By gwarf420 in forum Windows Programming
    Replies: 6
    Last Post: 10-23-2008, 04:36 PM
  2. .NET Windows Application Question
    By obaid in forum C# Programming
    Replies: 1
    Last Post: 04-29-2008, 10:32 PM
  3. Question..
    By pode in forum Windows Programming
    Replies: 12
    Last Post: 12-19-2004, 07:05 PM
  4. adding child windows in mfc?
    By Terrance in forum Windows Programming
    Replies: 1
    Last Post: 03-02-2003, 12:35 PM
  5. Visual J#
    By mfc2themax in forum A Brief History of Cprogramming.com
    Replies: 0
    Last Post: 10-08-2001, 02:41 PM