Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, juanex, Grant), 1,018 guests, and 8 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 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 | 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