Page 1 of 1

Loading and saving configuration with Delphi

Posted: Tue Mar 27, 2018 3:29 pm
by mpaul79
Hello

I was not able to get the functions "TwainLoadConfiguration(Byte[])" and "TwainSaveConfiguration(Byte[])" with Delphi to work.
Could you please provide me some Delphi example code how to call the function with the needed PSafeArray parameter?
I did not found any sources on the internet that helped me handling with this kind of data type.
Unfortunatelly I can't use the file based version of this function because of compatibility reasons.
I guess this functions are using the (DG_CONTROL / DAT_CUSTOMDSDATA / MSG_GET) triplet internally, am I right?

Regards

Marco

Re: Loading and saving configuration with Delphi

Posted: Thu Jan 17, 2019 4:34 pm
by Gabriela
Hello,

Maybe you can find this useful: http://blog.virtec.org/2008/07/the-myst ... safearray/