A Programming Dilemma
-
What a clever little question! [EDIT] (And no I did not univote you!)
........................ Life is too shor
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:
-
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:
Cpianism wrote:
Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them
You should seek help. You're showing classic symtoms of projection -> http://en.wikipedia.org/wiki/Projection_%28psychology%29[^]
-
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:
You are not 'univoted'; that is when a troll just clicks 'vote 1' without reading [probably] You deserve every 1 you get.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
-
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:
Cpianism wrote:
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them Sigh
Just a thought: What makes you think that anyone in this known world will give you that much importance?
“Follow your bliss.” – Joseph Campbell
-
You are not 'univoted'; that is when a troll just clicks 'vote 1' without reading [probably] You deserve every 1 you get.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
Nagy Vilmos wrote:
You deserve every 1 you get.
I fail to see why his original reply deserves a 1. Sure he stated the obvious but that doesn't really deserves to be down voted now does it. And yes he has made mistakes (I use the word loosely ) in the past but voting him 1 for that reason only would also be univoting (in my opinion).
-
Nagy Vilmos wrote:
You deserve every 1 you get.
I fail to see why his original reply deserves a 1. Sure he stated the obvious but that doesn't really deserves to be down voted now does it. And yes he has made mistakes (I use the word loosely ) in the past but voting him 1 for that reason only would also be univoting (in my opinion).
cplop deserves the e-wedgies for his constant and banal whinging about being down voted when he complains about all the down votes he gets. FFS, if he went to Oz, they'd think he was a Brit!
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
-
So this guy I know.... ....decided to chuck out his old GDI drawing code in favor of GDI+. He expected a bit of a threshold but felt confident it would pay off. Off he goes and happily types: #include <gdiplus.h> Just to make sure, he unsuspectingly hits F7. KAZANGO! (a lovely sound effect (from the B.C. cartoons) I haven't used for decades) The compiler explodes with 77 bizare errors. Mostly syntax errors and such. So he [this guy] tries to move that include around (into and out of stdafx.h etc) to make the include work. Different bizare errors but same nightmare. Then begins messing around with the pch [precompiled header] settings. No progress. So he consults his trused old friend, Mr. Google. Mr. Google tells him that many other guys just like him have had similar problems. But none of the solutions Mr. G. suggests makes this guys code compile. So gripping for straws he more or less randomly eyes his stdafx.h. He feels like buying a lottery ticket when he removes the [auto-generated] line:
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
But after two hours of constant pain, he is becoming rather discouraged. And rather apprehensively he presses F7. And it all compiles perfectly fine. He shakes his head in disbelief: "How the :wtf: was I supposed to know that ???"........................ Life is too shor
Because pretty much anyone worth their salt knows that you put WIN32_LEAN_AND_MEAN at the top of your header before the windows.h include? That's just standard Microsoft Win32 programming, and has been for about 10+ years. I don't know if it's a requirement for other compiler tool chains.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
Nothing LEAN_AND_MEAN about Win32... MFC can be such a pain in the arse.
This has nothing to do with MFC. It's related to Win32 programming. You'd still use it even if you're project isn't using MFC.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
Because pretty much anyone worth their salt knows that you put WIN32_LEAN_AND_MEAN at the top of your header before the windows.h include? That's just standard Microsoft Win32 programming, and has been for about 10+ years. I don't know if it's a requirement for other compiler tool chains.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
This has nothing to do with MFC. It's related to Win32 programming. You'd still use it even if you're project isn't using MFC.
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
My bad. :-O Truth is that I've done a fair bit of C++ but it's all been using MFC, and I don't really know much about using C++ outside of the MFC arena. I'm a more of a C# .net boy really. You know what they say about ASSumptions...
-
cplop deserves the e-wedgies for his constant and banal whinging about being down voted when he complains about all the down votes he gets. FFS, if he went to Oz, they'd think he was a Brit!
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
Nagy Vilmos wrote:
e-wedgies
:laugh: :laugh: :laugh: :laugh: :laugh:
-
Dude, that is exactly where the WIN32_LEAN_AND_MEAN was. But I had to remove it for GDI+.
........................ Life is too shor
Ahh, sorry, I missed that :) Yeah that's pretty wacked. Was that actually the final solution, or was it just kind of blind luck that it worked for you?
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
cplop deserves the e-wedgies for his constant and banal whinging about being down voted when he complains about all the down votes he gets. FFS, if he went to Oz, they'd think he was a Brit!
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
Nagy Vilmos wrote:
FFS, if he went to Oz, they'd think he was a Brit!
:laugh:
Nagy Vilmos wrote:
cplop deserves the e-wedgies for his constant and banal whinging about being down voted when he complains about all the down votes he gets.
Well to each his own. I barely vote but when I do I do it on the content of the post I'm voting on not on the poster.
-
Ahh, sorry, I missed that :) Yeah that's pretty wacked. Was that actually the final solution, or was it just kind of blind luck that it worked for you?
¡El diablo está en mis pantalones! ¡Mire, mire! SELECT * FROM User WHERE Clue > 0 0 rows returned Save an Orange - Use the VCF! Personal 3D projects Just Say No to Web 2 Point Blow
-
Cpianism wrote:
Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them Sigh
Just a thought: What makes you think that anyone in this known world will give you that much importance?
“Follow your bliss.” – Joseph Campbell
because he is not only perfect, He is lebanese too.
-
Nagy Vilmos wrote:
FFS, if he went to Oz, they'd think he was a Brit!
:laugh:
Nagy Vilmos wrote:
cplop deserves the e-wedgies for his constant and banal whinging about being down voted when he complains about all the down votes he gets.
Well to each his own. I barely vote but when I do I do it on the content of the post I'm voting on not on the poster.
Tom Deketelaere wrote:
I do it on the content of the post
Same here, but when a humanoid is a known sub-starta dweller then the benefit of the dopubt is not given and if there's even a sniff of stoopid, then out comes the e-wedgie.
Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H
-
Actually not MFC at all. "This guy's" project is pure Win32.
........................ Life is too shor
-
Dude, that is exactly where the WIN32_LEAN_AND_MEAN was. But I had to remove it for GDI+.
........................ Life is too shor
<blockquote class="FQ"><div class="FQA">megaadam wrote:</div>So this guy I know.... ....decided to chuck out his old GDI drawing code in favor of GDI+. He expected a bit of a threshold but felt confident it would pay off. </blockquote>
megaadam wrote:
But I had to remove it for GDI+.
So what you're saying is you're schizophrenic?
3x12=36 2x12=24 1x12=12 0x12=18
-
So this guy I know.... ....decided to chuck out his old GDI drawing code in favor of GDI+. He expected a bit of a threshold but felt confident it would pay off. Off he goes and happily types: #include <gdiplus.h> Just to make sure, he unsuspectingly hits F7. KAZANGO! (a lovely sound effect (from the B.C. cartoons) I haven't used for decades) The compiler explodes with 77 bizare errors. Mostly syntax errors and such. So he [this guy] tries to move that include around (into and out of stdafx.h etc) to make the include work. Different bizare errors but same nightmare. Then begins messing around with the pch [precompiled header] settings. No progress. So he consults his trused old friend, Mr. Google. Mr. Google tells him that many other guys just like him have had similar problems. But none of the solutions Mr. G. suggests makes this guys code compile. So gripping for straws he more or less randomly eyes his stdafx.h. He feels like buying a lottery ticket when he removes the [auto-generated] line:
#define WIN32_LEAN_AND_MEAN // Exclude rarely-used stuff from Windows headers
But after two hours of constant pain, he is becoming rather discouraged. And rather apprehensively he presses F7. And it all compiles perfectly fine. He shakes his head in disbelief: "How the :wtf: was I supposed to know that ???"........................ Life is too shor
I'd check what error occurs - probably an undefined symbol. I'd check where the symbol normally comes from. I'd try to walk back why that part is excluded. Some #ifdef? The header not included from windows.h? But that's just me.
He is not supposed to know that, per se (though he should be able to learn after, say, the thrid attempt...) However, he is supposed to understand enough mechanisms to help himself without adding or removing random funny looking lines. All it takes is three things: - Reading the first error message (rather than reading their count, and trying to find "someone to blame" when there are more than 2) - Understanding #include, #ifdef and #define - Symbol Search
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server. -
I'd check what error occurs - probably an undefined symbol. I'd check where the symbol normally comes from. I'd try to walk back why that part is excluded. Some #ifdef? The header not included from windows.h? But that's just me.
He is not supposed to know that, per se (though he should be able to learn after, say, the thrid attempt...) However, he is supposed to understand enough mechanisms to help himself without adding or removing random funny looking lines. All it takes is three things: - Reading the first error message (rather than reading their count, and trying to find "someone to blame" when there are more than 2) - Understanding #include, #ifdef and #define - Symbol Search
Agh! Reality! My Archnemesis![^]
| FoldWithUs! | sighist | µLaunch - program launcher for server core and hyper-v server.Of course Peter, that is the way to go, and that is what i did. But as I wrote I had syntax errors etc Error 99 error C2059: syntax error : ')' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h 2219 Error 105 error C2059: syntax error : ')' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdiplusflat.h 2230 Error 124 error C2059: syntax error : ')' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdiplusbitmap.h 45 Error 50 error C2059: syntax error : 'public' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdiplusimaging.h 67 Error 106 error C2061: syntax error : identifier 'byte' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdipluspath.h 133 Error 54 error C2061: syntax error : identifier 'IStream' c:\program\microsoft visual studio 8\vc\platformsdk\include\gdiplusheaders.h 384 and the first failing symbol "IStream" did not lead me any further. And the connection between that symbol and #define WIN32_LEAN_AND_MEAN was not in any way evident.
........................ Life is too shor