Allora, sto seguendo dei tutorial interessanti su SDL/C++
http://lazyfoo.net/SDL_tutorials/index.php
[mi servono perchè sono arruginito
]
ora, il problema è questo :
in questo punto
Codice:
typedef struct _myTTF
{
SDL_Surface* Message;
TTF_Font* Font;
SDL_Color Color;
_myTTF()
{
Message = NULL;
Font = NULL;
this->Color = { 255, 255, 255 }; //<--- riga incriminata
}
} myTTF;
creo una struct basata sul tutorial 7 http://lazyfoo.net/SDL_tutorials/lesson07/index.php
il fatto è che il compilatore mi dà queti errori :
Codice:
1>c:\documents and settings\administrator\documenti\visual studio 2005\projects\dominium0_1\dominium0_1\stdafx.h(22) : error C2059: syntax error : '{'
1>c:\documents and settings\administrator\documenti\visual studio 2005\projects\dominium0_1\dominium0_1\stdafx.h(22) : error C2143: syntax error : missing ';' before '{'
1>c:\documents and settings\administrator\documenti\visual studio 2005\projects\dominium0_1\dominium0_1\stdafx.h(22) : error C2143: syntax error : missing ';' before '}'
su queste righe [ segnate sopra ]
ora, visto che nel tutorial SDL_Color viene inizializzata con SDL_Color Color = { 255, 255, 255 };
vorrei sapere perchè qui non va
mi sapreste aiutare?
grazie ^^
EDIT: this-> è emsso solo per una prova, fa lo stessos e lo uso o no.