I am curious to learn how the Pure Basic DLL works, how do PB scripts find the DLL ? Is there maybe a plugin for Lazarus Pascal?
Purebasic and Powerbasic samples were provided with hpwDllCall.
This early plugin show how to communicate with Dll's that follow one calling convention using a pchar calling Parameter with a pchar return value.
You can use any programming enviroment as long it can produce this Kind of win32 dll.
- Code: Select all
hpwDllCall "[PUBDIR]test.dll" "test" "[TextEntry1]" "DllRetvar"
The pubdir-variable tells the plugin where to find the called dll.
There was a diskussion and plugin template for freepascal here:
viewtopic.php?f=3&t=19962&hilit=freepascal&start=15The pdscript plugin (and standalone) is special and unique, since you can do dynamic GUI-Scripting. Embedding newlisp is only one of ist powerfull possiilities.
And when we are on languages, you can also take a look at hpwRuby.
My most used scripting-dialects are neoscript itself and newlisp. Plus Delphi for compiled Tools.
Regards