Click here to Skip to main content
15,891,902 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Process explorer Pin
Sakhalean18-Aug-10 19:01
Sakhalean18-Aug-10 19:01 
GeneralRe: Process explorer Pin
Nuri Ismail19-Aug-10 0:10
Nuri Ismail19-Aug-10 0:10 
QuestionHow to validate a file path Pin
Danzy8317-Aug-10 10:32
Danzy8317-Aug-10 10:32 
AnswerRe: How to validate a file path Pin
Niklas L17-Aug-10 10:50
Niklas L17-Aug-10 10:50 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 10:55
Danzy8317-Aug-10 10:55 
GeneralRe: How to validate a file path Pin
Niklas L17-Aug-10 11:19
Niklas L17-Aug-10 11:19 
GeneralRe: How to validate a file path Pin
Danzy8317-Aug-10 11:24
Danzy8317-Aug-10 11:24 
AnswerRe: How to validate a file path Pin
Luc Pattyn17-Aug-10 11:25
sitebuilderLuc Pattyn17-Aug-10 11:25 
Which file paths are valid or invalid is determined by the operating system, not the programming language. What is valid for Windows may not be valid for others such as Unix, and vice versa.

If portability of your code is of prime importance, your best bet IMO would be to actually try and use the path, say by attempting to create a file in the given directory path.

When I create portable code, I define my own little virtual OS and have an OS.h file which has different sections for each of the platforms (operating system and compiler tools) I support; it is full of defines from my virtual OS to the actual one.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, and improve readability.


GeneralRe: How to validate a file path Pin
Niklas L17-Aug-10 11:40
Niklas L17-Aug-10 11:40 
GeneralRe: How to validate a file path Pin
Luc Pattyn17-Aug-10 11:46
sitebuilderLuc Pattyn17-Aug-10 11:46 
AnswerRe: How to validate a file path Pin
Garth J Lancaster17-Aug-10 12:48
professionalGarth J Lancaster17-Aug-10 12:48 
AnswerRe: How to validate a file path Pin
David Crow17-Aug-10 16:33
David Crow17-Aug-10 16:33 
QuestionCtree Recycle bin Pin
mdocvc17-Aug-10 8:56
mdocvc17-Aug-10 8:56 
QuestionRe: Ctree Recycle bin Pin
David Crow17-Aug-10 9:44
David Crow17-Aug-10 9:44 
AnswerRe: Ctree Recycle bin Pin
Niklas L17-Aug-10 10:54
Niklas L17-Aug-10 10:54 
AnswerRe: Ctree Recycle bin Pin
«_Superman_»17-Aug-10 19:17
professional«_Superman_»17-Aug-10 19:17 
Questionfile creation issue on windows7 Pin
MKC00217-Aug-10 5:52
MKC00217-Aug-10 5:52 
AnswerRe: file creation issue on windows7 Pin
David Crow17-Aug-10 7:14
David Crow17-Aug-10 7:14 
AnswerRe: file creation issue on windows7 Pin
«_Superman_»17-Aug-10 19:08
professional«_Superman_»17-Aug-10 19:08 
GeneralRe: file creation issue on windows7 Pin
MKC00217-Aug-10 22:54
MKC00217-Aug-10 22:54 
QuestionVisual Studio 2010 dog slow Pin
Leif Goodwin17-Aug-10 4:23
Leif Goodwin17-Aug-10 4:23 
GeneralRe: Visual Studio 2010 dog slow Pin
David Crow17-Aug-10 5:51
David Crow17-Aug-10 5:51 
GeneralRe: Visual Studio 2010 dog slow Pin
Leif Goodwin17-Aug-10 5:52
Leif Goodwin17-Aug-10 5:52 
Questionhow to avoid context menu for activex control Pin
MKC00217-Aug-10 2:09
MKC00217-Aug-10 2:09 
AnswerRe: how to avoid context menu for activex control Pin
Cool_Dev17-Aug-10 2:47
Cool_Dev17-Aug-10 2:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.