PocketMatrix forums

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

GapiDraw for VC 6.0 - HELP

Being a newbie at Pocket PC programming and having realized that developing on a PC is the way to go, I'm having a real problem.

Has anyone succeeded in getting the XP sample code in the GapiDraw SDK running under VC 6.0????

If you have, could I have the modified source????
Is there any tutorials available on GapiDraw yet???

Kind regards
Thomas
Hi Thomas,

It should be no real issue in getting the sample code running in Visual C++ 6.0. Some guidelines:

Create a New MFC/C++ project. Do not choose document/view. Remove the files "projectname.*" "mainfrm.*" and "childview.*" from your project and delete them from the folder.

Project Settings:
(1) C++ include directory: Add "../GapiDraw;../ProjectName"
(2) Linker include: Add "../GapiDrawXP/Release/GapiDraw.dll"

Then just add (a) "../GapiDraw/GapiDraw.h" and (b) all files in "../ProjectName" to your project and compile. Should work directly (I may have missed something since it's late at night here).

Best regards,
Johan
BurningSheep · 22 Apr 2002, 22:17 UTC
I was trying to set up a project in VS6 under Win98, I got the HelloGapi app to compile, but when I execute it it crashes. The demos included in the zip file work just fine. So I was wondering if it's possible compiling those apps under VS6/win98, and if possible does anyone have a sample project (for Microsoft Visual C++ 6) I can try out?

BTW, this is the error I get when trying to run the app

Image
You are trying to execute it within the emulator, correct?

Dan East
BurningSheep · 23 Apr 2002, 00:36 UTC
well actually... I thought it would compile to a stand-alone app, like the demo's included in the zip. Do I need to run it in an emulator? (that would kinda rule out developing under win98, right?)

I'll try it at home tomorrow then, I've got XP and win2k there. I only have a beta of visual studio .net though, I haven't even opened the wrapping yet and it's probably expired already :)
No, you can't create standard Win32 applications with eVC++. It will only run within the emulator or on an actual Pocket PC, depending on what you built for. Some SDKs, like EasyCE, will work with Win32 builds, but you must create a project in VC++ (the "real" VC++, not embedded eVC++) specifically for that.

Dan East
BurningSheep · 23 Apr 2002, 10:07 UTC
Dan East wrote:
No, you can't create standard Win32 applications with eVC++. It will only run within the emulator or on an actual Pocket PC, depending on what you built for. Some SDKs, like EasyCE, will work with Win32 builds, but you must create a project in VC++ (the "real" VC++, not embedded eVC++) specifically for that.

Dan East


I am using the "real" VC++, I tried developing using eVC++ but it would be much better to develop on the pc only. And every once in a while compile for PPC to see if everything is actually working out of course. That is the reason I was looking at GapiDraw, I used only gapi for my other programs. So a higher level graphics api would be really nice for my next project and it would be even better if I could develop it on my pc using VC++.
hi i own both evc 3 and vc 6 is it possible to compile prgs for ipaq in vc 6 if i copy all libs and compilers from evc 3 to vc6 ?
BurningSheep · 25 Apr 2002, 15:24 UTC
I downloaded the EasyCE 2.0 BETA, it compiled immediately and I've started porting my game to PPC using it now. Still would like to see GapiDraw up and running though, I'll try it out later again...
Hi,

The issue is most probably with you using Win98 for development. GapiDraw for stationary computers have only been tested (by me) using Windows 2000 & XP, and DirectX 8.1.

Also, what causes the assertion? Just break into the code and trace back to your program and see where it crashed.

/Johan