Click here to Skip to main content
13,045,790 members (46,052 online)
Rate this:
Please Sign up or sign in to 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!


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 22-May-12 7:24am
Updated 22-May-12 11:36am
SAKryukov 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...
kash_sheetansh 22-May-12 17:36pm
please check the question, i have updated it!

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.

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
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!!
Mika 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
Sandeep Mewara 25-May-12 0:59am
Cool! 5+
Espen Harlinn 25-May-12 3:31am
Thank you, Sandeep :-D
SAKryukov 28-May-12 18:45pm
Useful information, my 5.

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

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100