Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to replace a word in a file Pin
Hamid_RT24-Jul-06 20:03
Hamid_RT24-Jul-06 20:03 
QuestionCaption of Dialog Pin
Thanhnamdo24-Jul-06 18:32
Thanhnamdo24-Jul-06 18:32 
AnswerRe: Caption of Dialog Pin
_AnsHUMAN_ 24-Jul-06 18:40
_AnsHUMAN_ 24-Jul-06 18:40 
AnswerRe: Caption of Dialog Pin
see me24-Jul-06 18:40
see me24-Jul-06 18:40 
AnswerRe: Caption of Dialog Pin
Hamid_RT24-Jul-06 19:53
Hamid_RT24-Jul-06 19:53 
GeneralRe: Caption of Dialog Pin
see me24-Jul-06 20:01
see me24-Jul-06 20:01 
GeneralRe: Caption of Dialog Pin
ThatsAlok25-Jul-06 0:30
ThatsAlok25-Jul-06 0:30 
GeneralRe: Caption of Dialog Pin
Hamid_RT24-Jul-06 20:04
Hamid_RT24-Jul-06 20:04 
Questionmemory free Pin
Try24-Jul-06 18:25
Try24-Jul-06 18:25 
AnswerRe: memory free Pin
Stephen Hewitt24-Jul-06 19:13
Stephen Hewitt24-Jul-06 19:13 
AnswerRe: memory free Pin
Divyang Mithaiwala24-Jul-06 19:14
Divyang Mithaiwala24-Jul-06 19:14 
GeneralRe: memory free Pin
Stephen Hewitt24-Jul-06 22:18
Stephen Hewitt24-Jul-06 22:18 
QuestionAbout Static Control Pin
Thanhnamdo24-Jul-06 17:58
Thanhnamdo24-Jul-06 17:58 
AnswerRe: About Static Control Pin
Hamid_RT24-Jul-06 18:07
Hamid_RT24-Jul-06 18:07 
GeneralRe: About Static Control Pin
see me24-Jul-06 18:18
see me24-Jul-06 18:18 
GeneralRe: About Static Control Pin
Thanhnamdo24-Jul-06 18:22
Thanhnamdo24-Jul-06 18:22 
GeneralRe: About Static Control Pin
see me24-Jul-06 18:31
see me24-Jul-06 18:31 
GeneralRe: About Static Control Pin
Hamid_RT24-Jul-06 19:52
Hamid_RT24-Jul-06 19:52 
AnswerRe: About Static Control Pin
see me24-Jul-06 18:14
see me24-Jul-06 18:14 
QuestionAbout command line arguments... Pin
simonchen.net24-Jul-06 17:08
simonchen.net24-Jul-06 17:08 
AnswerRe: About command line arguments... Pin
Michael Dunn24-Jul-06 18:43
sitebuilderMichael Dunn24-Jul-06 18:43 
GeneralRe: About command line arguments... Pin
simonchen.net24-Jul-06 19:02
simonchen.net24-Jul-06 19:02 
GeneralRe: About command line arguments... Pin
Michael Dunn24-Jul-06 22:58
sitebuilderMichael Dunn24-Jul-06 22:58 
Question[Noob] Using class pointers [modified] Pin
Lord Kixdemp24-Jul-06 16:59
Lord Kixdemp24-Jul-06 16:59 
Hello everyone!
Can anyone help me here? I really don't see why this code doesn't work...

class Game<br />
{<br />
	Graphics *gfx;<br />
<br />
	// Player locations<br />
	// Car1 locations<br />
	int player_x, player_y, car1_x, car1_y;<br />
<br />
	// Movement vars<br />
	int gUpKey, gDnKey, gLtKey, gRtKey;<br />
<br />
	// Is the player in the car?<br />
	bool inCar;<br />
<br />
public:<br />
	Game(void);<br />
	~Game(void);<br />
	bool Respond();					// Respond to events (keypresses)<br />
	void PlacePlayer(int x, int y);	// Place player in its location<br />
	int Init(Graphics *gfx);		// Init class<br />
};


I get the following errors:

c:\Incoming\War Game\Game.h(7): error C2143: syntax error : missing ';' before '*'<br />
c:\Incoming\War Game\Game.h(7): error C2501: 'Game::Graphics' : missing storage-class or type specifiers<br />
c:\Incoming\War Game\Game.h(7): error C2501: 'Game::gfx' : missing storage-class or type specifiers<br />
c:\Incoming\War Game\Game.h(24): error C2061: syntax error : identifier 'Graphics'<br />


Why is that? Thanks!

BTW: Line 7 is the 3rd one, and 24 is the one before the last one...



-- modified at 23:14 Monday 24th July, 2006
AnswerRe: [Noob] Using class pointers [modified] Pin
John M. Drescher24-Jul-06 17:08
John M. Drescher24-Jul-06 17:08 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.