Please enable JavaScript to view this site.

thinBasic Help Manual

Navigation: ThinBASIC Core Language > Script structure

External function declarations

Scroll Prev Top Next More

* * HELP & MANUAL PREMIUM PACK 4 DEMO VERSION * *

This documentation was styled with a demo skin from the Premium Pack 4 add-on for Help & Manual. The contents of the skin are encrypted and not configurable. You can only publish HM projects with this skin. You cannot edit it or change it.

This version is copyright and may only be used for local testing purposes. It may not be distributed.

Please purchase the full version of the Premium Pack to get the configurable skins and remove this notice. The package will also include the Toolbox configuration utility for Premium Pack skins.

 

Starting from version 1.0.7.0 thinBasic have the possibility to interface with standard Windows API (application programming interfaces) functions and with 3rd party DLLs.

Windows API is a set of functions and subroutines available in the Microsoft Windows operating systems.

 

To be able to use an API function or an external DLL function, it needs to be declared. Declaration will let thinBasic know about the syntax of the function/sub and the parameters the function/sub will need.

To declare a Windows API function or a 3rd party external DLL function, use DECLARE statement before the function is used inside your script.

 

In order to execute an API function/sub or a 3rd party external DLL function, follow the same rules as standard functions.

 

There are still some limitations regarding type of parameters thinBasic is able to pass to external functions.

If you are in trouble, please visit thinBasic forum and leave a message regarding the problem you are facing and possibly specify an exact example. We will do our best to try to solve the problem as soon as possible.

 

 

 

Created with Help+Manual 8 and styled with Premium Pack Version 4 © by EC Software