smithles
Programmer
- Jul 15, 2002
- 18
Thank you in advance for your help.
I have tried a number of variations but all give the same result. Error. apparently nbr 458 I have essentially the same code in another program which works fine.
My system XP VB4
Dim flen&, MAXSTRING&, otstr$, filenameto$
MAXSTRING = 20000
filenameto = "C:\TAMP\TEMP.BIN" ' tried .TMP .MDB also
Open filenameto For Binary As ofp
otstr = ""
otstr = String$(MAXSTRING, 32) ' fill buffer wi blanx
Get ofp, 1, otstr ' was ofp
' the message says "Variable uses an OLE type not supported in Visual Basic"
I don't care if it is not supported in VB I want to read it in binary, it is MY problem. I can alter the file "type" if it will help. The data to "get" has correct contents and is the expected size (>MAXSTRING).
If I replace the "get" by a "put", the data changes then crashes before the next line executes.
I have tried a number of variations but all give the same result. Error. apparently nbr 458 I have essentially the same code in another program which works fine.
My system XP VB4
Dim flen&, MAXSTRING&, otstr$, filenameto$
MAXSTRING = 20000
filenameto = "C:\TAMP\TEMP.BIN" ' tried .TMP .MDB also
Open filenameto For Binary As ofp
otstr = ""
otstr = String$(MAXSTRING, 32) ' fill buffer wi blanx
Get ofp, 1, otstr ' was ofp
' the message says "Variable uses an OLE type not supported in Visual Basic"
I don't care if it is not supported in VB I want to read it in binary, it is MY problem. I can alter the file "type" if it will help. The data to "get" has correct contents and is the expected size (>MAXSTRING).
If I replace the "get" by a "put", the data changes then crashes before the next line executes.