Re: [Opentnl-general] TNL_IMPLEMENT_RPC Build Error
Brought to you by:
mark_frohnmayer,
s_alanet
From: Ville A. B. <vbe...@cc...> - 2005-03-30 10:51:25
|
On Wed, 30 Mar 2005, Bren wrote: > I=B4m having a problem building a GhostConnection subclass. > // declare the client to server message > TNL_DECLARE_RPC(rpcMessageClientToServer, (const char > *theMessageString)); > TNL_IMPLEMENT_RPC(NetworkConnection, > rpcMessageClientToServer, > (const char * messageString), > (messageString), > TNL::NetClassGroupGameMask, > TNL::RPCGuaranteedOrdered, > TNL::RPCDirClientToServer, > 0) > The build error: > > d:\Project\tnl\tnl\tnlMethodDispatch.h(85) : error C2664: =B4bool > TNL::BitStream::read(TNL::ByteBuffer *)=B4 : cannot convert parameter 1 > from =B4const char ** =B4 to =B4TNL::ByteBuffer *=B4 Types point= ed to are > unrelated; conversion requires reinterpret_cast, C-style cast or > function-style cast > Any suggestions? If you use OpenTNL 1.5.0, your problem is the same one that I presented=20 here a few days ago. Replace the const char* with a TNL::StringPtr. Cheers, Ville --=20 Ville Bergholm | vbe...@cc... | http://www.hut.fi/u/vberghol= / mobile +358-44-5722802 Lehtisaarentie 6 G telephone +358-9-4582738 00340 Helsinki, Finland |