I'm trying to write a DLL to process a stream from Navision, but I just can't get it to work when I try to receive the stream from Navision.
I think it is up to the VarType wrong, but how can I convert it?
IF ISCLEAR(Viewer) THEN BEGIN
IF NOT CREATE(Viewer) THEN BEGIN
IF Item.Picture.HASVALUE THEN BEGIN
// VARIANT_BOOL _stdcall LoadPicture([in] VARIANT objStream);
function TNavisionImageView.LoadPicture(objStream: OleVariant): WordBool;
Stream := TMemoryStream.Create;
OleVariantToMemoryStream(objStream, Stream ) <== function/procedure I'am looking for
Thanks and regards.