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 |
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
|
|
|
Goto Forum:
Current Time: Tue May 07 20:43:04 CEST 2024
Total time taken to generate the page: 0.02079 seconds
|