简体   繁体   English

如何在VB6和c#之间发送/接收Windows消息?

[英]How to send/receive windows messages between VB6 and c#?

I am not a good programmer of C#, thus I need a small piece of code to send and receive messages between a C# and VB6 program, I have tried many examples from web but not succeeded due complexity of topic to me, your help is appreciated. 我不是C#的优秀程序员,因此我需要一小段代码来在C#和VB6程序之间发送和接收消息,我已经尝试过很多来自Web的例子,但由于主题的复杂性没有成功,我的帮助很感激。

Thanks in Advance. 提前致谢。

You did not provide alot details therefor i could think of quite a few solutions. 你没有提供很多细节,我可以想到很多解决方案。 Probably the 2 best are: 可能最好的两个是:

Hope this gives you some direction. 希望这会给你一些指导。

Well I was looking for some code sample rather tips or reference as I had mentioned in my question. 好吧,我正在寻找一些代码示例,而不是我在问题中提到的提示或参考。 Anyway, I have managed it by extending following project here and now I can pass strings message between both VB6 and C# applications. 无论如何,我通过扩展以下项目管理它,现在我可以在VB6和C#应用程序之间传递字符串消息。

Thanks to All for Time and Suggestions. 感谢All for Time和Suggestions。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM