okhan // User Search

okhan // User Search

1  |  

C++ style functions with aw_event_set

Feb 27, 2000, 3:25am
Hi,

I'm using Visual C++ and classes to implement the required functions for my
bot. When I exectue the call

aw_event_set(SOME EVENT, function)

I get the error:

'aw_event_set' : cannot convert parameter 2 from 'void (void)' to 'void
(__cdecl *)(void)'

The function shown above is a function declared both in the header file
(class definition) and in a cpp file with the typical CLASS::function {}
implementation.

Does anyone know how I can get around this problem and get aw_event_set to
accept the passed function?

Thanks,

Omar Khan

AW SDK Thread-safe?

Mar 1, 2000, 6:07pm
[View Quote] More on threads...

Say I have a mother program that spawns children bots as a certain function
is executed external to activeworlds (say on a webpage). Now these
children bots are threads within that program. There is no threading going
on within these children bots, they are just activeworld bots that are
threads themselves...

now I can't see the activeworlds sdk having any problems with this, but
perhaps if someone does, then could they say what problems could be
encountered with this threading and the sdk?

Omar

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