Bernhard Glk wrote: > static void RegisterSimple() > But, a call to RegisterSimple crashes my progam.... Hmm, I am not sure what you mean by "call" here, but if this is a Ruby extension XYZ, then Ruby should expect a function Init_XYZ in your dll (which should be named XYZ.so). You also need to export the function and declare it's a C function to stop mangling. In VC, this amounts to something like: extern "C" void __declspec(dllexport) Init_XYZ() { /* */ } > I am using MSVC60, with teh mswin32-ruby16.dll all my modules are > linked the same as Ruby itself using Multithreaded DLL .... any ideas > on this one ? I suspect this is just a define problem. Did you define the symbol IMPORT? And if you are targeting NT, define NT=1 too. (i.e. /D "IMPORT" /D NT=1) Hope this helps. -- All the best, Maverick Woo