What do you mean by "handle" ? Looks like a callback to me... I'd like to see the signature of the function that you are calling to get the "handle". ET PS: We may want to take the conversation off the list unless someone else is interested... James Finstrom writes: > Greetings all, > > I am writing app that allows me to control my canon SLR with my wiimote. I > am trying to figure out how to call a function in main that generats a > handle then returns the handle to main > > > Concept: > > connect(){ connect to wiimote and return handle foo} > > main(){ call connect(), get handle, perform actions on that handle} > > > James Finstrom --------------------------------------------------- PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us To subscribe, unsubscribe, or to change your mail settings: http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss