将ActiveX VB6项目与托管C ++或非托管C ++链接 [英] LINKING ACTIVEX VB6 project with Managed C++ or UnManaged C++
问题描述
嗨!我对.Net相当陌生,但对创建Dll文件充满信心,除了我指的是google.
目前,我需要使用ActiveX Vb6项目(完全使用Vb6编写)并使用不受管的c ++调用它,即创建一个不受管的Dll,然后调用使用Vb6定义的函数.
我正在使用VS 2010,我已经使用VS08转换了文件.
可能吗?我希望有一个相同的教程.
提前谢谢!
Sheetansh
抱歉,我想从非托管C ++调用VB6.我也可以使用Managed C ++,但流程保持不变,从C ++调用VB6.
Hi! i fairly new to .Net but confident with creating Dll files, beyond i refer to google.
I am currently required to work with a ActiveX Vb6 project(completely written using Vb6) and call it using unManaged c++ i.e. i create an UnManaged Dll and then call the functions defined using Vb6.
I am working with VS 2010, I have converted the files already using VS08.
Is it possible? i hope there is a tutorial for the same.
Thanks in advance!
Sheetansh
Sorry for the ambiguity, I meant i want call VB6 from Unmanaged C++. I can also work with Managed C++ but the flow remains the same, CALLING VB6 from C++.
推荐答案
我想您想看看以下内容:与非托管代码互操作 [ .NET和COM:完整互操作性指南 [ ^ ]
我认为这是所有认真的.Net开发人员的必读"内容,因为它充分说明了.Net的实际工作原理.
[更新]
COM Interop简介 [ CLR由内而外 [
I guess you would like to have a look at this: Interoperating with Unmanaged Code[^]
Adam Nathan has also written a book that you will find very useful .NET and COM: The Complete Interoperability Guide[^]
I think this is a "must-read" for all serious .Net developers as it explains a lot about how .Net actually works.
[Update]
Introduction to COM Interop[^]
And all the other CLR Inside Out[^] articles are a great source of information if you really want to understand .Net.
Best regards
Espen Harlinn
这篇关于将ActiveX VB6项目与托管C ++或非托管C ++链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!