PocketMatrix forums

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

Question for Mr. X

MR. X,

after installing the eval version of gapidraw, the debugger pops up everytime I try to run an example, saying:

An exception 'System.IO.FileNotFoundException' has occured in Walk2003.exe

I get this for all the sample programs. However, everything in the demo folder works. Please help
In order to run the sample apps, you will need to have the GDxxx.dll and any resourse files (images etc) that are required. Look in the sample directories for the res or resource folder and copy the contents into the directory where you are running the program from. And make sure that it has the gdxxx.dll file in there as well.
I don't know if I just can't find the right gd301.dll file, but it still gives me errors. There is an evaluation version. Why not include that .dll with the sample so that it won't be so hard to get working?[/quote]
The demos directory has all the files you need including the dlls.

Copy everything from the appropriate demos dir into the sample debug or release dir and try that.

The reason I don't include everything in the sample dirs is that it takes up an awful amount of space. 700k * 6 samples * 2 builds * 2 processors = 16meg.
Is there a simple C# example that adds a background image, adds a stationary sprite. I need to get to this point first before I can go any further. Thank YOU!
The "Simple" sample is the closest. It loads 2 iamges and displays them.

GD doesn't really have sprites, just images that are moved and rotated as required.
How do I add another image named "test.png" to the simple program? I have tried to follow the outline of the code but with no luck. Thanks

PS. I notice that you are trying out PPL. What do you think about it? Is it as fast as C#?
To add another image, place it in the app directory.

Add another GapiSurface to your applciation object:

GapiSurface m_NewImage = new GapiSurface();

In the CreateSurfaces method, load the image:

m_NewImage.CreateSurface("test.png");

In the ProcessNextFrame method, do something with it:

BackBuffer.BltFast(your x, your y, m_NewImage, BltFastOptions.GDBLTFAST_KEYSRC);


See http://www.gapidraw.com/docs/gapidraw/301/index.html for the c++ app which is very similar to the c# api


I stopped using PPL when the C# compiler for the pocketpc came out. I haven't had much of a chance to play with either though :(
One thing that makes it hard is that I don't understand what certain things are for, like BltFast; what does that mean? or GDBLTFAST_KEYSRC. Perhaps if I understood it a little more. The problem is that I understand C# basics, but seem to get lost when looking at C++. Thanks though for trying
Check the official gapidraw documentation. For example http://www.gapidraw.com/docs/gapidraw/3 ... -frame.htm discusses both BltFast and GDBLTFAST_KEYSRC.

Most of the object names are exactly the same (- the leading "C" so C# GapiSurface == C++ CGapiSurface.

Most of the object names and parameters are also the same, except that pointers are replaced by objects and some flags are replaced by enums.

I couldn't program in C++ when I started the wrapper library so it can't be that hard to figure out :)