Click to See Complete Forum and Search --> : use functions in vc created dll in vb using add reference


gambit
March 26th, 2001, 02:59 AM
hi,

I have successfully created a dll in vc++ using ATL COM.
And i am able to add reference to it in VB.
However i am still unable to use the functions inside the dll.
How should i code my dll so that i can use the functions inside?
I do not wish to use "declare function"

Hope someone can help!

thank you!

wbeetge
March 26th, 2001, 04:50 AM
I am no C++ programmer, but what i have picked up is that you should not create a dll. You must create an ActiveX project where you specify that you want to compile it as a dll.
This will cause you to create an interfaceless object that can be included in the Refereces within VB and would also require registration before it can be used.