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 / DLL - String table help

Author
Message
adr
23
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 18th Aug 2003 22:10 Edited at: 18th Aug 2003 22:10
I'm having trouble creating a string table entry for a function which neither takes, nor returns a value.

MYCOMMAND void yoyoyo ()
{
//let's just suppose for a moment
//that this is doing something
return;
}

What does the string table entry for this look like?

I've tried TEST FUNCTION?openLog@@YAXXZ as well as TEST FUNCTION?%openLog@@YAXXZ

but neither of these seem to work.

Any ideas?

I've tried

A wise man once said: "I know that I need codes but I dont know the codes"
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Aug 2003 22:20
Like this:

adr
23
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 18th Aug 2003 23:01
*slaps head*

like it says in the docs...

Ok. Just to double check my understanding though...

If I'm returning a value, the docs say I should stick in a bracket. Am I right in thinking that the first parameter descriptor after that bracket denotes the return type, the rest being the parameters? I tried reading the source to testcommands2 but it just confused me further.

A wise man once said: "I know that I need codes but I dont know the codes"
IanM
Retired Moderator
23
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 18th Aug 2003 23:20
Keeeerect!

Just wait 'til you get onto strings ...
MrTAToad
23
Years of Service
User Offline
Joined: 26th Aug 2002
Location: United Kingdom
Posted: 19th Aug 2003 00:53
Dont put him off Ian!


Logo design by Indi
Its better than a poke in the eye...
adr
23
Years of Service
User Offline
Joined: 21st May 2003
Location: Job Centre
Posted: 19th Aug 2003 12:13


It's ok - I'm done for the moment, but re-learning C is harder than learning it the first time The DLL is pretty simple at the moment, but when I'm done I'll release the source to both the DLL and its partner delphi app.

A wise man once said: "I know that I need codes but I dont know the codes"

Login to post a reply

Server time is: 2026-07-25 02:08:14
Your offset time is: 2026-07-25 02:08:14