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!

calling a dll

Status
Not open for further replies.

dt2demar

Technical User
Nov 20, 2000
32
CA

I have a short Fortran program that I compiled as a dll (test.dll).

I would like to call and execute this program by pressing a command button within a VB GUI.

What code would I have to type between these two lines to successfully call the dll?


Private Sub cmdRun_Click()

End Sub

thanks,

Don
 
You need a class within test.dll.

For instance, if MyClass is the class

Dim Tst as Test.MyClass
Set Tst = New Test.MyClass

' Then you can use properties and methods of the class
Tst.MyMethod
var = Tst.MyProperty
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top