Link to home
Start Free TrialLog in
Avatar of MrNed
MrNedFlag for Australia

asked on

Calling VB.NET dll from C++ dll

Im having a very hard time finding anything that can either how to do this or if it is even possible - I want to call a VB.NET dll from within a plain old C++ dll (not .NET!).

I have a sneaking suspicion it simply cant be done.

Ive read a bit about managed and unmanaged code and I think this is where the problem is.
Avatar of vascov
vascov
Flag of United States of America image

One option is to use COM Interop.

Export your types into a typelib. Then use #import to import the types. No need for Managed extensions.

HTH
ASKER CERTIFIED SOLUTION
Avatar of vascov
vascov
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MrNed

ASKER

Thanks!!!!

I actually understand very little of that, but I'll have a play and see what I can come up with.
Let me know of your progress...

If you have a specific situation you want to address, you're welcomed.

Thx
Avatar of MrNed

ASKER

Thanks for your help. We got it working based on what you provided.