🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: free.it.visual-basic
Article #282

Aiuto conversione file Hex

#282
From: David
Date: Thu, 14 Dec 2006 14:20
33 lines
1814 bytes
Ciao a tutti ho una serie di file contenenti dei dati, sono riuscito a 
vederli, ma non riesco a fare una conversione giusta, vi faccio un esempio.

Il formato � cos�:
Ora
1� dato
2� dato

L'ora � un numero che parte da mezzanotte e ogni minuto incrementa di 60

0.00.00 = 0
8.00.00 = 28800
8.01.00 = 28860
ecc.

Come faccio a convertirlo in ore?

il 1� dato se lo ricavo con LONG mi risulta giusto es. 4060, ma se il dato � 
con la virgola: 793515 invece dovrebbe essere 7935,15

il 2� dato � giusto LONG perch� non sar� mai con la virgola.

Per il primo dato ho provato a sostituire LONG con SINGLE, ma � sbagliato il 
risultato.

Abbiate pazienza ma non ci capisco niente.
Con un editor Hex ho notato che i dati vengono registrati sul file cos�

D30F0000 = 4051
D10F0000 = 4049

Vi ringrazio qualsiasi idea � ben accetta.
David 
Technical Details
Message-ID: <45815da0$0$4241$4fafbaef@reader1.news.tin.it>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: f94ee,9f32f23097081f6d,start
X-Google-Attributes: gidf94ee,public
X-Google-Language: ITALIAN,ASCII
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news3.google.com!news.glorb.com!feeder.news.tin.it!spool.news.tin.it!not-for-mail
From: "David" <davcom@tiscali.it>
Newsgroups: free.it.visual-basic
Subject: Aiuto conversione file Hex
Date: Thu, 14 Dec 2006 15:20:17 +0100
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
Lines: 35
Message-ID: <45815da0$0$4241$4fafbaef@reader1.news.tin.it>
Organization: TIN.IT (http://www.tin.it)
X-Comments: Please send technical notifications to newsmaster@tin.it
NNTP-Posting-Host: 87.0.70.68
X-Trace: 1166106017 reader1.news.tin.it 4241 87.0.70.68:63531
X-Complaints-To: Please send abuse reports to abuse@tin.it