You need to use const_get to access classes/namespaces whose names are not
compatible with Ruby naming conventions.
A module in Ruby must start with capital ASCII letter.
const_get(:mdMATCHUPOBJECTLib).const_get(:mdMUIncrementalClass).new should work.
Tomas
-Original Message-
From: iro
I may be totally "off base," but have you tried using the fusion viewer
to ensure that you do not have a problem with .NET loading the DLL (and
its underlying COM object).
---
Larry Jones
||| Senior Level Development Engineer
Aspen Technology, Inc. ||| +1 281-504-3324 ||| fax: 281-584-1062 |||
www
That sounds like a good plan. Much of the CRuby version of FFI used
to be written in ruby, until people had the quaint notion that it
shouldn't be as slow as it was, and I moved most of the implementation
into C.
dlopen and friends are usually in the libdl library on most unixen. I
can't remembe
Sweet - thank you for the tip, Wayne!
Here's my current plan:
- All Ruby classes defined inside of ffi_c will be ported to Ruby, where
I'll call into my C# lib where it makes sense.
- Because my poor brain can only handle so much context-switching, I'll
stub out all of the Ruby classe