"John Harrison" <> wrote in message
news:bgjln7$p6frg$...
> [error messages snipped]
>
> You are expecting help on error messages without quoting the source code
> that is giving rise to the errors. Do you think we are psychic?
>
> john
yo want the 4 for pages of code?
they wont fit here but here goes.
1)
Error : undefined identifier 'DIK_OEM_102'
gs_keycodes.h line 106 gsKEY_OEM_102 = DIK_OEM_102,
code= gsKEY_OEM_102 = DIK_OEM_102,
2)
Error : undefined identifier 'DIK_PAUSE'
gs_keycodes.h line 114 gsKEY_PAUSE = DIK_PAUSE,
code= gsKEY_PAUSE = DIK_PAUSE,
3)
Error : ';' expected
gs_scoretable.h line 23 const Int gsSCORE_NAME_SIZE=3;
code=
//-------------------------------------------------------------
const Int gsSCORE_NAME_SIZE=3;
//-------------------------------------------------------------
4)
Error : undefined identifier 'gsSCORE_NAME_SIZE'
gs_scoretable.h line 30 char m_name[gsSCORE_NAME_SIZE];
code=
//-------------------------------------------------------------
struct gsScoreItem
{
int m_score;
char m_name[gsSCORE_NAME_SIZE];
};
//-------------------------------------------------------------
5)
Error : ';' expected
gs_soundsystem.h line 24 Class gsCSoundSystem : public gsCObject
6)
Error : declaration syntax error
gs_soundsystem.h line 26 private:
7)
Error : declaration syntax error
gs_soundsystem.h line 33 public:

Warning : implicit 'int' is no longer supported in C++
gs_soundsystem.h line 34 gsCSoundSystem()
9)
Error : ';' expected
gs_soundsystem.h line 35 gsCSoundSystem();
code=
//-------------------------------------------------------------
Class gsCSoundSystem : public gsCObject
private:
bool m_active;
gsCList<gsCSample *> m_sample_list;
gsCList<gsCMusic *> m_music_list;
gsCMusic *m_current_music;
public:
gsCSoundSystem()
gsCSoundSystem();
bool create();
bool destroy();
bool isActive();
void clearMusicList();
bool addMusic(const char *filename);
int getNumberOfMusics();
bool playMusic(int index);
void stopMusic();
bool isMusicFinished();
void clearSampleList();
bool addSample(const char *filename);
int getNumberOfSamples();
bool playSample(int index,int panning = 0);
void stopSamples();
void setVolume(int music_percent,int sample_percent);
}
//------------------------------------------------------------
10)
Error : declaration syntax error
gs_sprite.h line 66 inline void gsCSprite::setActive(bool state)
code =
//-------------------------------------------------------------
inline void gsCSprite::setActive(bool state)
{
m_active = state;
}
//-------------------------------------------------------------
11)
Error : '}' expected
demo1.cpp line 235 }
//-------------------------------------------------------------
// Draw all the sprites on screen
void CDemo1::drawSprites()
{
for (int i = 0; i < m_sprite.getSize(); i++)
m_sprite[i]->draw();
}
//-------------------------------------------------------------
// Move all sprites
void CDemo1::moveSprites()
{
gsCRect screen_rect = m_screen.getRect();
// this basically moves each sprite up the screen
// if the sprite goes off the screen it's wrapped
// around to the bottom
for (int i = 0; i < m_sprite.getSize(); i++) {
m_sprite[i]->move(gsCPoint(0,-((i & 3) + 1)));
gsCRect sprite_rect = m_sprite[i]->getRect();
if (!(sprite_rect.overlaps(screen_rect)))
m_sprite[i]->move(gsCPoint(0,m_screen.getSize().getY() +
m_image.getSize().getY()));
}
}
}
//-------------------------------------------------------------
this looks bad cus i have lost the format but the source was givenaway on a
mag