可以在单个解决方案/应用程序中加入不同编程语言的代码吗? [英] Is possible to join code of different programming languages in single solution/application?

查看:85
本文介绍了可以在单个解决方案/应用程序中加入不同编程语言的代码吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我在Visual Basic中工作。我有三种编程语言的源代码,需要它连接到单个解决方案并作为单个应用程序编译。

I'm working in Visual Basic. I have sources in three programming languages and need it to join to single solution and compile as single application.

部分在C中(C我现在正在学习)

部分在C#中(不知道)

部分在Visual Basic中(由我个人创建)

Part is in C (C I'm learning now)
Part is in C# (know not)
Part is in Visual Basic (created by me personally)

就像你看到我能够修改Visual基本部分,但其他没有。

Like you see I'm able to modify Visual Basic part, but other not.

我的Q很简单,但不知道是否也回答简单:

My Q is simple, but don't know if is answer simple too:

可以加入不同的编程语言源到单个解决方案并编译成单个应用程序?

Is possible to join different programming languages sources to single solution and compile to single app?

感谢您的回复。

Miro

推荐答案

您好,

是的,这是可能的。我假设您希望所有代码都可以进行交互。

Yes it's possible. I would assume you want all code to interact which is possible too.

在以下解决方案中,粗体项目是vb.net,它依赖于两个C#项目。

In the following solution the bold project is vb.net which depend on two C# projects.

请参阅此博客文章C来自vb.net 

See this blog post in regards to C called from vb.net 

http:/ /www.utopiamechanicus.com/article/unmanaged-dll-managed-vb-csharp/


这篇关于可以在单个解决方案/应用程序中加入不同编程语言的代码吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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