Gamestudio Links
Zorro Links
Newest Posts
ZorroGPT
by TipmyPip. 03/06/26 07:18
zorro with ccxt?
by opm. 03/03/26 03:17
WFO Training with parallel cores Zorro64
by Martin_HH. 02/26/26 16:03
Zorro version 3.0 prerelease!
by TipmyPip. 02/25/26 16:38
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 5,237 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
the1, alx, ApprenticeInMuc, PatrickH90, USER0328
19200 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
A problem with 'dll_open' while using DLL #184505
02/18/08 15:44
02/18/08 15:44
Joined: Nov 2007
Posts: 37
L
LavenderSs Offline OP
Newbie
LavenderSs  Offline OP
Newbie
L

Joined: Nov 2007
Posts: 37
Hello, guys.
I want to use DLL's functions in the script written in lite-C. However, the DLL isn't in the directory of 'acknex_plugins' so I had to call 'dll_open' in the main function. But while running the script, a window with the title of 'Malfunction W1521' pops up and said '...can't load DLL'. So obviously the function in DLL is still unknown for the script. It's very strange that the initializing engine window told me 'DLLtest.dll opened'. Btw, the DLL is built with VC6. The codes are just like this:

var i = 0;
function add(a,b); //'add(a,b)' is implemented in DLLtest.dll

function main()
{
dll_open("\\DLLtest\\Debug\\DLLtest.dll"); //the DLLtest.dll is in the current sub-dir of '\DLLtest\Debug'
wait(1);
video_mode = 7;
screen_color.blue = 150;
i = add(2,2);
}

Many thanks for replying and helping me!!

Re: A problem with 'dll_open' while using DLL [Re: LavenderSs] #184506
02/18/08 17:02
02/18/08 17:02
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
dll_open is obsolete and in A7.08 replaced by PRAGMA_PLUGIN, but you can also use PLUGINDIR


smile
Re: A problem with 'dll_open' while using DLL [Re: D3D] #184507
02/19/08 05:15
02/19/08 05:15
Joined: Nov 2007
Posts: 37
L
LavenderSs Offline OP
Newbie
LavenderSs  Offline OP
Newbie
L

Joined: Nov 2007
Posts: 37
Thanks,D3D

Could you tell me the URL that downloading GameStudio A7.08?


Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | 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