Click here to Skip to main content
15,887,350 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Currently, I have made an application related to thermal printer which is connected thru USB using MFC in VC++. Now, I need to convert that code in java code, which I need to run in Android Studio 3.2 for Android Application 5.0 (Lollipop).

So, is their any conversion software is available for that ? or,
What should I do to implement same functionality(which is in MFC, VC++ code), in Android Studio. So, that I can save my lot of time.

What I have tried:

I have seen this link in google,
C++ to Java Converter[^]
but, in FAQ they have mentioned MFC and ATL resoureces can't be converted.
Posted
Updated 4-Oct-18 19:24pm
Comments
Richard MacCutchan 5-Oct-18 4:23am    
As OriginalGriff says, this is not a simple conversion. It is complicated even further by the fact that the MFC Windows code and the Android XML have no one-to-one correspondence.

1 solution

No, there probably isn't anything which will do what you want - and even if there was, the code you would end up with would not be "good" java code: MFC and the Java machine are not a good fit, and it wouldn't use Java the language or the Java environment well.

Your best solution is to use the C++ application as a specification and rewrite it in Java to work as a "proper" Java app.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900