Hello,
I have made another sample code to show how to use TrIDLib with PureBasic, using prototypes.
I've made it because using prototypes is faster and it provides a better control of passed parameters, and because calling a function with its memory address is faster than using CallFunction.
Moreover, using prototypes allows to use every types of parameters (using CallFunction doesn't allow to use string, float, double or quad). Prototype allows using of string, float, double or quad, for parameters as for return value.
Here is a link to download it:
http://dl.dropbox.com/u/1185217/DemoTrIDLibPureBasic.zipI hop this sample code will help.