Ignore:
Timestamp:
01/03/15 18:26:23 (10 years ago)
Author:
tbretz
Message:
Updated to v20r11
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/dim/src/examples/rpc_client.cxx

    r14575 r18058  
    22#include <iostream>
    33using namespace std;
     4#include <stdio.h>
    45
    56class Rpc : public DimRpcInfo
     
    1011                cout << "Callback RPC Received : " << getInt() << endl;
    1112        }
    12         Rpc(char *name) :       DimRpcInfo(name, 1, -1) {};
     13        Rpc(const char *name) : DimRpcInfo(name, 1, -1) {};
    1314};
    1415
     
    3132                cout << val->str1 << " " << val->str2 << " " << val->int1 << endl;
    3233        }
    33         RpcStruct(char *name) : DimRpcInfo(name, "dead") {};
     34        RpcStruct(const char *name) :   DimRpcInfo(name, (char *)"dead") {};
    3435};
    3536
     
    4142        int out, in;
    4243       
    43         sprintf(name,"TESTRPC%d/INT",(dim_long)tag);
     44        sprintf(name,"TESTRPC%ld/INT",(dim_long)tag);
    4445        myRpc = new DimRpcInfo(name, 10, -1);
    4546//      myRpc = new Rpc(name);
     
    6566        Rpc *myRpc;
    6667        char name[64];
    67         int out, in;
     68        int out;
    6869       
    6970        sprintf(name,"TESTRPC/INT");
Note: See TracChangeset for help on using the changeset viewer.