ScriptControl by ts-soft

Windows specific forum
Little John
Addict
Addict
Posts: 4807
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

ScriptControl by ts-soft

Post by Little John »

Where can I download the source code?
I found a download link in this post on the German forum, but that link is outdated.

Regards, Little John
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: ScriptControl by ts-soft

Post by ts-soft »

ScriptControl

Greetings - Thomas
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Little John
Addict
Addict
Posts: 4807
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: ScriptControl by ts-soft

Post by Little John »

Thank you very much, Thomas!

I downladed it, and tried the example "Date.pb" -- I just added at the beginning the line

Code: Select all

XIncludeFile "..\Source\ScriptControl.pb"
When running that example, I get an error in ScriptControl.pb on line 345

Code: Select all

ProcedureDLL SCtr_SetLanguage(Language.s)
  ProcedureReturn ScriptControl\put_Language(Language)   ; << error
EndProcedure
The error message is

Code: Select all

Ungültiger Speicherzugriff (Lesefehler an der Adresse 0)
Same problem e.g. with "test3.pb".
I am using PB 4.51 on Windows XP x86.

Regards, Little John
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Re: ScriptControl by ts-soft

Post by ts-soft »

The Source is to compile as UserLib!

A UserLib have a Init and a End Function.
If you use the source as Include, you have to add:

Code: Select all

ScriptControl_Init()
...
...
ScriptControl_End()
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
Little John
Addict
Addict
Posts: 4807
Joined: Thu Jun 07, 2007 3:25 pm
Location: Berlin, Germany

Re: ScriptControl by ts-soft

Post by Little John »

Oh, I see. Thank you!
Post Reply