Home » Developing U++ » U++ Developers corner » RPC_METHOD how to "define"
Re: RPC_METHOD how to "define" [message #47582 is a reply to message #47578] |
Wed, 01 February 2017 10:58   |
NilaT
Messages: 70 Registered: November 2011 Location: Austria
|
Member |
|
|
Hi Honza, thanks for your reply.
Yes, your explanation makes it a bit clearer for me, thanks 
Maybe you could add all those little, Upp specific things in the documentations some day? 
As for the member function... I've tried your code, but it won't work.
Tried some other things too, but still won't compile.
Maybe you know a solution?
Here's some code I tried and the resulting errors:
Register("GetClients", THISBACK(GetClients));
test.cpp (70): error C2664: "void Upp::Register(const char *,void (__cdecl *)(Upp::RpcData &),const char *)" : Konvertierung von Argument 2 von "Upp::Event<Upp::RpcData &>" in "void
(__cdecl *)(Upp::RpcData &)" nicht möglich
Register("GetClients", GetClients);
test.cpp (70): error C3867: "Test::GetClients": Keine Standardsyntax; "&" zum Erstellen eines Verweises auf das Member verwenden
Register("GetClients", &GetClients);
test.cpp (70): error C2276: "&": Ungültige Operation auf Ausdruck einer gebundenen Memberfunktion
Any solutions?
Thanks
|
|
|
Goto Forum:
Current Time: Fri Jun 06 15:48:09 CEST 2025
Total time taken to generate the page: 0.04022 seconds
|