i am trying to create an RPC server and client program. I am using this tutorial http://www.codeproject.com/Articles/4878/Introduction-to-RPC-Part-2
i copied the code exactly as it is in the website but i get this error when i try run it:
Error 1 error C2664: 'RpcServerUseProtseqEpW' : cannot convert parameter 1 from 'char *' to 'RPC_WSTR'
the problem is here:
status = RpcServerUseProtseqEp(
reinterpret_cast<unsigned char*>("ncacn_ip_tcp"), // Use TCP/IP protocol.
RPC_C_PROTSEQ_MAX_REQS_DEFAULT, // Backlog queue length for TCP/IP.
reinterpret_cast<unsigned char*>("4747"), // TCP/IP port to use.
NULL); // No security.