Link to home
Start Free TrialLog in
Avatar of GrahamAtJobserve
GrahamAtJobserve

asked on

How to create a DLL using VB6

I wish to create a DLL, using VB6, or VB7(.net) to be useable as in the example shown.


Option Explicit
Declare Function Testthis Lib "test.dll" (ByVal i_Anyint As Integer) As Integer

Sub calldll()
    Call Testthis(2)
End Sub

Ie, its NOT an activeX DLL. Can it be done, and if so, how?
ASKER CERTIFIED SOLUTION
Avatar of TimCottee
TimCottee
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of GrahamAtJobserve
GrahamAtJobserve

ASKER

Cheers Tim, good answer as always.

I suspected as much, but there was always the chance that there was a way to do it somehow. Not going to try the add-in though.