Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, 1 invisible), 18,758 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 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