AW: DLL einbinden / Call Funktion
01.03.2008 13:48:13
Helmut
Voti, Danke für deine Hilfe!
Ich registriere die DLL via folgenden Makro:
Declare
Function iris Lib "C:\Windows\system32\xyz.dll" (ByVal whichclass As Long, ByVal in1 As Double, _
ByVal in2 As Double, ByVal in3 As Double, ByVal in4 As Double) As Double
Sub DLL()
End Sub
Bei Aufruf von iris(1, arg1, arg2, arg3, arg4) stürzt allerdings Excel ab. Woran könnte es liegen. Unten habe ich dir den C-Code für die DLL angefügt. Das Komplieren der DLL funktioniert problemlos.
#include
#include
#include
#include