PocketMatrix forums

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

GapiDraw 3.5b Released!

Today Develant Technologies released GapiDraw 3.5b, which fixes a critical issue with the next version of Windows Mobile. GapiDraw 3.5b also includes DLL files for Stationary PCs (both Visual Studio 6 and Visual Studio .NET 2003 DLL files are included).

We have also released updated versions of GapiDraw 1.04 and GapiDraw 2.01, so if you have ANY products using these versions they will not function correctly under the next version of Windows Mobile! If you want the updates for the older versions of GapiDraw 1.04 and 2.01 please contact us and we'll send them to you right away (if you can show us any released game that uses them)!

Here's the release history for GapiDraw 3.5b:

GapiDraw 3.5b [2005-02-10]
--------------------------

SDK Additions

-Win32. Added DLL support for stationary PCs for environments that cannot use the statically linked library (such as the .NET environment). DLL's have been added for Visual Studio 6.0 ("dll\vs6") and Visual Studio .NET 2003 ("dll\vs2003").
-Win32. It's now possible to retrieve the base class for objects in the .NET wrapper:
GAPIDRAW_API CGapiSurface* __stdcall CGapiMaskSurface_GetSurface(CGapiMaskSurface* pMaskSurface);
GAPIDRAW_API CGapiSurface* __stdcall CGapiDisplay_GetSurface(CGapiDisplay* pDisplay);
GAPIDRAW_API CGapiSurface* __stdcall CGapiBitmapFont_GetSurface(CGapiBitmapFont* pBitmapFont);
GAPIDRAW_API CGapiRGBASurface* __stdcall CGapiCursor_GetRGBASurface(CGapiCursor* pCursor);
-Win32. Added an easy way to free the memory allocated by a CGapiRGBASurface
GAPIDRAW_API HRESULT __stdcall CGapiRGBASurface_FreeSurface(CGapiRGBASurface* pSurface);
-Win32. Added two new function calls to CGapiDisplay to get the DirectDraw interface and primary surface: CGapiDisplay::GetDirectDrawInterface() and CGapiDisplay::GetDirectDrawPrimarySurface().

Bug Fixes

-Win32. Fixed all EVC3 samples so that they now do not try to open the display in HI_RES_AWARE mode (VGA resolution) on Windows Mobile 2003 SE devices.
-Win32. The following functions were not exported correctly through the .NET wrapper:
GAPIDRAW_API HRESULT __stdcall CGapiRGBASurface_CreateSurfaceFromVFS(CGapiRGBASurface* pSurface, DWORD dwFlags, CGapiVFS* pVFS, const _TCHAR* pImageFile);
GAPIDRAW_API HRESULT __stdcall CGapiRGBASurface_CreateSurfaceFromVFSFile(CGapiRGBASurface* pSurface, DWORD dwFlags, CGapiFileStream* pGapiFileStream);
-Win32. Fixed an issue with the upcoming "Next Version of Windows Mobile" related to the use of Imgdecmp.dll.

GapiDraw 3.5b can be downloaded at www.gapidraw.com
(Edit: Problem solved)
I tried the Simple in the examples and it worked fine when I first tried it. So I went and looked at the code, compared the startup code with mine, made a few alterations, and still it froze.


So, the Simple demo works on your device? And then you modify it and it freezes. You are doing something wrong here.

I have tested GapiDraw 3.5b on many devices here without issues. Try changing one thing at a time and see what causes it to freeze.

There are very few changes to GapiDraw 3.5b compared to 3.5a, and those changes should definitely not cause a "freeze" in any software.
Johan wrote:
I tried the Simple in the examples and it worked fine when I first tried it. So I went and looked at the code, compared the startup code with mine, made a few alterations, and still it froze.


So, the Simple demo works on your device? And then you modify it and it freezes. You are doing something wrong here.

I have tested GapiDraw 3.5b on many devices here without issues. Try changing one thing at a time and see what causes it to freeze.

There are very few changes to GapiDraw 3.5b compared to 3.5a, and those changes should definitely not cause a "freeze" in any software.


You miss understood. I changed my app, not the simple example. Regardless, I need 3.5a for testing to see if it is my code or GD 3.5b. Is there any place I can get it?

EDIT:
In the mean time I'm going to completely delete GapiDraw off my system, redownload and reinstall 3.5b. I'm then going to test various example applications as-is, then I'll recompile and try them again. I'll report when I'm done.

EDIT 2:
Okay, I completely deleted and reinstalled GapiDraw. I then tried all samples as-is, then recompiled and tried again. They all worked find. I tried my application again, and it froze. I guess my app caused my Axim x50v to go bonkers and not load any other GD applications. I'm in the process of ripping my game engine apart and rebuilding it piece by piece to see what the problem is. It works fine on my PC, so there's something that's not compatible with the PPC but is with the PC.

EDIT 3:
I isolated the problem. It's not GD. At first glance, it did appear that it was GD (since the sample applications were also freezing - still not sure why, probably because I ran my application and it furbard my Axim x50v).

In any case, sorry about that. :) You can delete my posts if you want.
Hi, just got a small question.

GapiDraw 3.5b also includes DLL files for Stationary PCs (both Visual Studio 6 and Visual Studio .NET 2003 DLL files are included).


Does that mean we can now program using .net languages like VB.net nativly? or do we still need a wrapper?
Also if we need to uses a wrapper, can you sugest a good one? thanks alot[/google]
Hi,

Kiyote here on the forum has a VB.NET wrapper for GapiDraw. You can contact him here:
http://www.pocketmatrix.com/forums/prof ... ile&u=4448