This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Problem compiling GapiDraw Program in Win32


Problem compiling GapiDraw Program in Win32

Postby jomarco » Dec 27, 2002 @ 6:19am

hi,

I have written a gapidraw game on wince, which works fine. I am now building the win32 version, all is well except for the following compilation problem which I do not understand.

Can anyone shed light on this one for me?

---------------
Cursor.cpp
e:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2146: syntax error : missing ';' before identifier 'ContextRecord'
e:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'PCONTEXT' : missing storage-class or type specifiers
e:\program files\microsoft visual studio\vc98\include\winnt.h(3143) : error C2501: 'ContextRecord' : missing storage-class or type specifiers
----------------
Cursor.cpp is as follows:


#include "Cursor.h"

CURSOR::CURSOR() // constructor for CURSOR
{
position.x=-1;position.y=-1;
cursor_action=CSR_STYLUS_NULL;
type=CSR_SHOT;
}

CURSOR::~CURSOR() // destructor for CURSOR
{
;
}

void CURSOR::init()
{
position.x=-1;position.y=-1;
}

POINT CURSOR::get_point(void)
{
return position;
};

int CURSOR::get_cursor_action(void)
{
return cursor_action;
}

void CURSOR::set_point(POINT p, int new_cursor_action)
{
position = p;
cursor_action=new_cursor_action;
};


----------------

cursor.h is as follows:

#ifndef __CURSOR_H__
#define __CURSOR_H__

#include <stdio.h>
#include <windef.h>

#define CSR_STYLUS_NULL 0
#define CSR_STYLUS_UP 1
#define CSR_STYLUS_DOWN 2
#define CSR_STYLUS_DOUBLECLICK 3
#define CSR_STYLUS_MOVE 4

#define CSR_SHOT 0
#define CSR_BOMB 1
#define CSR_POINT 2

typedef class CURSOR
{
public:
CURSOR();
~CURSOR();
int type;
POINT position;
int cursor_action;
char display[50];
POINT get_point(void);
void init();
int get_cursor_action(void);
void set_point(POINT,int);

} CURSOR;


#endif // __CURSOR_H__


-----------------


Thank you again!

Jomarco
jomarco
 


Fixed

Postby jomarco » Dec 27, 2002 @ 7:27am

jomarco
 


Return to GapiDraw


Sort


Forum Description

The Cross-platform Graphics SDK for Palms, Pocket PCs, Symbian Devices, and Stationary PCs.

Moderators:

sponge, Johan

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron