Hallo,
Ja. leider nicht wirklich, ich mache ja den DLL Aufruf in
Excel, nun möchte ich aber zwei oder mehrer Variabeln aus der
DLL erhalten.
hmmm, was ist das für eine DLL? Hast Du die selbst geschrieben?
In anderen DLLs, die zu Windows gehören, wird das so gemacht. Beispiel:
Private Declare Sub GetSystemInfo Lib "kernel32" (lpSystemInfo As SYSTEM\_INFO)
Private Type SYSTEM\_INFO
dwOemID As Long
dwPageSize As Long
lpMinimumApplicationAddress As Long
lpMaximumApplicationAddress As Long
dwActiveProcessorMask As Long
dwNumberOrfProcessors As Long
dwProcessorType As Long
dwAllocationGranularity As Long
dwReserved As Long
End Type
Private Sub Form\_Load()
Dim SInfo As SYSTEM\_INFO
'KPD-Team 1998
'URL: http://www.allapi.net/
'[email protected]
'Set the graphical mode to persistent
Me.AutoRedraw = True
'Get the system information
GetSystemInfo SInfo
'Print it to the form
Me.Print "Number of procesor:" + str$(SInfo.dwNumberOrfProcessors)
Me.Print "Processor:" + str$(SInfo.dwProcessorType)
Me.Print "Low memory address:" + str$(SInfo.lpMinimumApplicationAddress)
Me.Print "High memory address:" + str$(SInfo.lpMaximumApplicationAddress)
End Sub
Der Name der Benutzerdefinierten Variablen wird mit dem DLL-Aufruf mitgegeben und es kommen eine Reihe Werte zurück, die alle als Eigenschaft dieser Benutzerdefinierten Variable erscheinen. Ich fürchte, das ist ein Hinweis darauf, daß Du diesen Weg gehen mußt.
Gruß, Rainer