dkell // User Search

dkell // User Search

1  |  

First Bot, help please

Oct 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 please

Oct 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 please

Oct 26, 2001, 7:56am
Thanks a lot
[View Quote]

1  |  
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn