From: ts Date: 2005-11-23T19:45:29+09:00 Subject: Re: Help embedding Ruby in Visual C++ project >>>>> "s" == stevewong4 writes: s> ruby_init_loadpath(); Well, ruby use the variable $LOAD_PATH to know where it must search a library. This is this variable which is initialized when you call rb_init_loadpath() and by default (with $SAFE == 0) it add `.', the current directory, in it. This is why it find the script when it's in the current directory. You can use, ruby_incpush() if you want to add directories to this variable. moulon% grep ruby_incpush *.h intern.h:void ruby_incpush _((const char*)); moulon% Guy Decoux