Board ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
dkell // User Search
dkell // User SearchFirst Bot, help pleaseOct 17, 2001, 3:38pm
Hi,
I'm wondering how you implement event handlers in Visual C++ for the AW SDK. I know hold to do it with standard C since you can just call aw_event_set(event, 'function name'). But in C++ I get the error message : error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void (__cdecl *)(void)' I just don't really know where to put the handling function (eg in the same class with public privledges, can i put it in and different class?) and how to refer to it. I'd really appreacite some help, thankyou, damian First Bot, help pleaseOct 17, 2001, 3:38pm
Hi,
I'm wondering how you implement event handlers in Visual C++ for the AW SDK. I know hold to do it with standard C since you can just call aw_event_set(event, 'function name'). But in C++ I get the error message : error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void (__cdecl *)(void)' I just don't really know where to put the handling function (eg in the same class with public privledges, can i put it in and different class?) and how to refer to it. I'd really appreacite some help, thankyou, damian |