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
3 registered members (NewbieZorro, TipmyPip, 1 invisible), 19,045 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
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