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 / Need C++ calling structure converted to DarkBasicPro to help another

Author
Message
TRS80Model1
23
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 14th Apr 2003 03:20

Any help would be appreciated.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Apr 2003 03:51
an explaination of the problem would equally be apriciated

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?
funboy
23
Years of Service
User Offline
Joined: 13th Apr 2003
Location:
Posted: 14th Apr 2003 04:01
Im guessing you want to call these functions from within dbpro. You will have to wrap them in a dll and then load the dll into darkbasic. Ive never done this so somebody else can tell you what format the dll functions need to be in.
TRS80Model1
23
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 14th Apr 2003 04:02
I need this converted to dbpro so he can call these funtions from dbpro. I don't know dbpro well enough to do it. How would you call those structures from dbpro in other words?
TRS80Model1
23
Years of Service
User Offline
Joined: 2nd Feb 2003
Location: - Please Select -
Posted: 14th Apr 2003 04:03
Um, I have the dll, just need to be able to call them and get the data back.
Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Apr 2003 06:22
first place to look would be in the "Help\Documents\Third Party Commands.htm" within your DBpro folder.

if you want to call these within DBpro then you need to setup a string resource, find the decorated names within the DLL itself (can do with with notepad) and then set them up within the string table, conforming to the TPC. Then recompile, else you'll want to use the load dll and call dll commands.
either way you will need the decorated names.

if you look in the "Compiler\User-Plugins\" directory you'll see a file marked MakeGame, it should return whatever decoarated commands are in the DLL if you change the DLL it checks command for.

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?
swdave
23
Years of Service
User Offline
Joined: 6th Oct 2002
Location: United States
Posted: 14th Apr 2003 09:51
Hi,

Thats an interesting dll but I have a problem with the name "iodll.dll".

You might try this WinIO.dll from http://www.internals.com

You would have to do your own bit fiddle functions or you can use it as a starting point on converting the IO dll

Other Threads:

http://www.realgametools.net/forums/index.php?board=14;action=display;threadid=14640

http://www.darkbasicpro.com/apollo/view.php?t=8469&b=1

If you want to create the plugin then just folllow the API instructions to create the string table.



Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 14th Apr 2003 11:42
ahh so thats what the .def file is for... i always wondered

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?

Login to post a reply

Server time is: 2026-07-11 22:24:24
Your offset time is: 2026-07-11 22:24:24