INTERACT FORUM
Windows => Plug-in Development => Topic started by: josephjohn100 on June 07, 2004, 04:25:15 pm
-
I'm calling an external Function from a DLL(written in VC++) from VB.
The function is returning a long value.
I'm calling this function Using a Call function. and trying to get the return values using
if conditions on Err.Number like
If Err.Number = 0 Then 'like this
But Err.Number is not getting the values if the function returns fail,or cancel value etc.
Is there any other method we can get this value.
I cannot use a
retval = FunctionName
as in the object browser shows my function as
Sub LogonUser()
Member of SECURITYLib.Sec
Logon a user.
Is there any other method we can get this value.?
-
Try err.LastDllError