Thread

Unable to initalize the API (Sdk)

Unable to initalize the API // Sdk

1  |  

brez

Jan 6, 2000, 6:51pm
hello. I've been experimenting with the greetbot. it builds with no
warnings/errors, but when
I try to initalise the API (aw_init( )) I get an rc of 454
("RC_VERSION_MISMATCH); I'm
using build 15 (the original SDK for C) and the header (aw.h) has it defined
as 15? Am I missing
something obvious? Thanks.

serac

Jan 6, 2000, 11:26pm
> hello. I've been experimenting with the greetbot. it builds with no
> warnings/errors, but when
> I try to initalise the API (aw_init( )) I get an rc of 454
> ("RC_VERSION_MISMATCH); I'm
> using build 15 (the original SDK for C) and the header (aw.h) has it defined
> as 15? Am I missing
> something obvious? Thanks.

To initialize the API you use the aw_init() function:

int aw_init( int build )

Where build should be AW_BUILD, a constant defined as the current version.
The example in the SDK looks like the following:

int rc;

if ( rc = aw_init( AW_BUILD ) )
printf( "Unable to initialize the API (reason %d)\n", rc );

If that is what you are doing, then I don't understand why you would get
that return code.


====
Aaron Hill (Redmond, Wash.)
Electronic Mail: serac at lightmail.com
IRC Nickname: serac (on EF-Net)
ICQ UIN: 46803963
ActiveWorlds
Citizenship: serac

brez

Jan 7, 2000, 6:42am
it was something, 'obvious.' I didn't have the 'aw.dll' in the debug dir.
thanks for the reply though. actually, while I got everyone's attention,

are there any other resources for the aw sdk besides the few pages at aw?
any open source (GPL) projects? Thanks.

brez

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