[icq-devel] vb



Alex Demchenko alex at ritlabs.com
Wed Jun 5 10:19:26 CEST 2002


Hello -,

Wednesday, June 5, 2002, 5:48:32 AM, you wrote:

> does anyone have functions for Reverse Byte Order in VB 
> ( for making Big Endian , Little Endian , etc.. )

I think it's easy to modify theese functions for using in VB:

//Big Endian->Little Endian convertion on Words
function Swap16(Value: Word): Word; assembler;
asm
  rol   ax,8
end;

//Big Endian->Little Endian convertion on DWords
function Swap32(Value: DWord): DWord; assembler;
asm
  bswap eax
end;

-- 
Best regards,
 Alex                            mailto:alex at ritlabs.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1067 bytes
Desc: S/MIME Cryptographic Signature
Url : http://vic20.blipp.com/pipermail/icq-devel/attachments/20020605/5c24c6f8/attachment.bin 


More information about the icq-devel mailing list