Gamestudio Links
Zorro Links
Newest Posts
Lapsa's very own thread
by Lapsa. 06/08/26 22:41
Stooq now requires an API key
by VHX. 06/08/26 20:14
ZorroGPT
by TipmyPip. 06/06/26 12:36
Zorro 3.01 recoded MMI function issue
by TipmyPip. 06/04/26 05:44
SGT_FW
by Aku_Aku. 05/31/26 11:05
Issues resuming trades on Demo account
by Martin_HH. 05/22/26 13:31
XTB
by pr0logic. 05/18/26 12:27
AUM Magazine
Latest Screens
Dorifto samurai
Shadow 2
Rocker`s Revenge
Stug 3 Stormartillery
Who's Online Now
1 registered members (TipmyPip), 3,688 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Seraphinang, Koti, curry, DeepxKalsi, Samed
19219 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Just a little test #108216
01/19/07 18:30
01/19/07 18:30
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline OP
Serious User
MichaelGale  Offline OP
Serious User
M

Joined: Aug 2005
Posts: 1,230
As the headline says, just a little experiment with the acknex sdk, c++ and c#



The system works rather easy, you can either access the acknex.dll directly or via a wrapper written in C++. My demo uses the second way:

C++ function:

Code:
 
extern "C" __declspec(dllexport) void Init(char* cmdline)
{
engine_open(cmdline);
engine_frame();
}



C# interface:

Code:
 
using System.Runtime.InteropServices;

public class AcknexInterface
{
[DllImport("AcknexInterface.dll")]
internal static extern void Init(String CmdLine);
}



AcknexInterface.dll is the product of the C++ code.

Some functions work very well, others not.


Your friendly mod is at your service.
Re: Just a little test [Re: MichaelGale] #108217
01/20/07 10:32
01/20/07 10:32
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
hehe acknex using C# if it worked well i'd defenatly support it


BASIC programmers never die, they GOSUB and don't RETURN.
Re: Just a little test [Re: bstudio] #108218
01/20/07 19:33
01/20/07 19:33
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline OP
Serious User
MichaelGale  Offline OP
Serious User
M

Joined: Aug 2005
Posts: 1,230
Here are the source files if someone is interested:

C++ Source
C# Class


Your friendly mod is at your service.
Re: Just a little test [Re: MichaelGale] #108219
01/21/07 09:16
01/21/07 09:16
Joined: Aug 2006
Posts: 652
Netherlands
bstudio Offline
User
bstudio  Offline
User

Joined: Aug 2006
Posts: 652
Netherlands
cool, maybe i will look into this development and start making some C# support for 3dgs, that would be cool


BASIC programmers never die, they GOSUB and don't RETURN.

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