DLL file name

konan

Registered
In carbon, how can I get the full name (or FSSpec) to the DLL which is calling the function. For example, in windows, my plug-in does this to get the path...

HMODULE Module = GetModuleHandle(
"MyPlugin.DLL" // address of module name to return handle for
);

GetModuleFileName(
Module, // handle to module to find filename for
FullFileName, // pointer to buffer for module path
255 // size of buffer, in characters
);

GetPathFromFileName(Path,FullFileName);

Now, how can I do the same thing for the Mac version of my plug-in. I need the path to the plug-in since there are data files in the same folder that need to be accessed.

Any help you can provide would be great.
Konan
 
I realize this is an old thread, but it's the exact problem I'm currently trying to solve. Does anyone have any advice?

Thanks in advance,
-Morgan
 
Back
Top