|
instances (Sdk)
instances // Sdk
Feb 5, 2001, 2:07am
with the new 3.1 SDK my instances don't seem to be working... the
aw_create() uses a void** for an instance, but to set the instance it uses a
void*... Is my brain not working or is this an SDK problem?
--
-=Hal9000=- world:Discover
--==~~out~~==--
--== http://hal9000.xoasis.com
Feb 5, 2001, 4:50pm
The aw_create() uses a void ** in order to be able to return an void *.
See these examples and comments:
void *instance; // pointer to "void", to unknown data
void **p_instance; // pointer to a pointer to void.
aw_create(....,&instance); // takes the address of the pointer-to-void
which generates a pointer-to-pointer-to-void
p_instance = &instance; // same here
aw_create(...,p_instance); // this would work too
Hope that helps :)
Faber
"hal9000" <wampa1 at qwest.net> schrieb im Newsbeitrag
news:3a7e26f4 at server1.Activeworlds.com...
> with the new 3.1 SDK my instances don't seem to be working... the
> aw_create() uses a void** for an instance, but to set the instance it
uses a
> void*... Is my brain not working or is this an SDK problem?
>
> --
> -=Hal9000=- world:Discover
> --==~~out~~==--
> --== http://hal9000.xoasis.com
>
>
Feb 5, 2001, 11:15pm
oh boy... that means tons and tons of pointers...
btw is there a way to make an array of pointers?
--
-=Hal9000=- world:Discover
--==~~out~~==--
--==~~ http://hal9000.xoasis.com
[View Quote]"faber" <Walter at Knupe.de> wrote in message
news:3a7ef608 at server1.Activeworlds.com...
| The aw_create() uses a void ** in order to be able to return an void *.
| See these examples and comments:
|
|
| void *instance; // pointer to "void", to unknown data
|
| void **p_instance; // pointer to a pointer to void.
|
| aw_create(....,&instance); // takes the address of the pointer-to-void
| which generates a pointer-to-pointer-to-void
|
| p_instance = &instance; // same here
|
| aw_create(...,p_instance); // this would work too
|
| Hope that helps :)
|
| Faber
|
|
| "hal9000" <wampa1 at qwest.net> schrieb im Newsbeitrag
| news:3a7e26f4 at server1.Activeworlds.com...
| > with the new 3.1 SDK my instances don't seem to be working... the
| > aw_create() uses a void** for an instance, but to set the instance it
| uses a
| > void*... Is my brain not working or is this an SDK problem?
| >
| > --
| > -=Hal9000=- world:Discover
| > --==~~out~~==--
| > --== http://hal9000.xoasis.com
| >
| >
|
|
Feb 6, 2001, 11:10am
void *instance[64]; // is a good example of the array of the pointers.
Andras
[View Quote]hal9000 wrote:
>
> oh boy... that means tons and tons of pointers...
>
> btw is there a way to make an array of pointers?
>
> --
> -=Hal9000=- world:Discover
> --==~~out~~==--
> --==~~ http://hal9000.xoasis.com
>
> "faber" <Walter at Knupe.de> wrote in message
> news:3a7ef608 at server1.Activeworlds.com...
> | The aw_create() uses a void ** in order to be able to return an void *.
> | See these examples and comments:
> |
> |
> | void *instance; // pointer to "void", to unknown data
> |
> | void **p_instance; // pointer to a pointer to void.
> |
> | aw_create(....,&instance); // takes the address of the pointer-to-void
> | which generates a pointer-to-pointer-to-void
> |
> | p_instance = &instance; // same here
> |
> | aw_create(...,p_instance); // this would work too
> |
> | Hope that helps :)
> |
> | Faber
> |
> |
> | "hal9000" <wampa1 at qwest.net> schrieb im Newsbeitrag
> | news:3a7e26f4 at server1.Activeworlds.com...
> | > with the new 3.1 SDK my instances don't seem to be working... the
> | > aw_create() uses a void** for an instance, but to set the instance it
> | uses a
> | > void*... Is my brain not working or is this an SDK problem?
> | >
> | > --
> | > -=Hal9000=- world:Discover
> | > --==~~out~~==--
> | > --== http://hal9000.xoasis.com
> | >
> | >
> |
|
Feb 6, 2001, 6:01pm
char *errortexts[]={"No error","One Error","Two Errors","Three
Errors",NULL}; // is a common example for pointer arrays
Faber
"andras" <andras at andras.net> schrieb im Newsbeitrag
news:3A7FF69C.4F8E1ACB at andras.net...
> void *instance[64]; // is a good example of the array of the pointers.
[View Quote]> hal9000 wrote:
pointer-to-void
|
Feb 6, 2001, 11:21pm
I tried
void *bot[10];
and I got errors when compiling...
--
-=Hal9000=- world:Discover
--==~~out~~==--
Win98, P2-450MHz, STB Velocity128, Creative Sound Blaster PCI 64V
http://hal9000.xoasis.com
[View Quote]"andras" <andras at andras.net> wrote in message
news:3A7FF69C.4F8E1ACB at andras.net...
| void *instance[64]; // is a good example of the array of the pointers.
| Andras
|
|
| hal9000 wrote:
| >
| > oh boy... that means tons and tons of pointers...
| >
| > btw is there a way to make an array of pointers?
| >
| > --
| > -=Hal9000=- world:Discover
| > --==~~out~~==--
| > --==~~ http://hal9000.xoasis.com
| >
| > "faber" <Walter at Knupe.de> wrote in message
| > news:3a7ef608 at server1.Activeworlds.com...
| > | The aw_create() uses a void ** in order to be able to return an void
*.
| > | See these examples and comments:
| > |
| > |
| > | void *instance; // pointer to "void", to unknown data
| > |
| > | void **p_instance; // pointer to a pointer to void.
| > |
| > | aw_create(....,&instance); // takes the address of the pointer-to-void
| > | which generates a pointer-to-pointer-to-void
| > |
| > | p_instance = &instance; // same here
| > |
| > | aw_create(...,p_instance); // this would work too
| > |
| > | Hope that helps :)
| > |
| > | Faber
| > |
| > |
| > | "hal9000" <wampa1 at qwest.net> schrieb im Newsbeitrag
| > | news:3a7e26f4 at server1.Activeworlds.com...
| > | > with the new 3.1 SDK my instances don't seem to be working... the
| > | > aw_create() uses a void** for an instance, but to set the instance
it
| > | uses a
| > | > void*... Is my brain not working or is this an SDK problem?
| > | >
| > | > --
| > | > -=Hal9000=- world:Discover
| > | > --==~~out~~==--
| > | > --== http://hal9000.xoasis.com
| > | >
| > | >
| > |
|
Feb 7, 2001, 8:49am
WHAT errors did you get??
Andras
[View Quote]hal9000 wrote:
>
> I tried
> void *bot[10];
> and I got errors when compiling...
>
> --
> -=Hal9000=- world:Discover
> --==~~out~~==--
>
> Win98, P2-450MHz, STB Velocity128, Creative Sound Blaster PCI 64V
> http://hal9000.xoasis.com
> "andras" <andras at andras.net> wrote in message
> news:3A7FF69C.4F8E1ACB at andras.net...
> | void *instance[64]; // is a good example of the array of the pointers.
> | Andras
> |
> |
> | hal9000 wrote:
> | >
> | > oh boy... that means tons and tons of pointers...
> | >
> | > btw is there a way to make an array of pointers?
> | >
> | > --
> | > -=Hal9000=- world:Discover
> | > --==~~out~~==--
> | > --==~~ http://hal9000.xoasis.com
> | >
> | > "faber" <Walter at Knupe.de> wrote in message
> | > news:3a7ef608 at server1.Activeworlds.com...
> | > | The aw_create() uses a void ** in order to be able to return an void
> *.
> | > | See these examples and comments:
> | > |
> | > |
> | > | void *instance; // pointer to "void", to unknown data
> | > |
> | > | void **p_instance; // pointer to a pointer to void.
> | > |
> | > | aw_create(....,&instance); // takes the address of the pointer-to-void
> | > | which generates a pointer-to-pointer-to-void
> | > |
> | > | p_instance = &instance; // same here
> | > |
> | > | aw_create(...,p_instance); // this would work too
> | > |
> | > | Hope that helps :)
> | > |
> | > | Faber
> | > |
> | > |
> | > | "hal9000" <wampa1 at qwest.net> schrieb im Newsbeitrag
> | > | news:3a7e26f4 at server1.Activeworlds.com...
> | > | > with the new 3.1 SDK my instances don't seem to be working... the
> | > | > aw_create() uses a void** for an instance, but to set the instance
> it
> | > | uses a
> | > | > void*... Is my brain not working or is this an SDK problem?
> | > | >
> | > | > --
> | > | > -=Hal9000=- world:Discover
> | > | > --==~~out~~==--
> | > | > --== http://hal9000.xoasis.com
> | > | >
> | > | >
> | > |
|
|