Thread

compiler errors (Sdk)

compiler errors // Sdk

1  |  

jerme

Jan 31, 2001, 11:06pm
I'm usning MS VC++ 6. I have made a few bots, but it was awhile back. I'm
trying to remake a bot that was based off the of the sample greeterbot given
in the API docs. However this these lines of code:

/* log bot into the world called "beta" */
if (rc = aw_enter("aw")) {
printf ("Unable to enter world (reason %d)\n", rc);
exit (1);
}

are generating the error:

C:\Windows\Desktop\aw\SampleBot\Cpp2.cpp(38) : error C2660: 'aw_enter' :
function does not take 1 parameters


I think i've managed to include the aw.dll, and aw.lib files in my project.
(I used Project | Add to project | Files...) Any help would be nice....

Thanks,
Jeremy

--


-Jeremy
----------------------
AIM: AlphaNumeric100
ICQ: 106209991
AW: JerMe

commie

Feb 1, 2001, 1:02am
If you look in the aw.h you will see that it takes 2 parameters now. The
other is how many avatars it can see (i believe). Well in build 19, it goes
back to taking only 1 parameter, doesnt really make sense.

[View Quote]

agent1

Feb 1, 2001, 11:46am
Well, now the 50 avatar maximum is hard-coded and you can't change it.

-Agent1


[View Quote]

jerme

Feb 1, 2001, 7:05pm
You were right. In the aw.h (build 17 [non-beta]) file aw_enter() is defined
as:

int aw_enter (const char* world, int avatars);

But, if there is a hard coded maximum number of 50 viewable AVs at a time,
what's the point of having a limit? Roland, would care to explain it's
purpose?



-Jeremy
----------------------
AIM: AlphaNumeric100
ICQ: 106209991
AW: JerMe


[View Quote]

agent1

Feb 1, 2001, 7:57pm
Well, the limit I talk about is in the 3.1 browser.

-Agent1


[View Quote]

jerme

Feb 1, 2001, 9:03pm
Well, what ever the case my be... it works now. Thanks yall...

--


-Jeremy
----------------------
AIM: AlphaNumeric100
ICQ: 106209991
AW: JerMe
[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