合并不同的语言节目 [英] Merging programs of different languages

查看:120
本文介绍了合并不同的语言节目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有三个项目(一个在C ++ + WinAPI的,另外一个在C#.NET,最后一个在Java中)与不同的功能。我将选择一种并实施其他两个功能。是否有可能以某种方式合并吗?我需要有他们在一个图形用户界面,下一个进程(至少在视觉上)。 IPC是没有问题的。

I have three programs (one in C++ + WinAPI, another one in C# .NET and the last one in Java) with different functions. I am about to choose one and implement functions of the other two. Is it possible to somehow merge them? I need to have them in one GUI, under one process (at least visually). IPC isn't a problem.

感谢什么

推荐答案

我认为你能做的最好的/最简单的事情是让GUI仅在C#中,在Windows客户端,你可以使用Windows窗体或WPF,在基于Web的,你可以使用ASP.NET的WebForms或ASP.NET MVC。

I think the best/easiest thing you could do is make the GUI only in C#, in windows clients you could use Windows Forms or WPF, in web based you can use ASP.NET WebForms or ASP.NET MVC.

在所有这些情况下,除了MVC(剃刀),你必须设计和定制Visual Studio中的GUI真的很不错的工具。

in all these cases except MVC (Razor) you have really good tools for designing and customizing the GUI within Visual Studio.

您C ++代码可以被包装在一个类库或像你说通过某种IPC的访问是否具有作为应用程序的Java运行时,相同的,但如果你是100%免费写,重新写的东西,你也能想象到端口Java代码到C ++,这可能是容易的,很难或不可能取决于Java代码做什么。

Your C++ code can be wrapped in a class library or as you say accessed via some kind of IPC if it has to run as application, same for Java but if you are 100% free to write and re-write things you could also imagine to port the Java code to C++, this could be easy, difficult or impossible depending on what the java code does.

在最后的手段,如果C ++和Java应用程序必须保持分离,必须在相同或另一台计算机上后台运行,您仍想从C#GUI消耗他们的服务或方法,如你所说,IPC大概的样子,不知道你可以在Windows中使用Java和IPC做什么,想必Java可以暴露或使用XML Web服务。

at last resort if both C++ and Java applications must stay separated and must run in background on same or another machine and you still want to consume their services or methods from your C# GUI, as you mentioned, IPC is probably the way, not sure what you can do in Windows with Java and IPC, surely java can expose or consume XML web services.

这篇关于合并不同的语言节目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆