Ich habe mich jetzt hingesetzt und eine Anwendung geschrieben, es sah auch so aus als ob sie funktioniren würde aber dann habe ich diesen Fehler bekommen:
|
Quellcode
|
1
2
|
Game.h(18): error C2143: Syntaxfehler: Es fehlt ';' vor '*'
Game.h(18): error C4430: Fehlender Typspezifizierer - int wird angenommen. Hinweis: "default-int" wird von C++ nicht unterstützt.
|
Die Klasse siht so aus:
|
C-/C++-Quelltext
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#include "player.h"
#include "openglclass.h"
#include "graphicsclass.h"
#include "inputclass.h"
class Game:
OpenGLClass
{
public:
Game(void);
~Game(void);
void GameMain ();
LRESULT CALLBACK MessageHandler(HWND hwnd, UINT umsg, WPARAM wparam, LPARAM lparam);
private:
Player* Playertest;
GraphicsClass* Grafik;
InputClass* Input;
private:
LPCWSTR m_applicationName;
HINSTANCE m_hinstance;
HWND m_hwnd;
private:
bool Frame ();
bool InitializeWindows(int& screenWidth, int& screenHeight);
};
static Game* ApplicationHandle = 0;
static LRESULT CALLBACK WndProc(HWND, UINT, WPARAM, LPARAM);
|
Warum erkennt er das nicht als Zeiger?