|
compiler errors (Sdk)
compiler errors // Sdk
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
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]"jerme" <JerMe at nc.rr.com> wrote in message
news:3a78b67e$1 at server1.Activeworlds.com...
> 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
>
>
|
Feb 1, 2001, 11:46am
Well, now the 50 avatar maximum is hard-coded and you can't change it.
-Agent1
[View Quote]"commie" <Commie at hawaii.rr.com> wrote in message news:3a78d1a9 at server1.Activeworlds.com...
> 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.
>
> "jerme" <JerMe at nc.rr.com> wrote in message
> news:3a78b67e$1 at server1.Activeworlds.com...
> given
> project.
>
>
|
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]"commie" <Commie at hawaii.rr.com> wrote in message
news:3a78d1a9 at server1.Activeworlds.com...
> 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.
>
> "jerme" <JerMe at nc.rr.com> wrote in message
> news:3a78b67e$1 at server1.Activeworlds.com...
I'm
> given
> project.
>
>
|
Feb 1, 2001, 7:57pm
Well, the limit I talk about is in the 3.1 browser.
-Agent1
[View Quote]"jerme" <JerMe at nc.rr.com> wrote in message news:3a79cf84$1 at server1.Activeworlds.com...
> 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
>
>
> "commie" <Commie at hawaii.rr.com> wrote in message
> news:3a78d1a9 at server1.Activeworlds.com...
> goes
> I'm
>
>
|
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]"agent1" <Agent1 at my.activeworlds.com> wrote in message
news:3a79dbcd$1 at server1.Activeworlds.com...
> Well, the limit I talk about is in the 3.1 browser.
>
> -Agent1
>
>
> "jerme" <JerMe at nc.rr.com> wrote in message
news:3a79cf84$1 at server1.Activeworlds.com...
defined
time,
The
it
back.
greeterbot
'aw_enter' :
nice....
>
>
|
|