sorry for this posting, it should be in another thread but
I’m not able to add a new msg to this specific thread.
I can’t answert to any posting (in the next few hours)
because I’m using google…
-
I’v wrote some extension dll’s which works fine!
-
I’m going to write a dll which wraps an existing dll (and this
dll used the mfc) - I’m under windows and using VC 6
I also have searched in the internet for a solution to my
problem - and found a solution which says to add
/D IMPORT or RUBY_IMPORT and /D NT=1 to my compiler options.
But this does not help ;-(
My init function:
···
–
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.
Does anybody knowns a solution for this problem?
–
@ts: I can’t send you a email because my smtp says your
address is not reachable.
When my problem is solved I’m going to write an own web-page
about this for other people…
Now I’m distressed.
daniel
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 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 , see
http://metaeditor.sf.net/embed/
···
On Tue, 15 Apr 2003 04:43:08 +0000, daniel wrote:
–
Simon Strandgaard
daniel wrote:
[…]
I’v solved the problem…
First I’v compiled ruby under windows and usesd
the created librarys - also ``libruby.lib´´.
Now I’v removed this library and use the library
of the windows-ruby project (I don’t know
exactly the name, somewhere win-ruby***.lib).
This works fine.
@Simon Strandgaard
Maybe to add this in a list…
daniel
I’v solved the problem…
Well… the world is not perfect
First I’v compiled ruby under windows and usesd
the created librarys - also ``libruby.lib´´.
Now I’v removed this library and use the library
of the windows-ruby project (I don’t know
exactly the name, somewhere win-ruby***.lib).
This works fine.
@Simon Strandgaard
Maybe to add this in a list…
yes… Right now the tutorial is unix only. I would like to
support windows/mac too. But unfortunatly I don’t own neither
a windows-box nor a mac-box.
Any suggestions is welcome
···
On Tue, 15 Apr 2003 23:23:30 +0200, daniel wrote:
–
Simon Strandgaard