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. C++ is fun

C++ is fun

Scheduled Pinned Locked Moved The Lounge
c++htmlcomtoolsquestion
31 Posts 19 Posters 2 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.
  • X Xiangyang Liu

    peterchen wrote: (this_->m_obj->*(this_->m_func))(); But it is not CLS-compliant! (see this week's poll) ;P[

    My articles and software tools

    ](http://mysite.verizon.net/XiangYangL/index.htm)

    N Offline
    N Offline
    Nish Nishant
    wrote on last edited by
    #5

    Xiangyang Liu wrote: But it is not CLS-compliant! (see this week's poll) Only if it's part of a publicly exposed interface though

    1 Reply Last reply
    0
    • P peterchen

      just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


      Pandoras Gift #44: Hope. The one that keeps you on suffering.
      aber.. "Wie gesagt, der Scheiss is' Therapie"
      boost your code || Fold With Us! || sighist | doxygen

      R Offline
      R Offline
      Roland Pibinger
      wrote on last edited by
      #6

      peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

      P B E N E 7 Replies Last reply
      0
      • N Nish Nishant

        Haakon S. wrote: Do you really need this? It's not the this pointer, it's a pointer variable named this_

        D Offline
        D Offline
        Daniel Turini
        wrote on last edited by
        #7

        Nishant S wrote: It's not the this pointer, it's a pointer variable named this_ And you call this fun??? I see dead pixels Yes, even I am blogging now!

        P J 2 Replies Last reply
        0
        • R Roland Pibinger

          peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

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

          I need a T-Shirt: "Obfuscating and proud!"


          Pandoras Gift #44: Hope. The one that keeps you on suffering.
          aber.. "Wie gesagt, der Scheiss is' Therapie"
          boost your code || Fold With Us! || sighist | doxygen

          C 1 Reply Last reply
          0
          • D Daniel Turini

            Nishant S wrote: It's not the this pointer, it's a pointer variable named this_ And you call this fun??? I see dead pixels Yes, even I am blogging now!

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

            Like this? (this_->obj->*(this_->fun))();


            Pandoras Gift #44: Hope. The one that keeps you on suffering.
            aber.. "Wie gesagt, der Scheiss is' Therapie"
            boost your code || Fold With Us! || sighist | doxygen

            1 Reply Last reply
            0
            • R Roland Pibinger

              peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

              B Offline
              B Offline
              Bruce Duncan
              wrote on last edited by
              #10

              Don't forget about PERL, specifically when using regex's :)

              Searching the web without Google is like straining sewage with your teeth.
              Userfriendly, 2003/06/07

              R 1 Reply Last reply
              0
              • P peterchen

                I need a T-Shirt: "Obfuscating and proud!"


                Pandoras Gift #44: Hope. The one that keeps you on suffering.
                aber.. "Wie gesagt, der Scheiss is' Therapie"
                boost your code || Fold With Us! || sighist | doxygen

                C Offline
                C Offline
                Chris Meech
                wrote on last edited by
                #11

                How's about, "C++ coders Obfuscate regularly" :) Chris Meech I am Canadian. [heard in a local bar] Remember that in Texas, Gun Control is hitting what you aim at. [Richard Stringer] Nice sig! [Tim Deveaux on Matt Newman's sig with a quote from me]

                1 Reply Last reply
                0
                • R Roland Pibinger

                  peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

                  E Offline
                  E Offline
                  eggie5
                  wrote on last edited by
                  #12

                  Isn't Perl obfuscated in real time? /\ |_ E X E GG

                  1 Reply Last reply
                  0
                  • R Roland Pibinger

                    peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

                    N Offline
                    N Offline
                    Nemanja Trifunovic
                    wrote on last edited by
                    #13

                    Roland Pibinger wrote: C++, the only language with a built-in code obfuscater. Man, you have obviously never tried Perl. Not to mention APL[^] or BF[^](kid sister - safe variant of its name). Having said that, I agree that all C-like languages have too expressive syntax. Who needs that with today's IDEs and monitors? Bjarne Stroustrup himself wrote he would have prefered to use Algol68 as a base for his language rather than C. Then we would have had Algol++ and Algol# - I just wonder how Java would be called. Maybe Alcohol :~


                    My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                    J 1 Reply Last reply
                    0
                    • P peterchen

                      just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                      Pandoras Gift #44: Hope. The one that keeps you on suffering.
                      aber.. "Wie gesagt, der Scheiss is' Therapie"
                      boost your code || Fold With Us! || sighist | doxygen

                      M Offline
                      M Offline
                      Member 96
                      wrote on last edited by
                      #14

                      I wrote probably over 10 million lines of code in c++ but the more I use c# the more C++ starts to look like Greek to me!:)


                      "In our civilization, and under our republican form of government, intelligence is so highly honored that it is rewarded by exemption from the cares of office." - Ambrose Bierce

                      1 Reply Last reply
                      0
                      • R Roland Pibinger

                        peterchen wrote: just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows C++, the only language with a built-in code obfuscater. :suss:

                        E Offline
                        E Offline
                        Eddie Velasquez
                        wrote on last edited by
                        #15

                        Roland Pibinger wrote: C++, the only language with a built-in code obfuscater. You obviously have never had the "pleasure" of coding in Perl!


                        A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. - Murphy's Law of Computing

                        R 1 Reply Last reply
                        0
                        • P peterchen

                          just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                          Pandoras Gift #44: Hope. The one that keeps you on suffering.
                          aber.. "Wie gesagt, der Scheiss is' Therapie"
                          boost your code || Fold With Us! || sighist | doxygen

                          T Offline
                          T Offline
                          Turtle Hand
                          wrote on last edited by
                          #16

                          I agree C++ is cool in a Brain Teaser kind of way. It's good to live, Josef Wainz Software Developer

                          1 Reply Last reply
                          0
                          • P peterchen

                            just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                            Pandoras Gift #44: Hope. The one that keeps you on suffering.
                            aber.. "Wie gesagt, der Scheiss is' Therapie"
                            boost your code || Fold With Us! || sighist | doxygen

                            J Offline
                            J Offline
                            Judah Gabriel Himango
                            wrote on last edited by
                            #17

                            It's been awhile since I coded in C, I'm trying to decipher what that even means... some variable named "this_" is dereferenced, and is used to access m_obj, which is dereferenced to access the pointer to ... a function?

                            Tech, life, family, faith: Give me a visit. I'm currently blogging about: Horrific Minnesota Radio Judah Himango

                            P 1 Reply Last reply
                            0
                            • P peterchen

                              just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                              Pandoras Gift #44: Hope. The one that keeps you on suffering.
                              aber.. "Wie gesagt, der Scheiss is' Therapie"
                              boost your code || Fold With Us! || sighist | doxygen

                              T Offline
                              T Offline
                              Tim Ranker
                              wrote on last edited by
                              #18

                              I hope those pointers are not NULL... :)

                              N 1 Reply Last reply
                              0
                              • T Tim Ranker

                                I hope those pointers are not NULL... :)

                                N Offline
                                N Offline
                                Nemanja Trifunovic
                                wrote on last edited by
                                #19

                                Do you think it would be better if they were 0x000001 instead ;P


                                My programming blahblahblah blog. If you ever find anything useful here, please let me know to remove it.

                                J 1 Reply Last reply
                                0
                                • P peterchen

                                  just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                                  Pandoras Gift #44: Hope. The one that keeps you on suffering.
                                  aber.. "Wie gesagt, der Scheiss is' Therapie"
                                  boost your code || Fold With Us! || sighist | doxygen

                                  T Offline
                                  T Offline
                                  Tad McClellan
                                  wrote on last edited by
                                  #20

                                  And we wonder why people think programers are boring.

                                  1 Reply Last reply
                                  0
                                  • P peterchen

                                    just wrote this: (this_->m_obj->*(this_->m_func))(); Nothing exceptional, but I enjoy th arrows


                                    Pandoras Gift #44: Hope. The one that keeps you on suffering.
                                    aber.. "Wie gesagt, der Scheiss is' Therapie"
                                    boost your code || Fold With Us! || sighist | doxygen

                                    N Offline
                                    N Offline
                                    Navin
                                    wrote on last edited by
                                    #21

                                    peterchen wrote: (this_->m_obj->*(this_->m_func))(); You disgust me. The generation of random numbers is too important to be left to chance.

                                    J 1 Reply Last reply
                                    0
                                    • B Bruce Duncan

                                      Don't forget about PERL, specifically when using regex's :)

                                      Searching the web without Google is like straining sewage with your teeth.
                                      Userfriendly, 2003/06/07

                                      R Offline
                                      R Offline
                                      Roland Pibinger
                                      wrote on last edited by
                                      #22

                                      Bruce Duncan wrote: Don't forget about PERL, specifically when using regex's Fortunately C++ will have a regex lib in the future. Imagine regex, STL, Boost libraries, and MFC/COM/ATL/WTL in one program. Unbeatable!

                                      J 1 Reply Last reply
                                      0
                                      • E Eddie Velasquez

                                        Roland Pibinger wrote: C++, the only language with a built-in code obfuscater. You obviously have never had the "pleasure" of coding in Perl!


                                        A complex system that does not work is invariably found to have evolved from a simpler system that worked just fine. - Murphy's Law of Computing

                                        R Offline
                                        R Offline
                                        Roland Pibinger
                                        wrote on last edited by
                                        #23

                                        Eddie Velasquez wrote: You obviously have never had the "pleasure" of coding in Perl! From the CUJ newsletter May 2, 2005

                                        4. Coming Up in the July 2005 Issue

                                        *** Java and C/C++ ***
                                        ...
                                        Perl, C++, & Java: Making it easy to execute Perl subroutines from
                                        within C++
                                        ...

                                        1 Reply Last reply
                                        0
                                        • J Judah Gabriel Himango

                                          It's been awhile since I coded in C, I'm trying to decipher what that even means... some variable named "this_" is dereferenced, and is used to access m_obj, which is dereferenced to access the pointer to ... a function?

                                          Tech, life, family, faith: Give me a visit. I'm currently blogging about: Horrific Minnesota Radio Judah Himango

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

                                          It's redirecting an Async procedure call to another object's member function. this_ is a ptr to the proxy object (passed to APCProc as ULONG_PTR), and contains an instance pointer m_obj and a member function pointer m_func


                                          Pandoras Gift #44: Hope. The one that keeps you on suffering.
                                          aber.. "Wie gesagt, der Scheiss is' Therapie"
                                          boost your code || Fold With Us! || sighist | doxygen

                                          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