Hi. I'm writing an ActiveX EXE in VB 6.0 that will be instantiated as an out-of-process COM server by a C++ application. The VB EXE loads some graphics files during initialization. This works fine in debug mode -- it looks for the graphics files in the project directory. But when I start it up as an ActiveX object from the client, it can't find the graphics files -- I guess the current directory is no longer the project directory, which makes sense.
What's the most elegant and/or easy way to allow my ActiveX EXE to find the graphics files when invoked as a server? The files will be installed along with the component, but I don't want to hard-code the location. Hopefully this is a dumb question and I'm overlooking something simple.
Thanks for the help.