Home » Community » Newbie corner » How to find the path for a Directory? - Windows (undefined reference to `_imp__PathAppendA@8')
Re: How to find the path for a Directory? - Windows [message #43957 is a reply to message #43955] |
Fri, 28 November 2014 08:37   |
 |
koldo
Messages: 3437 Registered: August 2008
|
Senior Veteran |
|
|
Hello rfdiaz
Welcome to forum.
If you work in U++ you just need AppendFileName() function to append two paths.
If you also wants to browse through a folder, you can use this example:
String path = AppendFileName(dir, "*.*")
FindFile ff(path);
while(ff) {
String name = ff.GetName();
String namePath = AppendFileName(dir, name);
if (ff.IsFile())
DoSomething(namePath);
else if(ff.IsFolder())
DoMore(path, name);
ff.Next();
}
To create a new command line U++ project you have to open TheIDE, choose "New package" and choose this option:

CONSOLE_APP_MAIN is the main() of your program.
-
Attachment: Captur.JPG
(Size: 57.85KB, Downloaded 508 times)
Best regards
IƱaki
[Updated on: Fri, 28 November 2014 08:38] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Sun Jul 06 13:50:33 CEST 2025
Total time taken to generate the page: 0.03685 seconds
|