Original Post
i need help!!!
ok i know how to use compiler directives #ifndef, #define and #endif to make sure a library is only compiled once but it is being compiled twice in my program and making errors for some reason here is the code.
help would be greatly appreciated
/////////////////////////////////////////////////////////
// Pong.h: interface for the Pong class.
//
//////////////////////////////////////////////////////////////////////
#ifndef _PONG_H
#define _PONG_H
#include
#include
typedef struct PaddleType
{
PaddleType(); // constructor
char *filename; // name of bitmap for paddle
LPDIRECTDRAWSURFACE7 PaddleSurf;// dd surface for paddle
RECT bbox; // a bounding box for collision detection
int velocity; // vertical velocity of paddle
}Paddle;
PaddleType:: PaddleType()
:filename(NULL), PaddleSurf(NULL)
{
}
class Pong
{
private:
Paddle Player1; // struct for p1's paddle
Paddle Player2; // struct for p2's paddle
public:
Pong();
~Pong();
};
#endif
Can anyone tell me whats wrong with it?
thanks
NiNo
Edited by - nino on 11/12/00 2:41:54 AM