|
It's actually C++ code, but what amazes me is the lack of writing something like PathCombine. Yes, I have a new project.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
This may help: Reference Source: Path.Combine[^]
And when you get it working, stick it up as an article / tip for others to enjoy!
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
As long as I've been on this site, you have a point.
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
i prefer trailing slashes at the end of directory names. That way you can distinguish them programmatically and visually from filenames
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
BURN THE W... Oh wait, that actually makes a lot of sense
|
|
|
|
|
come over to the dark side. we have cookies.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Come over to the Light Side: we have , and Pizza.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
i don't drink and my pizza has to be gay.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
honey the monster, codewitch wrote: my pizza has to be gay.
That's easy: just put ham and pineapple on it.
Sent from my Amstrad PC 1640
Never throw anything away, Griff
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
AntiTwitter: @DalekDave is now a follower!
|
|
|
|
|
Comment begged by your post:
honey the monster, codewitch wrote: pizza has to be gay. Pineapple topping?
Ravings en masse^ |
---|
"The difference between genius and stupidity is that genius has its limits." - Albert Einstein | "If you are searching for perfection in others, then you seek disappointment. If you are seek perfection in yourself, then you will find failure." - Balboos HaGadol Mar 2010 |
|
|
|
|
|
absolutely.
Although a cowboy with white sauce also counts.
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
stop hijacking my thread
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
slashes go at the end of directories. There you go. =D
When I was growin' up, I was the smartest kid I knew. Maybe that was just because I didn't know that many kids. All I know is now I feel the opposite.
|
|
|
|
|
Over the years I have learned not to care. I have seen and done both so when I start building paths I use PathAddBackslash because it adds one only if necessary. This way the code can accommodate both options.
Lately, I use no leading slashes and I have trailing slashes on directories. Plane, old file names never have them.
"They have a consciousness, they have a life, they have a soul! Damn you! Let the rabbits wear glasses! Save our brothers! Can I get an amen?"
|
|
|
|
|
In DOS, I prefer trailing backslashes on directory paths.
I have begun to try getting into the habit of specifying them on the command line to avoid a certain class of error to which I have proven prone time and time again.
Remember, also, that a _real_ Operating System has a better file specification system:
nodename::devicename:[directoryname.directoryname]filename.extension
|
|
|
|
|
PIEBALDconsult wrote: nodename::devicename:[directoryname.directoryname]filename.extension;version
But I never wave bye bye
|
|
|
|
|
Poop! I'm rusty.
Muchas gracias.
|
|
|
|
|
lol, I actually know what that means.
Zero blue screens. The only time the OS *ever* went down was due to two causes. Driver development, but we all knew to stay away. And, shutting down your workstation then realizing you just shutdown the cluster (and 5000 people would be calling soon).
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Depending on version, there’s PathCchCombine function (pathcch.h) | Microsoft Docs[^]
What do you get when you cross a joke with a rhetorical question?
The metaphorical solid rear-end expulsions have impacted the metaphorical motorized bladed rotating air movement mechanism.
Do questions with multiple question marks annoy you???
|
|
|
|
|
charlieg wrote: A great deal of concatenation, Ouch. No C++ equivalent of Path.Combine() ?
/ravi
|
|
|
|
|
not in my code base, but there will be soon....
Charlie Gilley
<italic>Stuck in a dysfunctional matrix from which I must escape...
"Where liberty dwells, there is my country." B. Franklin, 1783
“They who can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety.” BF, 1759
|
|
|
|
|
Interviewer: "I heard you were extremely quick at math"
Me: "yes, as a matter of fact I am"
Interviewer: "Whats 14x27"
Me: "49"
Interviewer: "that's not even close"
me: "yeah, but it was fast"
Technician
1. A person that fixes stuff you can't.
2. One who does precision guesswork based on unreliable data provided by those of questionable knowledge.
JaxCoder.com
|
|
|
|
|
Latest person on the Pentium team?
- I would love to change the world, but they won’t give me the source code.
|
|
|
|
|
Like a non-SQL92-compliant database I know.
It doesn't use a proper order of operations, but it's faaaast.
|
|
|
|
|
"We'll just put you on the 'time left estimation' dialog..."
|
|
|
|