Click here to Skip to main content
15,897,187 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
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++.
Posted
Updated 22-May-12 11:36am
v2
Comments
Sergey Alexandrovich Kryukov 22-May-12 13:45pm    
You are not talking about anything managed. You sat "create an unmanaged DLL" (how? C++?) and "call... using VB6". Everything is unmanaged? Where is the role of managed C++? Why doing all that? It's much better to switch to .NET and forget VB6 as a nightmare...
--SA
kash_sheetansh 22-May-12 17:36pm    
please check the question, i have updated it!

1 solution

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
 
Share this answer
 
v2
Comments
kash_sheetansh 22-May-12 17:59pm    
thank you Harlinn, i saw these on MSDN but nothing was in the conclusive direction of my search but as you strongly suggest, i shall work to understand .Net better.
Thanks again!!
Wendelius 23-May-12 0:07am    
My 5
Espen Harlinn 23-May-12 4:27am    
Thank you Mika :-D
VJ Reddy 23-May-12 1:52am    
Good answer with references. 5!
Espen Harlinn 23-May-12 4:27am    
Thank you VJ

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900