CTexasAPI::Upload
Upload is just like the RemoteMethod method, but it takes a filename as a parameter to upload a file to the texas server.
unsigned int Upload( 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.Upload(ENTITY_FILE,1,CALLBACK_PROGRESS,
0,fileCallback,this,TEXT("LocalFileName")))
MessageBox(TEXT("Unable to call upload file"));

