Re: [Opentnl-general] I've been making some updates recently... they will break your code!
Brought to you by:
mark_frohnmayer,
s_alanet
From: Mark F. <ma...@ga...> - 2005-03-24 00:37:29
|
Yes. You have to use the StringPtr type with the new RPC code. > Have you also changed the RPC system so that you cannot use c-strings > as RPC arguments anymore? > > I have an RPC method with the parameter list (S8 from, S8 to, const > char *msg). > I changed the implementation macro as explained above. > This is what I get when compiling (using OpenTNL 1.5.0 headers): > > > g++ -c -O -Wall -mwindows -D__WIN32__ -DSDL -DHWRENDER -I../include > n_connection.cpp -o ../objs/n_connection.o > ../include/tnl/tnlMethodDispatch.h: In function `void > Types::read(TNL::BitStream&, T*) [with T = const char*]': > ../include/tnl/tnlMethodDispatch.h:234: instantiated from `void > TNL::FunctorDecl<void (T::*)(A, B, C)>::read(TNL::BitStream&) [with T > = LConnection, A = signed char, B = signed char, C = const char*]' > ../include/g_pawn.h:177: instantiated from here > ../include/tnl/tnlMethodDispatch.h:85: no matching function for call to ` > TNL::BitStream::read(const char**&)' > ../include/tnl/tnlBitStream.h:211: candidates are: bool > TNL::BitStream::read(TNL::ByteBuffer*) > ../include/tnl/tnlBitStream.h:238: bool > TNL::BitStream::read(bool*) > ../include/tnl/tnlBitStream.h:331: bool > TNL::BitStream::read(unsigned int, void*) > ../include/tnl/tnlBitStream.h:260: bool > TNL::BitStream::read(U8*) > ../include/tnl/tnlBitStream.h:261: bool > TNL::BitStream::read(S8*) > ../include/tnl/tnlBitStream.h:262: bool > TNL::BitStream::read(U16*) > ../include/tnl/tnlBitStream.h:263: bool > TNL::BitStream::read(S16*) > ../include/tnl/tnlBitStream.h:264: bool > TNL::BitStream::read(U32*) > ../include/tnl/tnlBitStream.h:265: bool > TNL::BitStream::read(S32*) > ../include/tnl/tnlBitStream.h:266: bool > TNL::BitStream::read(S64*) > ../include/tnl/tnlBitStream.h:267: bool > TNL::BitStream::read(U64*) > ../include/tnl/tnlBitStream.h:268: bool > TNL::BitStream::read(F32*) > ../include/tnl/tnlBitStream.h:269: bool > TNL::BitStream::read(F64*) |