Re: Wrapping DLLs

new topic     » goto parent     » topic index » view thread      » older message » newer message

You can wrap all those pointers to C_POINTER in define_c_func, but you have
to dereference them using peek4u and poke4 to get/set the address of what
they point to, then if it's pointing to a pointer you have to use peek4u and
poke4 again to get/set the address there etc.
----- Original Message -----
From: "Tony Bucholtz" <tony_bucholtz at HOTMAIL.COM>
To: "EUforum" <EUforum at topica.com>
Sent: Thursday, February 22, 2001 6:07 AM
Subject: Wrapping DLLs


> G'day all
>
> I'm starting a project to wrap the InterBase headers, and came across a
> couple of examples like:
>
> void load_defaults(const char *conf_file,
>                    const char **groups,
>    int *argc,
>                    char ***argv);
>
> I'm not a C/C++ programmer, so I'm learning bits and pieces as I work thru
> this project. I think I understand the "int *argc" construct, but how do I
> wrap "const char **groups" and "char ***argv"? Is that last one really
> saying "pointer to a pointer to a pointer to a variable"?
> No wonder some people don't like C!
>
> BTW, Topica tells me "access denied" when I try to get to the EUforum
list.
> Have I been a bad boy? Have I been banned from the list? Whazzhappenin' ?
>
> Regards
> Tony
>
>
>
>
>

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu