IonicWind Software

Aurora Compiler => Coding Help - Aurora 101 => Topic started by: Haim on August 23, 2008, 08:23:30 AM

Title: makeLong, MakeLparam etc.
Post by: Haim on August 23, 2008, 08:23:30 AM
Hello,
can anyone show me AURORA equivalents for makelong, MakeLparam, makeword, etc.??
Any help would be appreciated.

Haim
Title: Re: makeLong, MakeLparam etc.
Post by: sapero on August 25, 2008, 02:17:20 AM
The MAKELONG macro creates a LONG value by concatenating the specified values. MAKELPARAM works in same way, but returns another 32-bit type - LPARAM.
DWORD MAKELONG(
   WORD wLow,
   WORD wHigh
);


sub MAKELONG(unsigned word wLow, unsigned word wHigh),unsigned int
{
  return wLow | (wHigh << 16);
}


Makeword takes two bytes and returns unsigned word. The 'shift' is 8 instead 16.
Title: Re: makeLong, MakeLparam etc.
Post by: Haim on August 25, 2008, 02:32:31 AM
Sapero,
Thank you very much for your explanation1

Haim