Declare an external lib

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Amirallia

    #1

    Declare an external lib

    Hi,

    It is possible to declare the mctest.dll library without defining the
    c:\Temp path in hard code.

    Declare Ansi Sub pst_Test Lib "c:\temp\mctest .dll" Alias "pst_Test"
    (ByVal intNomPtr As Int32, ByVal intNomLong As Int32, ByVal intNumAdrD
    As Int32, ByVal intNumAdrF As Int32, ByVal intNPA As Int32)

    This, is not possible :
    Dim strVar string = "c:\temp\"
    Declare Ansi Sub pst_Test Lib strVar & "mctest.dll " Alias "pst_Test"
    (ByVal intNomPtr As Int32, ByVal intNomLong As Int32, ByVal intNumAdrD
    As Int32, ByVal intNumAdrF As Int32, ByVal intNPA As Int32)


    Have you an idea ?


Working...