I've locked down this sticky post because I will use it only to announce new Delphi SDK interface.
Thanks
Eros
Please use this new SDK to develop thinBasic modules using Turbo Delphi.
Also download thinCore.dll if not already published as public preview or stable version.
Regards
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
I've locked down this sticky post because I will use it only to announce new Delphi SDK interface.
Thanks
Eros
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thanks Eros,
is the thincore.dll needed? It is a pretty old one, or?
And why the Delphi postfix in LoadLocalSymbols_Delphi and not just LoadLocalSymbols?
No
To instruct thinCore that that module is developd using Delphi and adapt string parameter passing.And why the Delphi postfix in LoadLocalSymbols_Delphi and not just LoadLocalSymbols?
thinCore search for LoadLocalSymbols and if not found search for LoadLocalSymbols_Delphi
Attached the latest Delphi SDK I had in my computer.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Thank you,
is there such a prefix for FreePacal too?
Delphi/Pascal is the same for the moment. It was just an experiment because I liked Pascal language.
Also thinCore.pas is just a subset of all possible thinCore exported functions because I was not able to directly manage BSTR strings in Pascal.
But if you find a away to handle BSTR strings without special function conversion, we can use the full set of thinCore functionalities.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
From FreePascal 2.4 and up, WideStrings should be compatible with BSTR.
Btw. this topic is closed.
Thread opened again.
Yes, I know but from my tests, this issue is still a problem and creates a GPF: http://stackoverflow.com/questions/9...ue-for-interop
Maybe it can be bypassed using a BYREF parameters but in any case we need to develop new special functions in Core for all functions returning a thinBasic String (BSTR).
Last edited by ErosOlmi; 08-04-2016 at 11:12.
www.thinbasic.com | www.thinbasic.com/community/ | help.thinbasic.com
Windows 10 Pro for Workstations 64bit - 32 GB - Intel(R) Xeon(R) W-10855M CPU @ 2.80GHz - NVIDIA Quadro RTX 3000
Did I got it to work? What do you think?
To create the DLL I simple called FPC like this:
..\fpc\2.6.4\bin\i386-win32\fpc.exe -Mdelphi -ve thinbasic_MyFreePascal.pas
Bookmarks