Article ID: 171496
Article Last Modified on 2/24/2004
170365 INFO: Visual Studio 97 Service Packs - What, Where, and Why
171554 INFO: Visual Basic 5.0 Fixes in Visual Studio 97 Service Pack 2
Option Explicit
Type config_rec
cnf_sync_byte As Integer
cnf_sysout As String * 8
cnf_mode As String * 8
cnf_period As Integer
cnf_cmp_print As Integer
cnf_version As String * 7
cnf_prog_id As Integer
cnf_cond_code As Integer
cnf_parity As Integer
End Type
Sub TestFile(Config As config_rec)
Dim FileNum As Integer
Dim cnfgfile As String
FileNum = FreeFile
cnfgfile = "Test.Dat"
On Error GoTo WriteErrHandler
Open cnfgfile For Binary As FileNum
Put #FileNum, 1, Config
Close #FileNum
Open cnfgfile For Binary Access Read As FileNum
Get #FileNum, 1, Config
Close #FileNum
Exit Sub
WriteErrHandler:
MsgBox "Error : " & Err & " (" & Error & ")"
End Sub
Dim Config As config_rec
TestFile Config
Keywords: kbbug kbfix kbvbp500sp2fix kbvs97sp2fix KB171496