从VC ++代码(使用MFC)到java代码的代码转换? [英] Code conversion from VC++ code (using MFC) to java code ?
问题描述
目前,我已经制作了一个与热敏打印机相关的应用程序,它通过USB在VC ++中使用MFC连接。现在,我需要在java代码中转换代码,我需要在Android应用程序5.0 for Android Application 5.0(Lollipop)中运行。
所以,是他们的任何代码有转换软件吗?或者,
我应该怎么做才能在Android Studio中实现相同的功能(在MFC,VC ++代码中)。所以,我可以节省很多时间。
我尝试过的事情:
我在谷歌看过这个链接,
C ++ to Java Converter [ ^ ]
但是他们在FAQ中提到MFC和ATL资源无法转换。
不,可能没有什么可以做你想要的 - 甚至如果有的话,你最终得到的代码将不是好的java代码:MFC和Java机器不合适,并且它不会很好地使用Java语言或Java环境。
最好的解决方案是使用C ++应用程序作为规范,并用Java重写它作为适当的Java应用程序。
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.
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.
这篇关于从VC ++代码(使用MFC)到java代码的代码转换?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!