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 / Can anyone tell me why my stuff phails O_o

Author
Message
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 17th Jul 2006 01:07
As a test, I just made a very VERY simple DLL to see if I can make that work with
that, and it tells me "Cannot determine parameter type on line 2". Ack .

The DLL:


The string table entry:


Does anyone have any idea why DBP (or CPP6) hates me? o.O I did it just like the example function, except the constant MYCOMMAND as "__declspec(dllexport)"; instead I just wrote that manually.

Then I paste it into
and it still gives me that loathed error

Please and thanky

FunkyStickmen: Battle of the Races (1%)
Three Score
20
Years of Service
User Offline
Joined: 18th Jun 2004
Location: behind you
Posted: 17th Jul 2006 07:23
it might be because you misspelt fail lol but


your missing a variable in your stringtable

example
"blah[%F0%blah"
is AS FLOAT blah()

"blah[%FF%blah"
is AS FLOAT blah(AS FLOAT)

"blah%0%blah"
is blah with no pare,eters or returns

IanM
Retired Moderator
22
Years of Service
User Offline
Joined: 11th Sep 2002
Location: In my moon base
Posted: 17th Jul 2006 12:27
1. Read the docs
2. Don't create another post for a question you have already asked!

For free Plug-ins and source code http://www.matrix1.demon.co.uk
Image All
18
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 17th Jul 2006 19:19
Ok Three Score, I think I get what that means.. Does %F0% mean it returns something with no argument? The docs never showed a second thingy between them %s...

Sorry Ian, last time I looked the other thread was locked with no reason I could tell

FunkyStickmen: Battle of the Races (1%)
Ianhfar
20
Years of Service
User Offline
Joined: 8th Jul 2004
Location: UK
Posted: 18th Jul 2006 10:31
Image All

L = Integer
F = Float
S = String
O = Double Float (capital o)
R = Double Integer (capital r)
D = Boolean, BYTE, WORD and DWORD
0 = Zero Character (no param)

your are expecting an int to be returned so you need the following in your string table

GET NUMBER[%L%?getInteger@@YAHXZ

the [ brackets directly after the name indicates a return value is expected, all variables are defined within the % marks.


Ian

Login to post a reply

Server time is: 2024-11-22 12:28:38
Your offset time is: 2024-11-22 12:28:38