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 » U++ Library support » U++ Callbacks and Timers » How to use callback with 3 parameters
Re: How to use callback with 3 parameters [message #13499 is a reply to message #13498] Fri, 11 January 2008 10:17 Go to previous messageGo to previous message
mrjt is currently offline  mrjt
Messages: 705
Registered: March 2007
Location: London
Contributor
callback3 does not exits at the moment, the closest is callback2. You will have to use another technique, such as packing the data into a structure and passing that instead.

struct int3
{
	int3(int _a, int _b, int _c) : a(_a), b(_b), c(_c) { }
	int a, b, c;
};

void MyFunc(int3 i)
{
    ...
}

void main()
{
    PostCallback(callback1(MyFunc, int3(1, 2, 3))); // ?????
}
There are other ways around this also.

[Updated on: Fri, 11 January 2008 10:18]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Question about PostCallback from Child Thread
Next Topic: A new [Ctrl] timer id strategy
Goto Forum:
  


Current Time: Tue May 07 20:43:04 CEST 2024

Total time taken to generate the page: 0.02079 seconds