MAKEWORD( )

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • asit

    MAKEWORD( )

    frnds,

    i m new to this world.
    I use to make application out of scratch.

    wVersionRequest ed = MAKEWORD( 2, 2 );

    can anyone tell me wht is the significance of calling MAKEWORD( )
    function ??


    Thanx

    Regards
    Asit

  • Carramba

    #2
    Re: MAKEWORD( )

    asit skrev:
    frnds,
    >
    i m new to this world.
    I use to make application out of scratch.
    >
    wVersionRequest ed = MAKEWORD( 2, 2 );
    >
    can anyone tell me wht is the significance of calling MAKEWORD( )
    function ??
    >
    This is part of the C++ socket wrapper class from the MSDN...
    it's macro and defined
    //#define MAKEWORD(low, high) \
    ((WORD)((((WORD )(high)) << 8) | ((BYTE)(low))))

    in any case I strongly doubt that it is C standard :P
    and the place to look for the answer would by:

    Thanx
    >
    Regards
    Asit
    >

    Comment

    • Al Balmer

      #3
      Re: MAKEWORD( )

      On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@examp le.com>
      wrote:
      >asit skrev:
      >frnds,
      >>
      >i m new to this world.
      >I use to make application out of scratch.
      >>
      >wVersionReques ted = MAKEWORD( 2, 2 );
      >>
      >can anyone tell me wht is the significance of calling MAKEWORD( )
      >function ??
      >>
      >
      >This is part of the C++ socket wrapper class from the MSDN...
      Nah, it's a macro that I wrote long ago - before MS even had their own
      C compiler. It combines two characters into a 16-bit word.

      I don't know how the OP found it ;-)

      --
      Al Balmer
      Sun City, AZ

      Comment

      • Carramba

        #4
        Re: MAKEWORD( )

        Al Balmer skrev:
        On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@examp le.com>
        wrote:
        >
        >asit skrev:
        >>frnds,
        >>>
        >>i m new to this world.
        >>I use to make application out of scratch.
        >>>
        >>wVersionReque sted = MAKEWORD( 2, 2 );
        >>>
        >>can anyone tell me wht is the significance of calling MAKEWORD( )
        >>function ??
        >>>
        >This is part of the C++ socket wrapper class from the MSDN...
        >
        Nah, it's a macro that I wrote long ago - before MS even had their own
        C compiler. It combines two characters into a 16-bit word.
        yeah sure... how about you search for it on google and see were you find
        it..
        you should then sue ms for piracy ;-)
        I don't know how the OP found it ;-)
        >

        Comment

        • Al Balmer

          #5
          Re: MAKEWORD( )

          On Wed, 18 Jul 2007 19:11:48 +0200, Carramba <carramba@examp le.com>
          wrote:
          >Al Balmer skrev:
          >On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@examp le.com>
          >wrote:
          >>
          >>asit skrev:
          >>>frnds,
          >>>>
          >>>i m new to this world.
          >>>I use to make application out of scratch.
          >>>>
          >>>wVersionRequ ested = MAKEWORD( 2, 2 );
          >>>>
          >>>can anyone tell me wht is the significance of calling MAKEWORD( )
          >>>function ??
          >>>>
          >>This is part of the C++ socket wrapper class from the MSDN...
          >>
          >Nah, it's a macro that I wrote long ago - before MS even had their own
          >C compiler. It combines two characters into a 16-bit word.
          >
          >yeah sure... how about you search for it on google and see were you find
          >it..
          Google doesn't know everything. I already know exactly where to find
          it. Has it really come to this - people think Google encompasses the
          total of human knowledge?
          >you should then sue ms for piracy ;-)
          Huh? I never tried to trademark it, and I suspect MS's implementation
          was independently developed. OTOH, it might be cheaper for them to
          settle ...

          I trust that you do get the point - the macro in question (if it is a
          macro) is not necessarily what you told the OP it is, and although it
          might be implemented in standard C, discussing it in c.l.c is
          pointless without seeing the implementation.
          >
          >I don't know how the OP found it ;-)
          >>
          --
          Al Balmer
          Sun City, AZ

          Comment

          Working...