Home Home

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

RemoteMethod

Copyright © 2007, Ekky Software Pty Ltd.