I have a program that works well in PB 3.94 by calling Uni2Ascii and Ascii2Uni (COMLIB). I am struggling with some of the conversion to PB4.
I used the Interface Generator from aXend to produce this:
Code: Select all
Interface ISDM3 Extends IDispatch
GetModelStringForDevice(a,b)
EndInterface
Code: Select all
oSDM3\GetModelStringForDevice(Ansi2Uni(Devices()\Address), @Model)
Model_String.s = Uni2Ansi(Model)
Code: Select all
GetModelStringForDevice(a.p-BSTR,b.p-ascii)
Code: Select all
oSDM3\GetModelStringForDevice(Devices()\Address, Model_String.s)

Thank you,
Rand