Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. A Programming Dilemma

A Programming Dilemma

Scheduled Pinned Locked Moved The Lounge
graphicscsswinformsquestion
37 Posts 17 Posters 8 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J JustWorking

    Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:

    M Offline
    M Offline
    Michael Schubert
    wrote on last edited by
    #14

    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[^]

    1 Reply Last reply
    0
    • J JustWorking

      Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:

      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #15

      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

      T 1 Reply Last reply
      0
      • J JustWorking

        Me too. Someone is univoting everyone that I reply too to make them think that I'm the one who is univoting them :sigh:

        R Offline
        R Offline
        Rajesh R Subramanian
        wrote on last edited by
        #16

        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

        B 1 Reply Last reply
        0
        • N Nagy Vilmos

          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

          T Offline
          T Offline
          Tom Deketelaere
          wrote on last edited by
          #17

          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).

          N 1 Reply Last reply
          0
          • T Tom Deketelaere

            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).

            N Offline
            N Offline
            Nagy Vilmos
            wrote on last edited by
            #18

            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

            M T 2 Replies Last reply
            0
            • M megaadam

              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

              J Offline
              J Offline
              Jim Crafton
              wrote on last edited by
              #19

              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

              M 1 Reply Last reply
              0
              • T TheIdleProgrammer

                Nothing LEAN_AND_MEAN about Win32... MFC can be such a pain in the arse.

                J Offline
                J Offline
                Jim Crafton
                wrote on last edited by
                #20

                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

                T 1 Reply Last reply
                0
                • J Jim Crafton

                  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

                  M Offline
                  M Offline
                  megaadam
                  wrote on last edited by
                  #21

                  Dude, that is exactly where the WIN32_LEAN_AND_MEAN was. But I had to remove it for GDI+.

                  ........................ Life is too shor

                  J D 2 Replies Last reply
                  0
                  • J Jim Crafton

                    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

                    T Offline
                    T Offline
                    TheIdleProgrammer
                    wrote on last edited by
                    #22

                    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...

                    1 Reply Last reply
                    0
                    • N Nagy Vilmos

                      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

                      M Offline
                      M Offline
                      Michael Schubert
                      wrote on last edited by
                      #23

                      Nagy Vilmos wrote:

                      e-wedgies

                      :laugh: :laugh: :laugh: :laugh: :laugh:

                      1 Reply Last reply
                      0
                      • M megaadam

                        Dude, that is exactly where the WIN32_LEAN_AND_MEAN was. But I had to remove it for GDI+.

                        ........................ Life is too shor

                        J Offline
                        J Offline
                        Jim Crafton
                        wrote on last edited by
                        #24

                        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

                        M 1 Reply Last reply
                        0
                        • N Nagy Vilmos

                          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

                          T Offline
                          T Offline
                          Tom Deketelaere
                          wrote on last edited by
                          #25

                          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.

                          N 1 Reply Last reply
                          0
                          • J Jim Crafton

                            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

                            M Offline
                            M Offline
                            megaadam
                            wrote on last edited by
                            #26

                            Jim Crafton wrote:

                            Was that actually the final solution, or was it just kind of blind luck that it worked for you?

                            Well both of the above actually :)

                            ........................ Life is too shor

                            1 Reply Last reply
                            0
                            • R Rajesh R Subramanian

                              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

                              B Offline
                              B Offline
                              Bassam Saoud
                              wrote on last edited by
                              #27

                              because he is not only perfect, He is lebanese too.

                              1 Reply Last reply
                              0
                              • T Tom Deketelaere

                                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.

                                N Offline
                                N Offline
                                Nagy Vilmos
                                wrote on last edited by
                                #28

                                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

                                1 Reply Last reply
                                0
                                • M megaadam

                                  Actually not MFC at all. "This guy's" project is pure Win32.

                                  ........................ Life is too shor

                                  L Offline
                                  L Offline
                                  Lost User
                                  wrote on last edited by
                                  #29

                                  then why use stdafx.h when you can use windows.h?

                                  Morality is indistinguishable from social proscription

                                  1 Reply Last reply
                                  0
                                  • M megaadam

                                    Dude, that is exactly where the WIN32_LEAN_AND_MEAN was. But I had to remove it for GDI+.

                                    ........................ Life is too shor

                                    D Offline
                                    D Offline
                                    Dan Neely
                                    wrote on last edited by
                                    #30

                                    <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

                                    M 1 Reply Last reply
                                    0
                                    • M megaadam

                                      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

                                      P Offline
                                      P Offline
                                      peterchen
                                      wrote on last edited by
                                      #31

                                      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.

                                      M 1 Reply Last reply
                                      0
                                      • P peterchen

                                        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.

                                        M Offline
                                        M Offline
                                        megaadam
                                        wrote on last edited by
                                        #32

                                        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

                                        P 1 Reply Last reply
                                        0
                                        • D Dan Neely

                                          <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

                                          M Offline
                                          M Offline
                                          megaadam
                                          wrote on last edited by
                                          #33

                                          You read too quickly. I removed the #define WIN32_LEAN_AND_MEAN

                                          ........................ Life is too shor

                                          modified on Wednesday, February 24, 2010 12:57 PM

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups