Board ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
bensezoug // User Search
bensezoug // User SearchProblemes using AW SDK with visual c++Jun 15, 2003, 12:22pm
have some problemes to use the AW SDK with visual c++
There's something wrong with "aw_event_set" I set up the handler: aw_event_set (AW_EVENT_CHAT, handle_chat); the handle_chat function is in the same class when I build the prog I have this error: C:\Program Files\Microsoft Visual Studio\MyProjects\awbot\awbotDlg.cpp(190) : error C2664: 'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void (__cdecl *)(void)' None of the functions with this name in scope match the target type Ther's no doubt the mistake is mine, I'm a beginner in coding. If someone could help me... Problemes using AW SDK with visual c++Jun 15, 2003, 8:48pm
It doesn't work :-( even if I use another class for the bot, I get the same
error message. "strike rapier" <strike at rapiercom.freeserve.co.uk> a écrit dans le message de news: 3eecdf7d at server1.Activeworlds.com... > define your handle chat function as so: > > void handle_chat(void); > > BTW, using a DLG class as the main bot class is not a good idea... Try using > another class, call it CAwBot... > > Class CAwBot [View Quote] |