Re: [opensource-dev] I could use a little help with boost and callbacks and stuff

2011-11-18 Thread Lance Corrimal
OK. I'm coming out of the closet here. I am *HOPELESSLY LOST* with this stuff. No matter what I put where in the source, the stuff builds but it does not work at all. All I get is this in the logfile: 2011-11-18T08:16:18Z WARNING: initCommitCallback: No callback found for: 'Agent.ToggleAO' in

Re: [opensource-dev] I could use a little help with boost and callbacks and stuff

2011-11-13 Thread Lance Corrimal
Am Sonntag, 13. November 2011 schrieb Jonathan Welch: > Did you try creating a new debug variable and linking it to your > xml file that defines the new UI element you have created? the ui element is doing fine, it's the "non-ui" class that I can't get to work with the buttons... I'm trying to

Re: [opensource-dev] I could use a little help with boost and callbacks and stuff

2011-11-13 Thread Ricky
IIRC that _number thing has to do with iteration. The example code I gave in the email here passes one parameter (myParameter). I'm not as strong with Boost or the Standard Lib methods as I was a couple of months ago, but I don't recall there being a no-parameter version. The count of parameters

Re: [opensource-dev] I could use a little help with boost and callbacks and stuff

2011-11-12 Thread Lance Corrimal
I guess I wasn't exactly clear... What I need to know is how I have to modify my classes to make them work with boost::bind and the CallbackRegistry. When I try to just duplicate the way that other classes in the viewer use to register methods in the CallbackRegistry, I get tons of boost erro

Re: [opensource-dev] I could use a little help with boost and callbacks and stuff

2011-11-12 Thread Ricky
Is something like: std::bind1st(std::mem_fun(&MyClass::MyMethod), myParameter) what you are looking for? You can see working code using that on lines 350-390 of https://bitbucket.org/kf6kjg/gsp-420-engine-design-graphics/src/120a2081bb2f/src/audio_core/AudioCore.cpp (This was code I wrote while he