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.

DLL Talk / Optional Return Values

Author
Message
Steele
15
Years of Service
User Offline
Joined: 25th Oct 2003
Location: Somewhere over the rainbow
Posted: 17th Jul 2009 20:22
I'm writing a DLL in PureBasic (without the plug in) and have it working but one thing that would give it the finishing touch is to make the return parameter optional. For instance:



How would I go about doing this?

Thanks,

Steele

http://www.lanningsoftware.com
Your source for Games and Entertainment
IanM
Retired Moderator
17
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jul 2009 21:02
You wouldn't believe how easy it is - you simply have a resource string for each of the command and the function, and then use the same PB function for each one.

That won't work correctly for strings though, so you'll need a PB function for each function and command pair.

Steele
15
Years of Service
User Offline
Joined: 25th Oct 2003
Location: Somewhere over the rainbow
Posted: 17th Jul 2009 21:47
Thanks IanM, this sounds so easy that even I can do it!

http://www.lanningsoftware.com
Your source for Games and Entertainment

Login to post a reply

Server time is: 2019-10-19 08:49:02
Your offset time is: 2019-10-19 08:49:02