CTexasAPI::pCallbackRoutine

Then RemoteMethod has been called, pCallbackRoutine is used to create the function that will be call when the results are returned.

typedef void (*pCallbackRoutine)(
   void* objectID,
   int returnType,
   char *results,
   int results_l
);

Parameters

objectID This object reference value.
returnType METHOD_ERROR = 1, METHOD_SUCCESS = 2, FIRST_LAST = 3, FIRST_ONLY = 4, PROGRESS = 5, LAST_ONLY = 6
results Pointer to the buffer with the results.
results_l The length of the results buffer.

Return Values

Remarks

Example Use
void CBDummyCommand(void* objectID, int returnType, char *results, int results_l){
   if(returnType == 1)
      MessageBox(NULL,results + 4,"Server Error",MB_ICONERROR|MB_SYSTEMMODAL);
}

Also See

Download, Upload, RemoteMethod, InvalidateObject
 

Contact Ekky Software

All around the world Ekky Software is contactable seven days of the week by submitting the following details.

Thank you for your time and interest.
Ekky Software Customer Support Team.

Ekky Software Product Range
Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript Ekky Software Homepage Texas Business Software ObjectDatabase++ TScript