CTexasAPI::RemoteMethod

RemoteMethod call a method on the server and returns the results to the call back routine. The callback is always on a new thread that is terminated at the end of the callback.

unsigned int RemoteMethod(
   unsigned int methodID,
   int interfaceVersion,
   short methodOpt,
   short language,
   pCallbackRoutine callback,
   void* objectID,
   const void* BSTR = NULL
);

Parameters

methodID The method ID for the call.
interfaceVersion For the expect returning parameter schema.
methodOpt CTexasAPI::Mode
language Used for error messages from this method.
callback Used for the results.
objectID Returned to the callback routine.
BSTR Any parameters for this method.

Return Values

If the method succeeds, the return value is zero else see error codes for more details.

Remarks

Example Use
int param[] = {8,0};//will get current logon user's details
if(server.RemoteMethod(GET_ENTITY_DETAILS,1,0,0,callback,this,param))
   MessageBox(TEXT("Unable to call remote method"));

Also See

Download, Upload, 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