01-26-2007 08:41 AM
Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))
Sets up callback function for getting component status.
Parameters:
* CompStatusCallback – entry point for callback function.
Return Value:
None.01-26-2007 09:18 AM - edited 01-26-2007 09:18 AM
@left wrote:
Void SetCompStatusCallBack(void ((*CompStatusCallBack)(int id, int status, unsigned char conflict)))
Sets up callback function for getting component status.
Parameters:
* CompStatusCallback – entry point for callback function.
Return Value:
None.
You don't. This is the callback protoype that would be passed as parameter to another API and as such never will be called by the caller of that API but instead be provided by that caller!
And LabVIEW does not support function pointers at all, so you really can't do this.
The only solution is to write a wrapper function in your DLL or in a separate DLL that translates between this interface and some more event oriented LabVIEW functionality such as user events, but unless you do know C to a fairly good level, you should probably leave that to someone else.
Rolf Kalbermatter
Message Edited by rolfk on 01-26-2007 04:21 PM