TrIDLib: another sample code for PureBasic

Started by Gansta93, September 09, 2010, 06:58:25 PM

Previous topic - Next topic

Gansta93

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.zip

I hop this sample code will help. :)

Mark0

Thanks!
Will update the samples package at the first occasion.