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 a value from DLL

Author
Message
Habatar HIE
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Spain
Posted: 10th Apr 2003 19:52
Hi,

I are programing ha DLL, but I have one proble.
If call de dll whit "call dll" command, how can return a value qhit this command?

Help me, please
Thnaks
Habatar, director of HIE Entertainment programing goup.
Web comming soon
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 20:36
return = call dll 1,"MyFunction"

its strange how the DBpro help doesn't have this, i'd suggest to anyone who has problems figuring out certain commands download the DarkBasic 1.13 help as it has much better explainations of the functions... but a few have been altered in thier interaction with other commands (just a warning)

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Apr 2003 20:43
It does have it : return=call dll(1,"MyFunction")

Although the reference manual doesn't show that you can use it like a function ...
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 20:47
thats at the bottom isn't it Ian? because i've reinstalled the IDE and found that the earlier versions didn't have that
the original manual is still the best source for explaining the command imo

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 10th Apr 2003 20:57
Oops, misread your post Raven - In effect I just repeated you :-s

It's been a hard day - a five hour meeting ...
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 10th Apr 2003 22:17
christ on a bike... i don't think i could stand a 5hr meeting lol

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Rob K
Retired Moderator
23
Years of Service
User Offline
Joined: 10th Sep 2002
Location: Surrey, United Kingdom
Posted: 10th Apr 2003 23:32
Just one thing Habatar, there must be brackets around the parameters, ie. like IanM's example, rather than Raven's.

Current Project: Retro Compo. Entry.
Habatar HIE
23
Years of Service
User Offline
Joined: 10th Jan 2003
Location: Spain
Posted: 11th Apr 2003 18:02
Hi,

Well, its all right,
Now work correctly,
Thanks to all
In some days i will public my DLL, wait sincerly,
Thanks

Habatar, director of HIE Entertainment programing goup.
Web comming soon

Login to post a reply

Server time is: 2026-07-11 12:01:45
Your offset time is: 2026-07-11 12:01:45