Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Path names - best practices...

Author
Message
Chiblue
14
Years of Service
User Offline
Joined: 6th Nov 2009
Location: NE PA, USA
Posted: 11th Aug 2010 16:46
I was wondering what is the recomendation in windows when using path names in C++... should I use '/' or '\\' as both appear to work affectively, but I would prefer to use the one that is safest... unless it really does not matter?
_Pauli_
AGK Developer
14
Years of Service
User Offline
Joined: 13th Aug 2009
Location: Germany
Posted: 11th Aug 2010 22:19
I think it doesn't make a difference at all, but I prefer the '\\' since it reminds me of the classic DOS style of writing paths

Now the plot thickens, the fps decreases, and the awesomeness goes through the roof.
Dar13
16
Years of Service
User Offline
Joined: 12th May 2008
Location: Microsoft VisualStudio 2010 Professional
Posted: 12th Aug 2010 00:28
You should use '\\', since it equals '\' when the C++ compiler finishes with it. I honestly didn't think you could use '/' in a path, since Windows uses '\' in its path names.


Login to post a reply

Server time is: 2024-07-02 09:07:53
Your offset time is: 2024-07-02 09:07:53