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 » U++ Library support » U++ Core » [REQUEST] GetDriveName function for Path.h
Re: [REQUEST] GetDriveName function for Path.h [message #20812 is a reply to message #20807] Thu, 09 April 2009 17:52 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14261
Registered: November 2005
Ultimate Member
masu wrote on Thu, 09 April 2009 05:17

Do you mind adding following inline function to Path.h:

#ifdef PLATFORM_WIN32
inline String GetDriveName(const String& path) { path.Left(2); }
#endif


Matthias


I do not know; if all it does is Left(2), why do not just use Left(2)?

Mirek
 
Read Message
Read Message
Read Message
Previous Topic: .ini file
Next Topic: problem with system() under windows [SOLVED]
Goto Forum:
  


Current Time: Tue Jun 17 21:04:58 CEST 2025

Total time taken to generate the page: 0.04001 seconds