Article View: free.it.visual-basic
Article #11Re: Big Endian e Little Endian
From: Piero
Date: Sat, 18 Oct 2003 13:48
Date: Sat, 18 Oct 2003 13:48
56 lines
2370 bytes
2370 bytes
Nerone ha scritto: > "Piero" <ghale@no_spam_libero.it> ha scritto nel messaggio > news:1A6kb.44952$vO5.1648143@twister1.libero.it... > >>Ciao ragazzi, >>potete per cortesia aiutarmi nella conversione da Big Endian in Little >>Endian? >> >>Avrei bisogno di qualche suggerimento per scrivere un piccolo programma >>in Visual Basic che mi aiuti a convertire in un verso e nell'altro degli >>interi. >> >>Potete aiutarmi, per favore? > > > potresti ricorrere agli UDT: > > Type tLittleEndian > Byte0 As Byte > Byte1 As Byte > Byte2 As Byte > Byte3 As Byte > End Type > > Type tBigEndian > Byte3 As Byte > Byte2 As Byte > Byte1 As Byte > Byte0 As Byte > End Type > > Private Type tLong > x As Long > End Type > > che puoi usare cosi': > Dim lE As tLittleEndian > Dim bE As tBigEndian > Dim xL As tLong > > xL.x = &H11223344 > > LSet lE = xL > LSet bE = xL > o > LSet bE = lE > > HTH > > bye > r > B�, non c'� che dire. Prover� ad implementare questi DataType e vi far� sapere. Grazie, Piero.
Technical Details
Message-ID:
<xwbkb.48364$e6.1678167@twister2.libero.it>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mailReferences:
<1A6kb.44952$vO5.1648143@twister1.libero.it> <%Wakb.11512$e5.404523@news1.tin.it>Show Full Headers
Complete Article Headers
X-Google-Language: ITALIAN,ASCII X-Google-Thread: f94ee,19012c8c7cdbf26a X-Google-Attributes: gidf94ee,public X-Google-Thread: 106fd2,19012c8c7cdbf26a X-Google-Attributes: gid106fd2,public X-Google-ArrivalTime: 2003-10-18 06:48:13 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news.mailgate.org!nntp.infostrada.it!twister2.libero.it.POSTED!not-for-mail From: Piero <ghale@no_spam_libero.it> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; it-IT; rv:1.4) Gecko/20030624 X-Accept-Language: it, en, en-us MIME-Version: 1.0 Newsgroups: free.it.visual-basic,free.it.programmazione.visualbasic Subject: Re: Big Endian e Little Endian References: <1A6kb.44952$vO5.1648143@twister1.libero.it> <%Wakb.11512$e5.404523@news1.tin.it> In-Reply-To: <%Wakb.11512$e5.404523@news1.tin.it> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Lines: 57 Message-ID: <xwbkb.48364$e6.1678167@twister2.libero.it> Date: Sat, 18 Oct 2003 13:48:13 GMT NNTP-Posting-Host: 62.98.232.95 X-Complaints-To: abuse@inwind.it X-Trace: twister2.libero.it 1066484893 62.98.232.95 (Sat, 18 Oct 2003 15:48:13 MET DST) NNTP-Posting-Date: Sat, 18 Oct 2003 15:48:13 MET DST Organization: [Infostrada]