Question Locked

How can i use dll file in vb 6.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I have generated one dll file using Activex dll.I want to use this dll file in Activex Exe.How can i do this.

3 replies

by tony hopkinson

add a reference to it. It will be expecting to find a tlb (type library) embedded in the dll. or as a separate file.

by istiaqhere

I am assuming that you already have the dll file created using vb, now to use it follow the following steps:

Step 1: Open your project
Step 2: From the IDE menu select
Project->References, then Browse for the dll file say myfile.dll then click Open

Now to create an object of the dll to use it in the following ways

Dim mydll as myfile
set mydll =new myfile

Then call the methods available in the object like mydll.somemethod

Fell free in case of any further concerns.

Sayed Istiaq Ali
mail:istiaqhere@yahoo.com

This discussion is closed to new replies.