PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

.net Wrapper (C# and VB) for GapiDraw 3.6

Hi Everybody,

I discovered GapiDraw about a year ago and I think it is brilliant but I didn't work much with it.
Since I am usually writing Programms in C#, I was looking for an Up-To-Date C# wrapper for GapiDraw. The .net wrappers, provided by Source IT Software (or Intuitex?), are great, but they are quite old and they don't work with the new GapiDraw DLLs. Befor I start to modify them by myself, I want to ask you, whether some of you already updatet them or whether there are other ways to use GapiDraw with C#.

(PS: An new version of the wrapper for VS was postet here by Kiyote. (http://www.pocketmatrix.com/ forums/viewtopic.php?t=21718)
Are you still working at it, Kiyote, and do you have a C# Version?)

Edit: No ideas? There is a file, called "GapiDrawNet.h" in the win32/include folder. It's supposed to be used for .net integration, but it is not dokumentated. Can you help me with this file? I haven't much experience with this subject, so eveything you tell me about the .Net integration might be very helpful.
I used it a year ago too and am looking into it again now. I actually made some changes back then to the Intuitex library to work better inside a c# form and made some button classes. Let me know if you find a new wrapper anywhere. By the way why didnt it work with 3.6? I'm about to try...

I spotted some new functions for .net in the 3.0 - 3.6 change logs for gapi draw. Perhaps johan knows about a new wrapper? Otherwise why would he still be supporting it?
Ok I tried fixing the .net wrapper for 3.6 but when I try an example on the desktop I get "Error 80070057: Unknown" when trying to open the display with:
GdNet.CGapiDisplay_SetDisplayMode(unmanagedGapiObject, (int)mode)
So I've got the simple demo app working in .NET on the pc. Had to change a few p/invokes to take in the new GapiDraw object and kept track of it in the GapiApplication .net class. I'm going to keep working on this but feel free to PM/email me if you want my .NET code.
Hi indiekiduk, your .NET wrapper was tested in mobile devices or just in PCs?
sfranchi wrote:Hi indiekiduk, your .NET wrapper was tested in mobile devices or just in PCs?


Mobiles, I didn't even try PCs.
Sorry, I misunderstood a previous post then. Your wrapper code is available? If it is, I'll be interested on it.

Thanks!
sfranchi wrote:Sorry, I misunderstood a previous post then. Your wrapper code is available? If it is, I'll be interested on it.

Thanks!


Same here :)
Hi,

Even when I've no contact at all from Develant -something that scares me a lot-, I'll like to make public our C# .NET wrapper for GapiDraw 3.6.

At http://code.google.com/p/gapidrawdotnet/ you can download the updated help file and take a look to it.

I'll like some feedback of potential users of this lib before to publish the source code (I hope to do it by the next week) in order to publish it the best we could in its first release.

Some users who contacted me are using the code right now, and seems to be working fine for them too (we are using it -obviously- for our own apps), so if someone wants to take a look to the documentation and provide us some feedback, will be appreciated.

PS: If I got several answers, I'll open a new thread about this in order to use the forum for discuss this.

PS2: Why I'm publishing this if have not any answer from Develant, and even we don't know if the company even exists at all? Because I'm trying to be possitive and I'm pretty sure that something happened to Johan and as soon as it get fixed, everything will be "normal" again. Yes, I'm a naif guy, and proud of it :)

Sandro
I'll compare my wrapper to your one on google code and see if I can add in what I've changed.

By the way since you need to pay for GapiDraw Im using a wrapper of PocketFrog instead which I found in here I think, and have modified a bit. The source for it is in the FlowFX project I was working on:
http://www.aspecto-software.com/rw/appl ... index.html
Thanks indiekiduk, but you mean to replace all my written code to use the PocketFrog thing? What about compatibility?

I've never used PocketFrog, and at the time I'd looked at their site the existing documentation didn't helped me too much in order to know its features...
No i meant I'll compare your wrapper to my own Gapidraw wrapper.

The 2nd part of my post was a different topic.
The help file is there (http://code.google.com/p/gapidrawdotnet/) so take a look to it and I'll send you the actual files if you are interested on it.
By the way, just wanted to add that all Sandro's issues were resolved in early January 2008 through Skype / Email.

Cheers
Johan
It is quiet easy to make your own wrapper arround Gapidraw, if you have a close look at the sourcecode from http://www.intuitex.com/ppcdev.html. I used the same classes, but (I had too) add some constructers for the GapiDraw object. However not much different. If you want it you can contact me.

At least I have a wrapper of Gapidraw 3.6, but I do use the noncommercial version, but I believe they are quiet the same.
Perhaps I missed something, but the link to the wrapper says it's forbidden.
Remove the dot (.) suffix from the link.

I.e. if you click it will show "http://www.intuitex.com/ppcdev.html.", it should be http://www.intuitex.com/ppcdev.html

Cheers
Johan
I changed the dotnet part, but only get this:

The requested URL /p/gapidraw.net/ was not found on this server.
Sorry, I meant the http://code.google.com/p/gapidrawdotnet/ link. I wanted a wrapper that worked with the latest GapiDraw. The link above didn't work.
I need to know whether there is a 3.6 GapiDraw wrapper available for C# before I begin delving into C# to deep. Thanks
mmtbb wrote:I need to know whether there is a 3.6 GapiDraw wrapper available for C# before I begin delving into C# to deep. Thanks


Hello,

We do not provide such a wrapper, but we do provide a C interface file so you can create your own wrapper fairly easily. Others have been very successful in creating .NET wrappers around GapiDraw 3.6 so it's very possible.

Sincerely
Johan