ich versuche mich gerade an COMatePlus. Einiges habe ich zum laufen bekommen, jedoch habe ich ein Verständnisproblem.
Einen lauffähigen Code zu posten ist schwierig, hoffe jedoch ihr könnt mir auch so weiterhelfen.
Folgendes sei gegeben:
Wenn ich es richtig verstanden habe, sollte es so aussehen:OpenStream(Buffer: VARIANT)
Reads a file from a buffer (vs. from a file or URL). This is useful if you intend to manage the binary data yourself. The VARIANT must be a “byte array” filled with the binary data of the file. Returns TRUE if the file was read from the buffer correctly. FALSE if the buffer is invalid.
Code: Alles auswählen
Define.COMateObject com
com = COMate_CreateObject("COM_BlaBlubb_Init")
Define *Buffer = ?TestFile
com\GetIntegerProperty("OpenStream(" + Str(*Buffer) + " AS VARIANT BYREF)") ; geht nicht
com\GetIntegerProperty("OpenStream(" + Str(*Buffer) + " BYREF)") ; geht nicht
com\GetIntegerProperty("OpenStream(" + Str(*Buffer) + ")") ; geht nicht
DataSection
TestFile:
IncludeBinary "TestFile"
;Data.b $00 ; Nur zum testen
EndDataSection
Bin für jeden Rat dankbar.
Edit: "TestFile" ist eine UTF8-XML