Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/05/23 14:22
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
4 registered members (AndrewAMD, Quad, soulman3, Ayumi), 675 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
calling functions in a .DLL #117640
03/15/07 21:51
03/15/07 21:51
Joined: Dec 2003
Posts: 521
LazyDog Offline OP
User
LazyDog  Offline OP
User

Joined: Dec 2003
Posts: 521
I did a lot of work for the engine, NOT a plugin so I was using native data types instead of Var and using procedures or Void for routines that didn't need to return anything.

I took the code and created a dll to test using it from c-script then. No Problems, it all works as I expected it, I just happened to realize that some of those routines are procedures or Void.

What I'm curious about is that the manual says that all dll functions you write must me of the type: DLLFUNC var ldexpc(var x,var n).

I realized that I wrote dll routines that were not like this but they are found by the script and WORK! Am I just lucky and should change them or is this okay to leave as is?


www.LazyDogSoftware.com
Delphi SDK Homepage

A7 Pro 780
Delphi 5 through 2010
Re: calling functions in a .DLL [Re: LazyDog] #117641
03/16/07 07:11
03/16/07 07:11
Joined: Jul 2000
Posts: 27,967
Frankfurt
jcl Offline

Chief Engineer
jcl  Offline

Chief Engineer

Joined: Jul 2000
Posts: 27,967
Frankfurt
That's no luck, just an over-anxious manual. For A6 the dll functions can return any type - the restriction to var was for A5 plugins only. I'll fix this in the manual.


Moderated by  old_bill, Tobias 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1