public int Subscribe( int iSubscribingType,
CATCommand* iToClient,
void* iClientData,
void(*)() UserStaticMethod)
iSubscribingType: 1 or 2, you can try both
iToClient: pointer to your(?) command
iClientData: Do you want to pass some data to your command? if no, set it NULL; yes? pointer to your data.
UserStaticMethod: pointer to a method of your command which must be "static", this will be used as a callback. (so if some event happens, system will call this method, this is called "callback")
However I don't think you REALLY want to use this.
Better paste you VBA code and mark where the error occurs, and the error messsages.
So someone familiar with VBA could help you.
I don't think anybody here ever have chance to use this CATApplication::Subscribe(). |