I am using Visual Studio 2005 to develop the application and would like to open a binary file that was saved in a Visual Basic 6 application. The binary
file contains one record: a user defined type.
Using:
Imports System.Runtime.Serialization.Formatters.Binary
fStream = New FileStream(strFilename, FileMode.Open)
strucThisproject = CType(binFormat.Deserialize(fStream), _
ProjectStruct)
This catches the message:"The input stream is not a valid binary format. The
starting contents (in 'bytes) are:
00-00-01-00-31-87-C7-CE-25-8A-00-00-00-33-33-33-33 ..."
I have also tried creating a com dll in visual basic 6 which extracts the
record from the file and passes it onto the equivalent structure type in vb.net.
This catches the message: "Value of type MyServer.udtProject' cannot be
converted to VBNetApp.Values.ProjectStruct"
file contains one record: a user defined type.
Using:
Imports System.Runtime.Serialization.Formatters.Binary
fStream = New FileStream(strFilename, FileMode.Open)
strucThisproject = CType(binFormat.Deserialize(fStream), _
ProjectStruct)
This catches the message:"The input stream is not a valid binary format. The
starting contents (in 'bytes) are:
00-00-01-00-31-87-C7-CE-25-8A-00-00-00-33-33-33-33 ..."
I have also tried creating a com dll in visual basic 6 which extracts the
record from the file and passes it onto the equivalent structure type in vb.net.
This catches the message: "Value of type MyServer.udtProject' cannot be
converted to VBNetApp.Values.ProjectStruct"