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

    can we port mfc application into java

    problem with me is that i want to port my mfc application into unix environment. Best way for doing this we write our application in java. Any tool available or any technique available with the help we can do this


    Thanks in advance
    Samir


  2. #2
    Guest

    Re: can we port mfc application into java

    You should look at the Windows Foundation Class, com.ms.wfc.* packages. Microsoft is said to be moving from mfc to wfc. You should be able to find most of the functionality that is in mfc in the wfc packages.


  3. #3
    Join Date
    Sep 1999
    Location
    Dubai, UAE
    Posts
    38

    Re: can we port mfc application into java

    Hi Samir,

    I don't know of any specific utility that does the port but u can try out any UML Modeler that supports both C++ and Java. To be specific, I've tried out the demo version of OEW ( from www.isg.de ), it supports both C++ ad Java. You create a new project, specify that u want the project in C++, import ur existing source into the project. OEW will generate the UML model, diagrams for you. Select the project properties and change the language to Java. Check out the source window. You should see the code in Java. But one thing, it does not understand MFC - if u have a class CMyApp that extends CWinApp, it will generate code as


    public class CMyApp extends CWinApp




    - but ur code will be in Java, u'll have to iron out these differences... I'ven't seriously contemplated this - so I have no idea how much of an effort will be actually needed. Maybe this is a starting point for u... Maybe there is a better Modeler that understands MFC also... ( if u come across one, do let me know also. ).

    Hope this helps...

    Rgds,

    R.Saravanan


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