Hi,
I have a problem when using DllCall. It keeps giving me the error, 'Function not found in Dll'.
Here is the signiture of the function I am trying to call:
PVOID EXPORT WINAPI OpenChannel(void)
Here is my AutoIT code:
$result = DllCall("caccount.dll", "ptr", "OpenChannel")
If @error Then
If @error = 1 Then
MsgBox(1, "DllCall Error - 1", "Unable to use the DLL file")
Return
EndIf
If @error = 2 Then
MsgBox(1, "DllCall Error - 2", "Unknown return type")
Return
EndIf
If @error = 3 Then
MsgBox(1, "DllCall Error - 3", "Function not found in the DLL file")
Return
EndIf
Else
MsgBox(0, "Num Chars Returned", $result[0]) ; number of chars returned
EndIf
Can anybody give me some advice on this?
Thanks