Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

difference between dll adn COM dll

Status
Not open for further replies.

henpat123

Programmer
Apr 14, 2005
35
US
Hi,
What is the Difference between a simple DLL and a COM DLL in Visual Basic 6.0

henry
 
Once you add a project reference to a COM DLL you can use its public class objects, types, and enums.

With a regular DLL you will typically use the Declare statment to define the methods that you will call from the DLL... For example with the Win32 API calls.

If you want to make a project refernce to a regular DLL, you should make a type library (ie .TLB) that exposes your methods.
 
Oh, and if you make a TLB remember that you've gotta register it before you can make the reference to it... like you do with an ActiveX DLL.
 
>>Like you do with an ActiveX dll.

But with one major difference; TLB's do not expose any entry points, so you cannot register a TLB with regsvr32, which looks for the DllRegisterServer function.

Greetings,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top