Visual Basic help...
Posted: Sun May 15, 2005 12:32 pm
ok i was getting some help with some VB on some differant forums and some posts this:
i dont want to sound like a total idiot to thisg uy
lol
anyone know what to do itOK, try this:
Dim hFile As Integer
Dim VelocityFrom As Single
Dim VelocityTo As Single
Dim Damping As Single
hFile = FreeFile
Open "c:\temp\multiplayer.wind.meta" For Binary As hFile
Get hFile, , VelocityFrom
Get hFile, , VelocityTo
Get hFile, Val("&H18") + 1, Damping
Close
The first two values are read sequentially from the beginning of the file, so it's not necessary to specify an offset. To read the Damping value, however, I'm using the Val function to convert your hex offset to decimal, then adding 1, because VB file offsets are one-based. Any questions?

