Re: [nsbasic-ce] LastDLLError Equivalent?

2010-01-27 Thread George Henne
We haven't tried this here, but it's worth trying.

You could also check the Err object - change the Language Reference for
more info.

Err.LastDLLError isn't supported in VBScript/CE and so not in NSB/CE
either.  But is there any equivalent when using NSB/CE's DECLARE to make
API calls?

GetLastError() calls are usually considered problematic in VB6 since the
process of marshalling data and otherwise wrapping the API call can wipe
out the stored value from the target API call.

I don't see this mentioned in Tech Note 26 (DECLARE: Using API
Functions).  Have I missed it?  Or do we know that calling GetLastError
() will return the desired result?

- Bob





Yahoo! Groups Links




-- 
You received this message because you are subscribed to the Google Groups 
nsb-ce group.
To post to this group, send email to nsb...@googlegroups.com.
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.



[nsbasic-ce] LastDLLError Equivalent?

2010-01-26 Thread michiman56
Err.LastDLLError isn't supported in VBScript/CE and so not in NSB/CE either.  
But is there any equivalent when using NSB/CE's DECLARE to make API calls?

GetLastError() calls are usually considered problematic in VB6 since the 
process of marshalling data and otherwise wrapping the API call can wipe out 
the stored value from the target API call.

I don't see this mentioned in Tech Note 26 (DECLARE: Using API Functions).  
Have I missed it?  Or do we know that calling GetLastError() will return the 
desired result?

- Bob

-- 
You received this message because you are subscribed to the Google Groups 
nsb-ce group.
To post to this group, send email to nsb...@googlegroups.com.
To unsubscribe from this group, send email to 
nsb-ce+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/nsb-ce?hl=en.