Gamestudio Links
Zorro Links
Newest Posts
make a complaint
by EW_bytes. 11/26/26 23:00
FXCM => AVA Trade Plugin???
by Martin_HH. 11/25/26 21:59
No connection to MT4
by Martin_HH. 11/23/26 06:38
MinMax function on History t6 file
by LucasJoshua. 11/21/26 14:28
What are you working on?
by rayp. 11/20/26 18:10
contractUpdate() is filtering if >2 rows
by mistery. 11/09/26 12:06
New Zorro version 3.15
by jcl. 11/09/26 09:24
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (EW_bytes), 15,961 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EvanTJ, rht, MaliceTheMaker, Haitao_Ren, JimSimons
19250 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
dll #175075
12/28/07 13:03
12/28/07 13:03
Joined: Oct 2006
Posts: 2
S
scootix Offline OP
Guest
scootix  Offline OP
Guest
S

Joined: Oct 2006
Posts: 2
hello everybody,
i bought an interface card and want to use it with gamestudio. there are 3 examples (c++, delphi and visual basic) how to use the dll, but i always get an
error "cant open dll".i guess i have to convert the variables, but i dont know
how. is there anybody who could give me a hint?

Re: dll [Re: scootix] #175076
12/28/07 13:30
12/28/07 13:30
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Where is the dll located? What code or call do you have inside your c-script/lite-c script to load the engine extension?


smile
Re: dll [Re: D3D] #175077
12/28/07 13:53
12/28/07 13:53
Joined: Oct 2006
Posts: 2
S
scootix Offline OP
Guest
scootix  Offline OP
Guest
S

Joined: Oct 2006
Posts: 2
i put the dll in my game folder and the main folder of gs6.the code is: var_nsave usbHandle;
string USBDllName = <K8061.dll>;
starter USBMain
{
usbhandle=dll_open (USBDllName);
wait(1);
}

Re: dll [Re: scootix] #175078
12/28/07 13:57
12/28/07 13:57
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Not sure if you need the dll handle. Anyways. If your dll is inside the same directory as your C-Script. Try adding Code:
PLUGINDIR = "."; // dll in root

to the top of your script. You will need to add a dllfunction declaration in your script as well. If you don't want to add plugindir in your script during development. You can also copy the dll to your acknex_plugins directory. It will be loaded every time even if you not really need the dll. Your choice.

Also when you want to bind the dll with your game/application. You can put the Code:
BIND "yourdllname.dll";

in the script. That way it will be put in the correct directory when you publish the project.


smile
Re: dll [Re: D3D] #175079
12/28/07 14:51
12/28/07 14:51
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
afaik you cannot use any dll with gs. You have to write an engine plugin that represents a wrapper for the dll you bought.


Your friendly mod is at your service.
Re: dll [Re: MichaelGale] #175080
12/28/07 15:18
12/28/07 15:18
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
Quote:

afaik you cannot use any dll with gs. You have to write an engine plugin that represents a wrapper for the dll you bought.




I think you don´t have to create a special dll if you use lite-c

Re: dll [Re: Slin] #175081
12/28/07 15:59
12/28/07 15:59
Joined: Apr 2006
Posts: 1,551
Netherlands
D3D Offline
Serious User
D3D  Offline
Serious User

Joined: Apr 2006
Posts: 1,551
Netherlands
Ok I see. I thought he used the sdk of his "interface card" and combined that with the plugin_sdk to program a engine extension.


smile
Re: dll [Re: D3D] #175082
12/29/07 04:22
12/29/07 04:22
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
True, Slin. His code looks a lot like C-Script though


Your friendly mod is at your service.
Re: dll [Re: MichaelGale] #175083
12/29/07 13:31
12/29/07 13:31
Joined: May 2005
Posts: 2,713
Lübeck
Slin Offline
Expert
Slin  Offline
Expert

Joined: May 2005
Posts: 2,713
Lübeck
And old syntax
It is:
function Name_startup()
{
//...
}

And do you have to explicitly open the dll in your code again?
Anyways, he has to use lite-c or create an own dll...

Re: dll [Re: Slin] #175084
12/30/07 11:43
12/30/07 11:43
Joined: Sep 2003
Posts: 9,859
F
FBL Offline
Senior Expert
FBL  Offline
Senior Expert
F

Joined: Sep 2003
Posts: 9,859
Quote:



I think you don´t have to create a special dll if you use lite-c




I'm not sure about that one yet.
I tried, but couldn't get it to run (defined functions were not found)until I wrote a wrapper DLL using the SDK...

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

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