Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Basic thread Pin
Oliver12329-Aug-06 9:46
Oliver12329-Aug-06 9:46 
Questionhow to compare an empty editbox Pin
samkook28-Aug-06 14:16
samkook28-Aug-06 14:16 
AnswerRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 15:16
Waldermort28-Aug-06 15:16 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 16:00
samkook28-Aug-06 16:00 
GeneralRe: how to compare an empty editbox Pin
Waldermort28-Aug-06 16:47
Waldermort28-Aug-06 16:47 
GeneralRe: how to compare an empty editbox Pin
samkook28-Aug-06 20:27
samkook28-Aug-06 20:27 
QuestionRe: how to compare an empty editbox Pin
David Crow29-Aug-06 2:47
David Crow29-Aug-06 2:47 
QuestionNonsense VC++ errors... Pin
Lord Kixdemp28-Aug-06 11:20
Lord Kixdemp28-Aug-06 11:20 
Hello everyone!
Here, I have this statement:

#pragma once<br />
<br />
#include "Includes.h"<br />
<br />
class Game<br />
{<br />
	// Main player<br />
	Player mainPlayer; // <-- THIS ONE<br />
<br />
	// All the vehicles available for the game<br />
	VehicleType AllVehicles[1];


It generates these errors:

1>[dir]\Game.h(10) : error C2146: syntax error : missing ';' before identifier 'mainPlayer'<br />
<br />
1>[dir]\Game.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int<br />
<br />
1>[dir]\Game.h(10) : error C4430: missing type specifier - int assumed. Note: C++ does not support default-int


Why would it be? I'm pretty sure it's just some bad syntax I didn't see, that's why I included the surrounding lines... Any ideas? Thanks!

PS: Here's the declaration of Player:

#pragma once<br />
<br />
#include "Includes.h"<br />
<br />
class Player<br />
{<br />
	int color;<br />
<br />
public:<br />
	Player();<br />
<br />
	SDL_Surface *surf;<br />
<br />
	int x, y;<br />
<br />
	bool Load(int color);<br />
<br />
	// Swaps colors (See funcs below...)<br />
	bool SwapColors(SDL_Surface *surf, int color);<br />
};<br />


Windows Calculator told me I will die at 28. Frown | :(

AnswerRe: Nonsense VC++ errors... Pin
led mike28-Aug-06 11:31
led mike28-Aug-06 11:31 
AnswerRe: Nonsense VC++ errors... Pin
khan++28-Aug-06 21:48
khan++28-Aug-06 21:48 
GeneralRe: Nonsense VC++ errors... Pin
Lord Kixdemp30-Aug-06 10:27
Lord Kixdemp30-Aug-06 10:27 
GeneralRe: Nonsense VC++ errors... Pin
khan++30-Aug-06 23:34
khan++30-Aug-06 23:34 
QuestionProperty Page Captions [modified] Pin
Scott P. Chapman28-Aug-06 11:08
Scott P. Chapman28-Aug-06 11:08 
AnswerRe: Property Page Captions Pin
David Crow29-Aug-06 2:44
David Crow29-Aug-06 2:44 
QuestionHow to change the font of a button's caption in MFC Pin
Eikthrynir28-Aug-06 9:49
Eikthrynir28-Aug-06 9:49 
QuestionRe: How to change the font of a button's caption in MFC Pin
David Crow28-Aug-06 10:24
David Crow28-Aug-06 10:24 
AnswerRe: How to change the font of a button's caption in MFC Pin
Eikthrynir28-Aug-06 10:46
Eikthrynir28-Aug-06 10:46 
AnswerRe: How to change the font of a button's caption in MFC Pin
led mike28-Aug-06 10:53
led mike28-Aug-06 10:53 
GeneralRe: How to change the font of a button's caption in MFC [modified] Pin
Eikthrynir28-Aug-06 11:06
Eikthrynir28-Aug-06 11:06 
QuestionRe: How to change the font of a button's caption in MFC Pin
Hamid_RT28-Aug-06 19:42
Hamid_RT28-Aug-06 19:42 
QuestionRandy More's onscreenkeyboard project...question? Pin
gidtitan28-Aug-06 9:07
gidtitan28-Aug-06 9:07 
AnswerRe: Randy More's onscreenkeyboard project...question? Pin
David Crow28-Aug-06 10:31
David Crow28-Aug-06 10:31 
GeneralRe: Randy More's onscreenkeyboard project...question? Pin
gidtitan30-Aug-06 2:57
gidtitan30-Aug-06 2:57 
AnswerRe: Randy More's onscreenkeyboard project...question? Pin
Hamid_RT29-Aug-06 7:58
Hamid_RT29-Aug-06 7:58 
QuestionHow I can get listview subitem text of a listview on another process? Pin
Marco225028-Aug-06 9:04
Marco225028-Aug-06 9:04 

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.