Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / return value from a dll???

Author
Message
Kale
21
Years of Service
User Offline
Joined: 8th Sep 2002
Location: United Kingdom
Posted: 5th Nov 2002 23:11
can a function from a dll return a result to DPPro? i.e.

What the flame does not consume, consumes the flame.
----------------------------------------------------------------------
AMD XP2100+, Geforce4Ti 4400, 512Mb DDR, Abit KX7, WinXP Pro
swdave
21
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United States
Posted: 6th Nov 2002 00:25
use parentheses.

value = call dll (1, "getValue")
print value

MrTAToad
21
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 6th Nov 2002 00:25
Yes, but not floats at the moment - everything else can be returned.

Yes, I really am THAT good...
Shadow Robert
21
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 6th Nov 2002 00:28
yeah ... whole point in the DLLs isn't to take away access but give you deeper level

load DLL "D3D.dll",1
vCardID = call DLL(1,"_D3DADAPTER_IDENTIFIER8",Driver)
sCardID$ = chr$(vCardID)
... on my system should come back with "Detonator 4 Quattro 64bit" - althought you'd probably have to bitshift the 256 byte value

that is considering if i remember my DLL calls for DB right - perameters are sperated by a space i think

Anata aru kowagaru no watashi!

Login to post a reply

Server time is: 2024-04-20 01:31:13
Your offset time is: 2024-04-20 01:31:13