Jump to content
xisto Community
herenvardo

Help: Export Classes From A Builder Dll To Vb6

Recommended Posts

I'm writting a large class hierarchy and want to put it on a dll. What must I do to be able to use the class definitions in the dll from a visual basic application?. I'm making the dll from Borland C++ Builder 6 Enterprise.Thanks,Herenvardö

Share this post


Link to post
Share on other sites

Your best bet is to create an automation object instead of plain vanilla DLL. As using it in VB or any COM enabled environment is quite easy. Automation objects are just like COM objects only they also expose properties & events.Start File->New->Other and choose ActiveX tab and click ActiveX Library. Go back to that ActiveX tab and click Automation Object. Make use of the Type Library Editor tool. Compile and have fun. Just make sure to use regsvr32 on the automation object before using it in VB as you have to add it to Project Dependacies list. Then using it is like using any COM objects in VB.Regards, Digital Technic.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.