Click to See Complete Forum and Search --> : can we port mfc application into java


September 28th, 1999, 05:24 AM
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

October 2nd, 1999, 03:17 AM
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.

R.Saravanan
October 2nd, 1999, 04:38 AM
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