Accessing extern variable in Ruby DLL

torhu no at spam.invalid
Sat Jan 17 12:41:18 PST 2009


On 17.01.2009 04:30, Jordan Miner wrote:
> extern unsigned long rb_cObject;
>
> so in my binding I have
>
> extern uint rb_cObject;

For accessing variables in a DLL, you need to do it like this:

export extern (C) extern uint rb_cObject;




More information about the Digitalmars-d mailing list