CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 13 of 13

Thread: MFC or Java

  1. #1
    Join Date
    Jul 2005
    Location
    Pune(India)
    Posts
    58

    Arrow MFC or Java

    Hi All,
    I'm a student so please pardon me if u think i'm asking a lame question.I'm writing a Download Manager as part of my academic project.Though i've good knowledge in both MFC and java i'm a little confused as to which of the 2 i should be using.There is no compulsion that it must be done for the windows platform.Please advice.
    Last edited by cipher1024; August 26th, 2005 at 02:22 AM.

  2. #2
    Join Date
    Apr 1999
    Posts
    27,449

    Re: MFC or Java

    Quote Originally Posted by cipher1024
    I'm writing a Download Manager as part of my academic project. Though i've good knowledge in both MFC and java i'm a little confused as to which language i should be using.
    MFC is not a language.

    Regards,

    Paul McKenzie

  3. #3
    Join Date
    Nov 2003
    Posts
    2,185

    Re: MFC or Java

    if only for the windows platform, I would go for the MFC way. Java is slow, borland JBuilder is .

    My experience with java is not that good, but people say java gets better and better (who releases a complete new version of java every year?).

    C++/MFC is much faster and the visual studio group is (just my opinion) much better than the java development tools.

  4. #4
    Join Date
    Apr 2003
    Location
    Athens, Greece
    Posts
    1,094

    Re: MFC or Java

    For academic purposes Java is quite ok. Many academic projects are being done in Java. If your knowledge on C++/MFC is very good and platform independence is not that important then you may use C++/MFC.
    I think that normally you'll develop it faster in Java.
    (There is also C# you know)
    Extreme situations require extreme measures

  5. #5
    Join Date
    Jul 2005
    Location
    Pune(India)
    Posts
    58

    Question Re: MFC or Java

    Hey thanx all for ur replies. i understand MFC is the better option.However i need 1 last favour from u'll can any1 tell me what are the exact advanced topics i need to read for the purpose of this project. Do i need to use COM ? and besides should i use moniker files or the normal internet file class. please guide.

  6. #6
    Join Date
    Jul 2002
    Posts
    372

    Re: MFC or Java


  7. #7

    Re: MFC or Java

    Quote Originally Posted by cipher1024
    Hey thanx all for ur replies. i understand MFC is the better option.However i need 1 last favour from u'll can any1 tell me what are the exact advanced topics i need to read for the purpose of this project. Do i need to use COM ? and besides should i use moniker files or the normal internet file class. please guide.
    In order to create a Download Manager, you have to understand networking programming. You might want to start off with this.

    Winsock Programmer's FAQ
    http://tangentsoft.net/wskfaq/

    Best Regards,
    Yeoh
    --

  8. #8
    Join Date
    Apr 1999
    Posts
    27,449

    Re: MFC or Java

    Quote Originally Posted by cipher1024
    Hey thanx all for ur replies. i understand MFC is the better option.
    You have kept stating "MFC". MFC is an application framework written in C++. It isn't a computer language. To do network programming, you can use straight C++ with no MFC (using WinSock) or use another library written in 'C' or C++ that allows network programming that has nothing to do with MFC.

    That is where your initial question is confusing. If you want to compare languages and which one is best to do something, you compare C++ to Java, not MFC to Java.

    If you want to compare frameworks, libraries, etc. then you compare MFC with whatever framework Java has to support network programming. Who knows, the libraries or API's that Java has to support network programming may be superior to what MFC may support. I don't know since I don't do network programming.

    But the bottom line is you can't compare MFC to Java. One is a framework written in C++, the other is an entire computer language.

    Regards,

    Paul McKenzie

  9. #9
    Join Date
    Oct 2004
    Location
    Canada
    Posts
    628

    Re: MFC or Java

    Quote Originally Posted by Paul McKenzie


    If you want to compare frameworks, libraries, etc. then you compare MFC with whatever framework Java has to support network programming. Who knows, the libraries or API's that Java has to support network programming may be superior to what MFC may support. I don't know since I don't do network programming.
    well.. i've heard that the java equivalent of winsock is very similar to winsock..

    also since the original poster mentioend MFC.. i'm guessing that he/she should look into swing for GUI development in Java.

  10. #10
    Join Date
    Jul 2005
    Location
    Rotterdam, Netherlands
    Posts
    25

    Re: MFC or Java

    Just to add my penny's worth and referring back to the initial reaction
    MFC is not a language
    I feel it's worth mentioning that Java is more than just the language - its definition includes the Java classes. C++ on the other hand is just the language. Seen in that light, the original question is not so silly after all and perhaps should be rephrased as Java vs. C++/MFC.
    As regards the comparison, I personally have much more confidence, when constructing a Windows program, that, whatever I want to do, I am going to be able to do it with C++/MFC. The Java classes have improved over the years but I still feel it's a risky option unless there are other reasons for taking that route.

  11. #11
    Join Date
    Nov 2003
    Location
    Belgium
    Posts
    8,150

    Re: MFC or Java

    Quote Originally Posted by aspeyp
    Just to add my penny's worth and referring back to the initial reaction I feel it's worth mentioning that Java is more than just the language - its definition includes the Java classes. C++ on the other hand is just the language. Seen in that light, the original question is not so silly after all and perhaps should be rephrased as Java vs. C++/MFC.
    As regards the comparison, I personally have much more confidence, when constructing a Windows program, that, whatever I want to do, I am going to be able to do it with C++/MFC. The Java classes have improved over the years but I still feel it's a risky option unless there are other reasons for taking that route.
    I don't agree. Like Paul said, Java and C++ are languages. MFC is a library for C++. Rephrasing it to Java vs C++/MFC isn't good, better is Java/Swing vc C++/MFC or Java/AWT vs C++/MFC. Swing and AWT are libraries (distributed with Java) to create GUIs, which is exactly what MFC is. MFC has network classes and Java has a library for networking.
    Marc Gregoire - NuonSoft (http://www.nuonsoft.com)
    My Blog
    Wallpaper Cycler 3.5.0.97

    Author of Professional C++, 4th Edition by Wiley/Wrox (includes C++17 features)
    ISBN: 978-1-119-42130-6
    [ http://www.facebook.com/professionalcpp ]

  12. #12
    Join Date
    Jul 2005
    Location
    Pune(India)
    Posts
    58

    Re: MFC or Java

    Quote Originally Posted by Paul McKenzie
    You have kept stating "MFC". MFC is an application framework written in C++. It isn't a computer language. To do network programming, you can use straight C++ with no MFC (using WinSock) or use another library written in 'C' or C++ that allows network programming that has nothing to do with MFC.

    That is where your initial question is confusing. If you want to compare languages and which one is best to do something, you compare C++ to Java, not MFC to Java.
    First of all a big thanx to all for responding to my query.
    Mr. McKenzie i do understand that my question was a little wrongly phrased. I apologise for that. but what i actually meant to ask is wether or not the MFC framework is more suitable than the Java/swing framework to develop such an application. I didn't mean to say MFC is a language.

    I understand that java is slower then c++ but since it is an academic project and i dont have much time to complete it and besides i do not have much experience writing windows applications or in java programming i was hoping to get an expert view as to which framework would be best suited for my application.
    Every1 saw the apple fall,Only Newton asked why.

  13. #13
    Join Date
    May 2000
    Location
    KY, USA
    Posts
    18,652

    Re: MFC or Java

    [ Redirected thread ]

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