Oh, and one last nemesis related to #ifdef and #endif
#ifdef PROVERSION
x=123; \
#endif
Try banging your head on the wall fixing that one.
(shh... don't tell anyone: there...
Type: Posts; User: motocross1
Oh, and one last nemesis related to #ifdef and #endif
#ifdef PROVERSION
x=123; \
#endif
Try banging your head on the wall fixing that one.
(shh... don't tell anyone: there...
Wow, you're right.
I bet you see the XY problem once a week here.
I would even say that is one of the biggest nemeses of programmers.
The other being cut-n-paste without completely editing the...
So, I can build to different folders now.
And it is "relatively" simple to do.
(ignoring all the trial-and-errors and endless Google searches)
I copy-n-pasted my project vcxproj file to a new...
Oh well. I thought that would be the case.
Thanks for replying.
Is it possible to add a special pragma or something to tell the compiler which folder to build to based on #ifdef #else
Thanks
Unfortunately, the website that I am POSTing to is HTTPS.
But that does give me an idea...
Maybe I can POST to a friend's website and see the data that way.
Thank-you for spurring my mind.
Note:
WinInet doesn't FAIL in making the POST.
It's just that the website rejects the POST as being incorrect data.
I need to POST a normal-everyday XML data string to a website.
I FAIL when I POST with WinInet using:
string Headers="Content-Type: application/xml";
string POSTdata="<?xml version=\"1.0\"...
You're not using the studentID function
Ad hominem, the Dunning-Kruger effect, Charles Darwin, Bertrand Russell, overly-pedantic
Some really intellectual comments, I love it.
And the dragon artwork - very, very cool.
And, yes, I guess...
This is a legitimate question.
I associate "professional code" with being primarily, "fast and efficient" and "not going to cause memory problems".
I view C++ as a powerful tool.
You guys view...
Okay, buddy, you get to go to heaven now.
Of course, you just proved why religion is bad.
Anyway, sorry for that analogy. It was insensitive.
Back on topic, Singletons are bad here too:
jalf.dk...
Note: Singletons are not thread safe...
C++ and The Perils of Double-Checked Locking: Part I | Dr Dobb's
And, you guys are right about my use of "Professional".
Scratch that.
"Professional"...
YES, finally, someone noticed.
I'm not a corporation.
Even then, do a Google: "gobals are good"
There are some great reads out there:
I love globals, or Google Core Dump
The more I read, the...
"where would you go to find out what is wrong"
1-billion lines of code, find this: global_isLoggedIn=(true|false);
Very easy.
Duh.
I did some 'case' logging and InvalidateRect does nothing, so I went back to Google:
Custom draw trackbar
I've obviously somehow already read this I think. I don't remember.
I am refactoring my...
GOTO is a stupid example - it IS hard to follow.
if( !User.isLoggedIn ) DoLogin();
...is the same as...
if( !global_isLoggedIn ) DoLogin();
Both are easy to track and understand.
My code is...
Sorry if I was a bit overly cocky - it does feel somewhat like a competition.
But, I think using a namespace in my situation is a perfectly legitamate C++ usage.
I actually love it.
(I really do...
Oh well.
That didn't work either.
What's weird is that when color=newcolor (nothing changes) and I hover over the thumb, then the thumb instantly changes to the new color, but not the track. But...
The forum's own website:
FAQ > C++ Namespaces - Cprogramming.com
WOW, I beat you guys.
I can't believe it.
Looks global to me:
Namespaces - C++ Documentation
pheininger,
Thanks for the plug, but trust me, the Professionals seem to only listen to those with a high number of posts.
Elkvis,
"if you want intelligent discourse on the merits (or lack...
If I had a nickel every time I've heard that one, wow, let me tell you, I'd have 5-cents. ;)
(sorry I called you a jerk)
Hurray. Then gimme somes Like's already.
After this beating, I need a booster.
I'm a believer now, I've seen the light. Glory halleluha!!!
I "Like" it all. Like, Like, Like.
Are you happy now?
How about ending the thread, jerk?