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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Other Discussions
  3. The Back Room
  4. imagonnagetcha combeyatch

imagonnagetcha combeyatch

Scheduled Pinned Locked Moved The Back Room
com
9 Posts 4 Posters 0 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.
  • D Offline
    D Offline
    David Wulff
    wrote on last edited by
    #1

    dave is gonnagetcha and dave is gonnabeatya! dave is gonnagetcha and ima gonnabeatya and beat ya silly! all stress and no sleep make dave an edgey boi but he is gonnagetcha and hesa gonnashowya the back of his hand really messy like now. you canta beat im that easily. dave still hasa one more trick in his mind and ima gonnasetitonya. boom! boom! boom! your not so mighty anymore now areya mr _com_ptr_t. Fifteen consecutive hours (no breaks) and I have made zero fecking process. Zero! ZERO! If I so much as hear a bird tweeting anything vaguely resembling "COM" I will climb into the trees and rip is fucking wings off. If you thought I was writing this in a "funny, ha ha" way, think again. My teeth are aching I have been grinding them so much and my eyes are protruding a good clear inch from my face. :mad: :mad: :mad: dave is gonnago to bed. and dave is gonna sleep till wednesday. and when dave wakes up you'd better be gone.


    David Wulff http://www.davidwulff.co.uk

    J P R 3 Replies Last reply
    0
    • D David Wulff

      dave is gonnagetcha and dave is gonnabeatya! dave is gonnagetcha and ima gonnabeatya and beat ya silly! all stress and no sleep make dave an edgey boi but he is gonnagetcha and hesa gonnashowya the back of his hand really messy like now. you canta beat im that easily. dave still hasa one more trick in his mind and ima gonnasetitonya. boom! boom! boom! your not so mighty anymore now areya mr _com_ptr_t. Fifteen consecutive hours (no breaks) and I have made zero fecking process. Zero! ZERO! If I so much as hear a bird tweeting anything vaguely resembling "COM" I will climb into the trees and rip is fucking wings off. If you thought I was writing this in a "funny, ha ha" way, think again. My teeth are aching I have been grinding them so much and my eyes are protruding a good clear inch from my face. :mad: :mad: :mad: dave is gonnago to bed. and dave is gonna sleep till wednesday. and when dave wakes up you'd better be gone.


      David Wulff http://www.davidwulff.co.uk

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

      If you're mixing COM and MFC I understand your pain. My condolences. -- "And God said, Let us make man in our image"

      D 1 Reply Last reply
      0
      • D David Wulff

        dave is gonnagetcha and dave is gonnabeatya! dave is gonnagetcha and ima gonnabeatya and beat ya silly! all stress and no sleep make dave an edgey boi but he is gonnagetcha and hesa gonnashowya the back of his hand really messy like now. you canta beat im that easily. dave still hasa one more trick in his mind and ima gonnasetitonya. boom! boom! boom! your not so mighty anymore now areya mr _com_ptr_t. Fifteen consecutive hours (no breaks) and I have made zero fecking process. Zero! ZERO! If I so much as hear a bird tweeting anything vaguely resembling "COM" I will climb into the trees and rip is fucking wings off. If you thought I was writing this in a "funny, ha ha" way, think again. My teeth are aching I have been grinding them so much and my eyes are protruding a good clear inch from my face. :mad: :mad: :mad: dave is gonnago to bed. and dave is gonna sleep till wednesday. and when dave wakes up you'd better be gone.


        David Wulff http://www.davidwulff.co.uk

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

        If you addref you shall release, but don't forget 'bout Query-I-hinterface! If you return you shall addref, if you recevie you shall release! Oh COM, beautiful COM! COM, COM, COM , COM, COOOOOOOM!!!!! If you really have to mix MFCwith COM, keep MFC out of it. use #import for using COM stuff, and use ATL objects for implementing them. Life is easier this way. Trust me.


        If you look for evil in me, you will find it. Whether it's there or not. [sighist] | [Agile Programming] [doxygen]

        D 1 Reply Last reply
        0
        • J Jorgen Sigvardsson

          If you're mixing COM and MFC I understand your pain. My condolences. -- "And God said, Let us make man in our image"

          D Offline
          D Offline
          David Wulff
          wrote on last edited by
          #4

          Now he tells me...


          David Wulff http://www.davidwulff.co.uk

          J 1 Reply Last reply
          0
          • P peterchen

            If you addref you shall release, but don't forget 'bout Query-I-hinterface! If you return you shall addref, if you recevie you shall release! Oh COM, beautiful COM! COM, COM, COM , COM, COOOOOOOM!!!!! If you really have to mix MFCwith COM, keep MFC out of it. use #import for using COM stuff, and use ATL objects for implementing them. Life is easier this way. Trust me.


            If you look for evil in me, you will find it. Whether it's there or not. [sighist] | [Agile Programming] [doxygen]

            D Offline
            D Offline
            David Wulff
            wrote on last edited by
            #5

            peterchen wrote: If you really have to mix MFCwith COM, keep MFC out of it. use #import for using COM stuff, and use ATL objects for implementing them. Life is easier this way. Trust me. Thanks for the advice. When I gather the strength to launch Visual Studio again I'll try and take that route.


            David Wulff http://www.davidwulff.co.uk

            1 Reply Last reply
            0
            • D David Wulff

              dave is gonnagetcha and dave is gonnabeatya! dave is gonnagetcha and ima gonnabeatya and beat ya silly! all stress and no sleep make dave an edgey boi but he is gonnagetcha and hesa gonnashowya the back of his hand really messy like now. you canta beat im that easily. dave still hasa one more trick in his mind and ima gonnasetitonya. boom! boom! boom! your not so mighty anymore now areya mr _com_ptr_t. Fifteen consecutive hours (no breaks) and I have made zero fecking process. Zero! ZERO! If I so much as hear a bird tweeting anything vaguely resembling "COM" I will climb into the trees and rip is fucking wings off. If you thought I was writing this in a "funny, ha ha" way, think again. My teeth are aching I have been grinding them so much and my eyes are protruding a good clear inch from my face. :mad: :mad: :mad: dave is gonnago to bed. and dave is gonna sleep till wednesday. and when dave wakes up you'd better be gone.


              David Wulff http://www.davidwulff.co.uk

              R Offline
              R Offline
              Roger Wright
              wrote on last edited by
              #6

              Dave... let's cut back on the coffee a bit. Take a break, have a snack, relax in a warm bath. Here, try one of these nice Prozacs... maybe it's a good thing that most programmers don't like guns... Nobody wants to read a diary by someone who has not seen the shadow of Bubba on the prison shower wall in front of them!
              Paul Watson, on BLOGS and privacy - 1/16/2003

              J 1 Reply Last reply
              0
              • R Roger Wright

                Dave... let's cut back on the coffee a bit. Take a break, have a snack, relax in a warm bath. Here, try one of these nice Prozacs... maybe it's a good thing that most programmers don't like guns... Nobody wants to read a diary by someone who has not seen the shadow of Bubba on the prison shower wall in front of them!
                Paul Watson, on BLOGS and privacy - 1/16/2003

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

                Roger Wright wrote: maybe it's a good thing that most programmers don't like guns... :insane cackle: -- "And God said, Let us make man in our image"

                1 Reply Last reply
                0
                • D David Wulff

                  Now he tells me...


                  David Wulff http://www.davidwulff.co.uk

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

                  Sorry :( But had you asked earlier I would have told you. To get ahead of you this time, here are some advice: If you're gonna do COM with ATL, don't use the attributed crud. It's stupid mainly because of two things:

                  • It decentralizes the interface definitions (they end up by default in the header files for the COM class implementations). Interfaces do not belong with their implementations IMHO. What's wrong with IDL? Silly feature courtesy of Microsoft.
                  • Double compilation and linking. First the compiler will extract attribute information, generate code and then compile the sources and finally inject the compiled attribute code into the binary. Pain in the ass for small projects - doubles the build time. I suppose it doesn't get much better with large projects as well if the number of attributed constructs are linearly proportional to the size of the project.
                  • It's not C++ god damn it!
                  • It's cumbersome to backport it to VC6 if you need to for whatever reason.

                  Another thing; if you stumble onto WTL. Don't use the WTL-wizard to build a outproc COM server if you want to expose COM classes from it. It doesn't register the type library, which will give you problems if you for example hook javascript events from inside an IE control. The bloody COM server won't give jscript.dll the type library information it needs. You have to register the type library manually. If you want an outproc COM server, use the ATL-wizard and insert the WTL code afterwards. That'll save you a couple of hours of constant swearing. Have fun! :) -- "And God said, Let us make man in our image"

                  D 1 Reply Last reply
                  0
                  • J Jorgen Sigvardsson

                    Sorry :( But had you asked earlier I would have told you. To get ahead of you this time, here are some advice: If you're gonna do COM with ATL, don't use the attributed crud. It's stupid mainly because of two things:

                    • It decentralizes the interface definitions (they end up by default in the header files for the COM class implementations). Interfaces do not belong with their implementations IMHO. What's wrong with IDL? Silly feature courtesy of Microsoft.
                    • Double compilation and linking. First the compiler will extract attribute information, generate code and then compile the sources and finally inject the compiled attribute code into the binary. Pain in the ass for small projects - doubles the build time. I suppose it doesn't get much better with large projects as well if the number of attributed constructs are linearly proportional to the size of the project.
                    • It's not C++ god damn it!
                    • It's cumbersome to backport it to VC6 if you need to for whatever reason.

                    Another thing; if you stumble onto WTL. Don't use the WTL-wizard to build a outproc COM server if you want to expose COM classes from it. It doesn't register the type library, which will give you problems if you for example hook javascript events from inside an IE control. The bloody COM server won't give jscript.dll the type library information it needs. You have to register the type library manually. If you want an outproc COM server, use the ATL-wizard and insert the WTL code afterwards. That'll save you a couple of hours of constant swearing. Have fun! :) -- "And God said, Let us make man in our image"

                    D Offline
                    D Offline
                    David Wulff
                    wrote on last edited by
                    #9

                    Ok, thanks. :)


                    David Wulff http://www.davidwulff.co.uk

                    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