herenvardo 0 Report post Posted August 29, 2005 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
Digital Technic 0 Report post Posted November 3, 2005 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