Click here to Skip to main content
11,641,416 members (63,255 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C++ VB ActiveX VB.NET
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
Edited 22-May-12 11:36am
SAKryukov at 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 at 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 at 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 at 23-May-12 0:07am
My 5
Espen Harlinn at 23-May-12 4:27am
Thank you Mika :-D
VJ Reddy at 23-May-12 1:52am
Good answer with references. 5!
Espen Harlinn at 23-May-12 4:27am
Thank you VJ
Sandeep Mewara at 25-May-12 0:59am
Cool! 5+
Espen Harlinn at 25-May-12 3:31am
Thank you, Sandeep :-D
SAKryukov at 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
0 Mika Wendelius 400
1 DamithSL 213
2 CPallini 159
3 OriginalGriff 145
4 Afzaal Ahmad Zeeshan 129
0 Mika Wendelius 460
1 OriginalGriff 215
2 DamithSL 213
3 CPallini 169
4 Afzaal Ahmad Zeeshan 129

Advertise | Privacy | Mobile
Web02 | 2.8.150731.1 | Last Updated 22 May 2012
Copyright © CodeProject, 1999-2015
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