Page 1 of 1

Imported functions. String return.

Posted: Sun Jan 07, 2007 10:19 pm
by Hroudtwolf
Hello Fred,

I have a great wish for a future pb-version.
Please, make string-return for imported functions possible.

PeekS is not really comfortable to get a string-return.

Now:

Code: Select all

Import "test.lib"
  GetData.l (lNumber.l)                                
EndImport

text.s = PeekS (GetData.s (1))
Better:

Code: Select all

Import "test.lib"
  GetData.s (lNumber.l)                                
EndImport

text.s = GetData.s (1)

Best regards :)

Hroudtwolf

Posted: Sun Jan 07, 2007 11:12 pm
by ts-soft
this feature is really implemented in pb, does this not work for you?
http://ts-soft.eu/dl/test.lib.zip

best regards

Posted: Sun Jan 07, 2007 11:14 pm
by remi_meier
He meant "Import Libs" with DLLs.