Jump to content
  • Advertisement
Sign in to follow this  
redwingdw

getting internal compiler error in vc6 even after installing service pack

This topic is 4450 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi I am getting an internal compiler error when I create a default constructor in my PaddleC class , I have done some research and this article is a fix but Im not sure how to get it working with my program http://support.microsoft.com/default.aspx?scid=kb;en-us;179271 heres my code and marked where the error is
//-----------------| Class Shape  |-------------------------------
class Shape {
	public:
int x;
int y;
int xvel;
int yvel;
int START_YP;
int START_YC;
int START_XC;
int START_XBALL;
int START_YBALL;

	Shape();
};

Shape::Shape() {
	printf("In Shape constructor\n");
	

}

//-----------------| EClass Shape   |-------------------------------

//-----------------| Class PaddleP:Shape  |-------------------------------
class PaddleP:Shape {
public:
	PaddleP();
	int getX();
	int getY();
};

PaddleP::PaddleP() {

 START_YP = 170; //could make a constant
 x = 0;
 y = START_YP;

}

int PaddleP::getX() {
return x;
}

int PaddleP::getY() {
return y;
}
//-----------------| EClass PaddleP :Shape   |-------------------------------

//-----------------| Class PaddleC :Shape   |-------------------------------
class PaddleC:Shape {
public:
PaddleC();



};

PaddleC::PaddleC { //error here but I dont understand the fix the way explained in the microsoft article......what a carry on not being able to create a default constructor
 START_YC = 170;
 x = 632; //could make a constant
 y = START_YC;
}

//-----------------| EClass PaddleC :Shape   |-------------------------------

Share this post


Link to post
Share on other sites
Advertisement
haha thanks alot enigma omg why couldnt the article have suggested trying that lol I added the () and it fixed it ......maybe thats what making implicit declarations means .....lol . I wish they would keep things simple on some of the so called help sites . Its no surprise the forums on game dev are packed :-)

cheers !
Dave

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!