Imported functions. String return.

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Hroudtwolf
Addict
Addict
Posts: 803
Joined: Sat Feb 12, 2005 3:35 am
Location: Germany(Hessen)
Contact:

Imported functions. String return.

Post 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
User avatar
ts-soft
Always Here
Always Here
Posts: 5756
Joined: Thu Jun 24, 2004 2:44 pm
Location: Berlin - Germany

Post 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
PureBasic 5.73 | SpiderBasic 2.30 | Windows 10 Pro (x64) | Linux Mint 20.1 (x64)
Old bugs good, new bugs bad! Updates are evil: might fix old bugs and introduce no new ones.
Image
remi_meier
Enthusiast
Enthusiast
Posts: 468
Joined: Sat Dec 20, 2003 6:19 pm
Location: Switzerland

Post by remi_meier »

He meant "Import Libs" with DLLs.
Athlon64 3700+, 1024MB Ram, Radeon X1600
Post Reply