Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
6 registered members (AndrewAMD, Ayumi, degenerate_762, 7th_zorro, VoroneTZ, HoopyDerFrood), 1,268 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
LucasJoshua, Baklazhan, Hanky27, firatv, wandaluciaia
19053 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