H
HONOREDANCESTOR
I tried to read a structure from a file, but I got this error message
before I could compile it:
"Error 103 Option Strict On disallows narrowing from type
'System.ValueType' to type 'OptionsRecordType' in copying the value of
'ByRef' parameter 'Value' back to the matching argument."
The 3 lines of code are:
If My.Computer.FileSystem.FileExists(strPath) Then
FileOpen(1, strPath, OpenMode.Binary)
FileGet(1, OptionsRecord)
The third line is the one that causes the trouble. 'OptionsRecord' is
a structure with 2 integer fields.
I can't find any help on this in MSDN. If you can help, its certainly
appreciated.
before I could compile it:
"Error 103 Option Strict On disallows narrowing from type
'System.ValueType' to type 'OptionsRecordType' in copying the value of
'ByRef' parameter 'Value' back to the matching argument."
The 3 lines of code are:
If My.Computer.FileSystem.FileExists(strPath) Then
FileOpen(1, strPath, OpenMode.Binary)
FileGet(1, OptionsRecord)
The third line is the one that causes the trouble. 'OptionsRecord' is
a structure with 2 integer fields.
I can't find any help on this in MSDN. If you can help, its certainly
appreciated.