VB – Linking a DLL in implicit way

Create an IDL file for your DLL that describes your exported functions in a moduleclause.

Compile with the MIDL compiler and reference the resulting tlb file from your VB6 project (Project – References).
And remove all Declare Functions.

The tlb file is only used for compilation (in this case), you don’t have to include it into the setup.

Leave a Comment