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 6 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.
  • 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
                    • 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!

                      J Offline
                      J Offline
                      Jorgen Sigvardsson
                      wrote on last edited by
                      #25

                      Of course it's fun. :) -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                      1 Reply Last reply
                      0
                      • R Roland Pibinger

                        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 Offline
                        J Offline
                        Jorgen Sigvardsson
                        wrote on last edited by
                        #26

                        Are you talking about the project I'm currently working on? Well.. hm.. I don't have MFC in it, so it's pretty tidy. :) -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                        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:

                          J Offline
                          J Offline
                          Jorgen Sigvardsson
                          wrote on last edited by
                          #27

                          C++ is expressive and quite orthogonal, compared to other half assed languages. Besides, it's what you make of it that counts. -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                          1 Reply Last reply
                          0
                          • N Nemanja Trifunovic

                            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 Offline
                            J Offline
                            Jorgen Sigvardsson
                            wrote on last edited by
                            #28

                            Nemanja Trifunovic wrote: Maybe Alcohol Alcohol usually gets you in a good mood. Java don't. But then again, too much alcohol makes you sick, just like java. ;) -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                            1 Reply Last reply
                            0
                            • N Nemanja Trifunovic

                              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 Offline
                              J Offline
                              Jorgen Sigvardsson
                              wrote on last edited by
                              #29

                              It's when you get such pointer values, that you know you're [potentially] in trouble. :) -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                              1 Reply Last reply
                              0
                              • N Navin

                                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 Offline
                                J Offline
                                Jorgen Sigvardsson
                                wrote on last edited by
                                #30

                                m_obj is not this_'s private parts, so you can relax now. ;P -- Schni Schna Schnappi! Schnappi Schnappi Schnapp!

                                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:

                                  R Offline
                                  R Offline
                                  Rick York
                                  wrote on last edited by
                                  #31

                                  Actually, it's self-obfuscating if one allows it to be.

                                  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