Connecting Tech Pros Worldwide Forums | Help | Site Map

MAKEWORD( )

asit
Guest
 
Posts: n/a
#1: Jul 17 '07
frnds,

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

wVersionRequested = MAKEWORD( 2, 2 );

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


Thanx

Regards
Asit


Carramba
Guest
 
Posts: n/a
#2: Jul 17 '07

re: MAKEWORD( )


asit skrev:
Quote:
frnds,
>
i m new to this world.
I use to make application out of scratch.
>
wVersionRequested = 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:
http://search.msdn.microsoft.com
Quote:
Thanx
>
Regards
Asit
>
Al Balmer
Guest
 
Posts: n/a
#3: Jul 17 '07

re: MAKEWORD( )


On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@example.com>
wrote:
Quote:
>asit skrev:
Quote:
>frnds,
>>
>i m new to this world.
>I use to make application out of scratch.
>>
>wVersionRequested = 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
Carramba
Guest
 
Posts: n/a
#4: Jul 18 '07

re: MAKEWORD( )


Al Balmer skrev:
Quote:
On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@example.com>
wrote:
>
Quote:
>asit skrev:
Quote:
>>frnds,
>>>
>>i m new to this world.
>>I use to make application out of scratch.
>>>
>>wVersionRequested = 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 ;-)
Quote:
I don't know how the OP found it ;-)
>
Al Balmer
Guest
 
Posts: n/a
#5: Jul 18 '07

re: MAKEWORD( )


On Wed, 18 Jul 2007 19:11:48 +0200, Carramba <carramba@example.com>
wrote:
Quote:
>Al Balmer skrev:
Quote:
>On Tue, 17 Jul 2007 20:21:07 +0200, Carramba <carramba@example.com>
>wrote:
>>
Quote:
>>asit skrev:
>>>frnds,
>>>>
>>>i m new to this world.
>>>I use to make application out of scratch.
>>>>
>>>wVersionRequested = 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?
Quote:
>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.
Quote:
>
Quote:
>I don't know how the OP found it ;-)
>>
--
Al Balmer
Sun City, AZ
Closed Thread