chazzie Posted February 24, 2004 Report Posted February 24, 2004 I'm trying to get local time (hours and minutes), but I sometimes get a very high number, like 14453. Sometimes I get the correct hour and minute, like Hr=14 Min=22 Here's how I read FSUIPC: If FSUIPC_Read(&H238, 1, VarPtr(Tmp), dwResult) Then If FSUIPC_Process(dwResult) Then LocHr = Tmp End If End If Any thoughts?
rickalty Posted February 24, 2004 Report Posted February 24, 2004 Dim auiTime() As Byte ReDim auiTime(3) FSUIPC_Read(&H238, 3, VarPtr(auiTime(1)), dwResult) FSUIPC_Process(dwResult) lblClock.Caption = Format(auiTime(1), "00") & ":" & _ Format(auiTime(2), "00") & ":" & _ Format(auiTime(3), "00") Straight out of the SDK Richard
chazzie Posted February 24, 2004 Author Report Posted February 24, 2004 Thanks a bunch rickalty! Seems like the only difference was to dim the value as Byte rather than Integer. My project moves on :D Patrik
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now