Gamestudio Links
Zorro Links
Newest Posts
zorro 64bit command line support
by 7th_zorro. 04/20/24 10:06
StartWeek not working as it should
by jcl. 04/20/24 08:38
Data from CSV not parsed correctly
by jcl. 04/20/24 08:32
Zorro FIX plugin - Experimental
by jcl. 04/20/24 08:30
folder management functions
by VoroneTZ. 04/17/24 06:52
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (7th_zorro), 529 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
EternallyCurious, howardR, 11honza11, ccorrea, sakolin
19047 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 29 of 32 1 2 27 28 29 30 31 32
Re: C# wrapper - RELEASE [Re: DJBMASTER] #331572
07/05/10 06:58
07/05/10 06:58
Joined: Jul 2010
Posts: 11
Spain
S
skeu Offline
Newbie
skeu  Offline
Newbie
S

Joined: Jul 2010
Posts: 11
Spain
Good morning to all laugh
First, thank you for your help, it was great laugh
I have one question about c# wrapper: is there any way to import a proyect from liteC to C-Sharp?
I would like to know this because i need to interoperate with a software developed.

Thank you in advance.

Re: C# wrapper - RELEASE [Re: skeu] #331573
07/05/10 07:35
07/05/10 07:35
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
I think you'll have to start again using C#. Even if you could import a lite-c script, you would have to change a lot of things anyway.

The best thing to do it to write a little utility that will replace the syntax in your lite-c script to C# syntax.

Last edited by DJBMASTER; 07/05/10 07:36.
Re: C# wrapper - RELEASE [Re: DJBMASTER] #331575
07/05/10 07:52
07/05/10 07:52
Joined: Jul 2010
Posts: 11
Spain
S
skeu Offline
Newbie
skeu  Offline
Newbie
S

Joined: Jul 2010
Posts: 11
Spain
ok, so i should translate my software.
My concern is how to include developed libraries that i need to execute my software. In Acknex manual i didn't see anything to do that.
Do you know where can i see information about developed libraries import?
(I'm very grateful for your help)

Regards

Re: C# wrapper - RELEASE [Re: skeu] #331576
07/05/10 07:54
07/05/10 07:54
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
What language are the libraries developed in?

Re: C# wrapper - RELEASE [Re: DJBMASTER] #331577
07/05/10 08:07
07/05/10 08:07
Joined: Jul 2010
Posts: 11
Spain
S
skeu Offline
Newbie
skeu  Offline
Newbie
S

Joined: Jul 2010
Posts: 11
Spain
The libraries are developed in LiteC too, but i don't know if with C# Conversion and posterior import, is enough to run it.

Re: C# wrapper - RELEASE [Re: skeu] #331581
07/05/10 08:42
07/05/10 08:42
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Doubt it, you'll have to do a lot of converting.

Re: C# wrapper - RELEASE [Re: DJBMASTER] #331588
07/05/10 09:13
07/05/10 09:13
Joined: Jul 2010
Posts: 11
Spain
S
skeu Offline
Newbie
skeu  Offline
Newbie
S

Joined: Jul 2010
Posts: 11
Spain
I see... i will try it, if i can't i will study other method.
thanks!

Re: C# wrapper - RELEASE [Re: skeu] #336834
08/06/10 14:47
08/06/10 14:47
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline
User
BoH_Havoc  Offline
User

Joined: Jun 2004
Posts: 655
to your left
I always get this error when trying to compile.
I'm reather new to C# (only did the tutorials that come with it as well as some online tuts), so the error message doesn't really help me.

Unfortunally it's also in german
Quote:
PInvokeStackImbalance wurde erkannt.
Message: Ein Aufruf an die PInvoke-Funktion "AcknexTest!AcknexWrapper.Native.NativeEngFun::engine_open" hat das Gleichgewicht des Stapels gestört. Wahrscheinlich stimmt die verwaltete PInvoke-Signatur nicht mit der nicht verwalteten Zielsignatur überein. Überprüfen Sie, ob die Aufrufkonvention und die Parameter der PInvoke-Signatur mit der nicht verwalteten Zielsignatur übereinstimmen.


my code:
Code:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using AcknexWrapper;

namespace AcknexTest
{
    class Program
    {
        static void Main(string[] args)
        {
            EngFun.engine_open(null);
            EngFun.error("Hello World!");
            Scheduler.StartScheduler(null);
        }
    }
}



Also correctly linked to the AcknexWrapper folder, and .dll seems to be created by WED (at least acknex.dll gets copied to the debug folder and a wed console window pops up everytime i compile)

I'm using Visual C# Express 2010 at the moment, but could switch to Visual Studio 2010 Ultimate if really needed (don't like the 7GB install size though...).

Would be nice if someone can help me out here, as i'm trying to create some editors for shade-c and am sick of WinAPI wink


Shade-C EVO Lite-C Shader Framework
Re: C# wrapper - RELEASE [Re: BoH_Havoc] #336839
08/06/10 15:15
08/06/10 15:15
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
try this:
EngFun.engine_open("");


Visit my site: www.masterq32.de
Re: C# wrapper - RELEASE [Re: MasterQ32] #336853
08/06/10 16:24
08/06/10 16:24
Joined: Jun 2004
Posts: 655
to your left
BoH_Havoc Offline
User
BoH_Havoc  Offline
User

Joined: Jun 2004
Posts: 655
to your left
Tried that, still get the same error.


Shade-C EVO Lite-C Shader Framework
Page 29 of 32 1 2 27 28 29 30 31 32

Moderated by  TWO 

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