CTexasAPI::Download

Download is just like the RemoteMethod method, but it takes a filename as a parameter to download a file to the local directory.

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

Parameters

methodID The entity ID for the user.
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.
fileName This returning file should be saved to this location.
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
if(server.Download(ENTITY_FILE,1,CALLBACK_PROGRESS,
			0,fileCallback,this,TEXT("fileName")))
   MessageBox(TEXT("Unable to download file"));

Also See

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