在C#和Visual Basic之间发送字符串 [英] Send strings between C# and visual basic

查看:97
本文介绍了在C#和Visual Basic之间发送字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Visual Basic中创建了一个程序.我也在C#中找到了一个项目.但是我在Google上读到过,要制作一个包含Visual Basic和C#语言的项目是不可能的.
所以我在想,如何将控制台应用程序(C#)的输出发送到我的项目Visual Basic应用程序.

C#中的程序在控制台中输出midi命令.那么,如何才能将那些命令传输到我的Visual Basic项目应用程序中呢?

I''ve created a program in visual basic. I found also a project in C#. But I''ve read on google that it''s impossible to make a project containing visual basic and C# language.
So i was thinking, how to send the output of an console application (C#) to my project visual basic application.

the program in C# outputs in a console the midi commands. So how do i can get those commands transfered to my visual basic project-application?

推荐答案

您不能在"a"项目中混合使用C#和VB代码.但是,您可以有一个包含多个项目的解决方案,每个项目都有其自己的源语言.而且,当然,您可以引用另一个项目.
You cannot mix C# and VB code in "a" project. However, you can have a Solution with several projects, each one with its own source language. And, of course, you may reference one project from another.


这篇关于在C#和Visual Basic之间发送字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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