It is possible to load a message definition file from memory in
Visual Basic. However, you need to be careful the you are not
corrupting the file using Visual Basic's built-in unicode processing.
The following code fragment shows how you can use this API using
InputB which is routine for reading a binary file in Visual Basic:
fileLength = FileLen(currFileName)
fileNum = FreeFileOpen currFileName For Binary Access Read As #fileNum
OnErrorGoTo loadFailedCloseFile
fileData = InputB(fileLength, fileNum)
OnErrorGoTo loadFailed
' tell the engine to load the file's bytes as a string
Engine.InternalEngine.LoadFromMemory fileData