Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
NilaT is currently offline  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 Smile
Maybe you could add all those little, Upp specific things in the documentations some day? Wink

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 Smile
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Requirement Printing in a batch -> new Feature for PrinterJob
Next Topic: C2280
Goto Forum:
  


Current Time: Fri Jun 06 15:48:09 CEST 2025

Total time taken to generate the page: 0.04022 seconds