Gamestudio Links
Zorro Links
Newest Posts
lookback setting performance issue
by 7th_zorro. 04/16/24 03:08
folder management functions
by 7th_zorro. 04/15/24 10:10
zorro 64bit command line support
by 7th_zorro. 04/15/24 09:36
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:48
Zorro FIX plugin - Experimental
by flink. 04/14/24 07:46
LPDIRECT3DCUBETEXTUR
E9

by Ayumi. 04/12/24 11:00
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 04/11/24 14:56
SGT_FW
by Aku_Aku. 04/10/24 16:09
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
2 registered members (7th_zorro, Quad), 373 guests, and 3 spiders.
Key: Admin, Global Mod, Mod
Newest Members
11honza11, ccorrea, sakolin, rajesh7827, juergen_wue
19045 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 3 of 32 1 2 3 4 5 31 32
Re: C# wrapper - RELEASE [Re: Stromausfall] #277678
07/10/09 06:29
07/10/09 06:29
Joined: Aug 2005
Posts: 1,230
M
MichaelGale Offline
Serious User
MichaelGale  Offline
Serious User
M

Joined: Aug 2005
Posts: 1,230
For the coding conventions, I can recommend you to read this article. Obviously you don't need to stick 100% to that, but especially as long as you following the naming conventions you will improve the quality of your code tremendously.


Your friendly mod is at your service.
Re: C# wrapper - RELEASE [Re: MichaelGale] #277683
07/10/09 06:59
07/10/09 06:59
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Thank you for the link, i will have a look at that article !

I really appreciate your help.
Best regards,
Matthias


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: enrike] #277715
07/10/09 11:11
07/10/09 11:11
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Nice attempt.

Just use this in the Post-build...

Code:
"C:\Program Files\GStudio7\WED.exe" -p "$(TargetDir)\$(TargetFileName)"



Last edited by DJBMASTER; 07/10/09 13:49.
Re: C# wrapper - RELEASE [Re: DJBMASTER] #277719
07/10/09 11:28
07/10/09 11:28
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
that's a lot better I'll change it in the manual for the next release!


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #277820
07/10/09 21:07
07/10/09 21:07
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
Could you provide a sample that uses the engine with a windows form project.
I think the main reason we all want a C# wrapper is to be able to use other .NET controls as well.

So how would you render the engine into a .NET form? Maybe you can pass a HWND handle or something.

Re: C# wrapper - RELEASE [Re: DJBMASTER] #277858
07/11/09 05:04
07/11/09 05:04
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
Look in the EngVar, there are some IntPtr like hwnd, hwndparent, hwndtarget and pRectTarget (which points to some RECT struct afaik) - they should do the trick i think. I'm sorry but i didn't work with windows forms yet and thus can't provide you with any help reagrding this topic at the moment.


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #277968
07/11/09 17:54
07/11/09 17: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
hi i'm trying to get a basic app running. I do all the steps in the manual and i use code straight out of the manual.

I run my program, WED pops up and it says "acknex.dll" so i know the DLL is copied correctly. Then the engine pops up but says...

"(name of program).vshost.exe damaged"

... and it just crashes. I checked my post build and I have set it to the the correct .exe, why is it using the .vhost.exe one?

Maybe i'm missing something.

EDIT > I can run the program if i manually go into the project folder and start the .exe. Just wondered why this isnt automated when i press F5.

Last edited by DJBMASTER; 07/11/09 17:59.
Re: C# wrapper - RELEASE [Re: DJBMASTER] #277977
07/11/09 18:32
07/11/09 18:32
Joined: Nov 2007
Posts: 1,143
United Kingdom
DJBMASTER Offline
Serious User
DJBMASTER  Offline
Serious User

Joined: Nov 2007
Posts: 1,143
United Kingdom
a7.EngVar.d3d_lockable is read-only. To allow rendering into a target window this needs to be set to 1. I can try and add a set clause, but i haven't worked with unsafe code really.

Re: C# wrapper - RELEASE [Re: DJBMASTER] #278034
07/11/09 21:31
07/11/09 21:31
Joined: Dec 2002
Posts: 616
Austria
Stromausfall Offline OP
User
Stromausfall  Offline OP
User

Joined: Dec 2002
Posts: 616
Austria
hi about the problem with vshost.exe it looks like you haven't disabled the "Visual studio hosting process" you can disable it under project proberties, debug -> "Enable the Visual studio hosting process".
If you disable the visual studio hosting process it should work fine afaik.

only the Var object for a7.EngVar.d3d_lockable is read-only. You can still set it's value ->
a7.EngVar.d3d_lockable.IntValue = 1;
sets the value of d3d_lockable to 1.
I hope this helps, if you still got problems don't hesitate to post !

cheers,
Matthias

P.S.: I'm currently creating a new version of the wrapper, where names may and will differ from the current version, so only use this version for testing ^^


get the C# wrapper:
for A7.85.4 and A8.30.4, Version 2.3.9
at http://acknexwrapper2.matthias-auer.net/ or visit the thread
Re: C# wrapper - RELEASE [Re: Stromausfall] #278054
07/11/09 22:25
07/11/09 22:25
Joined: May 2005
Posts: 133
Germany, Passau
AlexDeloy Offline
Member
AlexDeloy  Offline
Member

Joined: May 2005
Posts: 133
Germany, Passau
Awesome work, thanks

Tried to run on a 64bit system resulted in a BadImageFormatException
If anyone else is experiencing this problem here is how to solve it:

Set a new platform type in the configuration manager,
Build menu -> Configuration Manager -> Platform -> new -> new platform x86

Page 3 of 32 1 2 3 4 5 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