
Signature
"The best way to predict the future, is to invent it"
> I'm developing an app, with a plugins system, and I have a folder,
> plugins, thats in the same directory with the app, then a need a function
> or
> something that tell me what is the App root directoy... can u understand
> my
> bad english ???
You can use GetModuleFileName() to return the fully qualified name of the
executable. The result you can pass to _splitpath() to get the drive and
directory which you pass to _makepath() which, think, will get you what you
want.
Regards,
Will
Marcus Heege - 23 Mar 2006 08:50 GMT
If it is a managed app, you may also use
AppDomain::CurrentDomain->BaseDirectory and the System::IO::Path helper.
>> I'm developing an app, with a plugins system, and I have a folder,
>> plugins, thats in the same directory with the app, then a need a function
[quoted text clipped - 10 lines]
> Regards,
> Will