Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
koldo is currently offline  koldo
Messages: 3361
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:

index.php?t=getfile&id=4671&private=0
CONSOLE_APP_MAIN is the main() of your program.

  • Attachment: Captur.JPG
    (Size: 57.85KB, Downloaded 406 times)


Best regards
IƱaki

[Updated on: Fri, 28 November 2014 08:38]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Previous Topic: add library
Next Topic: Multiple Layout files
Goto Forum:
  


Current Time: Fri May 10 20:08:04 CEST 2024

Total time taken to generate the page: 0.02826 seconds