Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

path to dylib



Hi

is it possible to get path to dylib in runtime from within dylib's function?
for example I have application foo
dynamic library foo.dylib

and function void foo(void) that I store in the foo.dylib

application foo load foo.dylib and eventually will call method foo

so I'd like to discover foo.dylib absolute path from within method foo


AFAIK in Windows it's possible via DLLMain
and GetModuleFileName


thanks in advance

Dmitry Markman
_______________________________________________
darwin-development mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/darwin-development
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.