U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » U++ Core » [REQUEST] GetDriveName function for Path.h
Re: [REQUEST] GetDriveName function for Path.h [message #20848 is a reply to message #20812] Tue, 14 April 2009 10:36 Go to previous message
masu is currently offline  masu
Messages: 378
Registered: February 2006
Senior Member
Yes, you are right maybe this is too simple to add.

Initially, I had that:

#ifdef PLATFORM_WIN32
inline String GetDriveName(const String& path) { return path.Left(path.FindFirstOf(":")+1); }
#endif


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


Current Time: Mon Sep 28 18:53:18 GMT+2 2026

Total time taken to generate the page: 0.00760 seconds