I've done the modifications inside COMLIB and changed LoadLibrary to LoadLibraryA in the 2 following lines
Code: Select all
SYS "LoadLibraryA","OLE32.DLL" TO O%
and
Code: Select all
SYS "LoadLibraryA","OLEAUT32.DLL" TO O%
That seemed to do the trick. My test program, this time executed in the BBCSDL environment and with this ported COMLIB, runs correctly reading and writing strings and floats and writing a Boolean value to Excel, Open, Close and Save the Excel file and finally releases the obsolete objects.
It works exactly the same as with BB4W (the proof of the pudding !!

).
Unfortunately, on your side you cannot run the test program as you don't have Microsoft Office installed.
I'll now give this a rest for a day or so and then try to bring my production program to BBCSDL. Apart from COMLIB that one relies on the WINLIB, WINLIB2, WINLIB5, STRINGLIB, FNUSING, NOWAIT libraries. Some of these have not been ported yet so I'll have to do some more porting. We'll see ...
In hindsight this porting of COMLIB was extremely easy and proof of the quality of BBCSDL.
But I couldn't have done it without your advice. Thank you!!
Kind regards,
Eddy