On Tue, 15 Apr 2003 04:43:08 +0000, daniel wrote:

> extern "C" void __declspec(dllexport) 
> Init_RubyVServCli()
> {
>     Beep(100,100); 
> 
>     cRubyVServCli = rb_define_class("RubyVServCli", rb_cObject);    
> }
> --
> 
> In this case, ``rb_cObject´´ is 0 and the dll throws an error.
> If I call ``ruby_init´´ before ``rb_define_class´´, ``rb_cObject´´
> has an value (high number) - but the class is not declared in
> my script.

If its necessary for you to call "ruby_init", then it sound to me
like you are doing <embedding> and not like an "extension".

 
> When my problem is solved I'm going to write an own web-page
> about this for other people...

Im writing a tutorial about <embedding>, see
http://metaeditor.sf.net/embed/


--
Simon Strandgaard