DIAdem

cancel
Showing results for 
Search instead for 
Did you mean: 

how to call a function of a dll

Hello,
 
I have to call a function from a dll. I have a description how to do that in Visual Basic but I don't find those command in Diadem 9.1.
 
Here is the command in Visual Basic:
 
Declare Sub oLIC Lib "LICENSE.DLL" (ByVal PrgNam As String, ByVal VerString As String)
 
PrgNam = "DiademScript"
VerString = "1.0.0"
Call oLIC(PrgNam,VerString)
 
Is such a call possible in Diadem?
 
Regards
Patrick
0 Kudos
Message 1 of 2
(3,634 Views)

Hello Patrick!

This is not possible! This is one of the differences between VB/VBA and VBS. You have to wrap the DLL with a COM server or a DIAdem GPI DLL.

Matthias

Matthias Alleweldt
Project Engineer / Projektingenieur
Twigeater?  
0 Kudos
Message 2 of 2
(3,632 Views)