Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / March 2006

Tip: Looking for answers? Try searching our database.

App root path

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Hector Y. Martinez - 23 Mar 2006 00:07 GMT
Hello:
 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 ???

Thanx in advance

Signature

"The best way to predict the future, is to invent it"

William DePalo [MVP VC++] - 23 Mar 2006 00:37 GMT
>  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

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.