#include #include "DRAZEN_SVC_h.h" using namespace std; int main(){ RPC_STATUS status; unsigned char* szStringBinding = NULL; // Creates a string binding handle. // This function is nothing more than a printf. // Connection is not done here. status = RpcStringBindingCompose( NULL, // UUID to bind to. reinterpret_cast("ncacn_np"), reinterpret_cast("\\\\10.1.13.38"), reinterpret_cast("\\pipe\\drazen_svc"), NULL, // Protocol dependent network options to use. &szStringBinding); // String binding output. cout << szStringBinding << endl; if (status){ cout << "asd" << endl; exit(status); } // Validates the format of the string binding handle and converts // it to a binding handle. // Connection is not done here either. status = RpcBindingFromStringBinding( szStringBinding, // The string binding to validate. &hExample1Binding); // Put the result in the implicit binding // handle defined in the IDL file. if (status){ exit(status); } RpcTryExcept { char _s1 = 100; test_struct2_t ts2; ts2.s1 = 3; hyper br = 1; for(int i=0; i