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.
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.