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

C / C++ / MFC

 
GeneralObj to Source file Pin
Gurou4-May-04 0:29
Gurou4-May-04 0:29 
GeneralRe: Obj to Source file Pin
toxcct4-May-04 0:46
toxcct4-May-04 0:46 
GeneralRe: Obj to Source file Pin
Gurou4-May-04 1:24
Gurou4-May-04 1:24 
GeneralRe: Obj to Source file Pin
toxcct4-May-04 1:27
toxcct4-May-04 1:27 
GeneralSyntax error: identifier 'x' when 2 headers include each other Pin
Ylis4-May-04 0:27
Ylis4-May-04 0:27 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
toxcct4-May-04 0:39
toxcct4-May-04 0:39 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
Ylis4-May-04 0:54
Ylis4-May-04 0:54 
GeneralRe: Syntax error: identifier 'x' when 2 headers include each other Pin
Jens Doose4-May-04 0:39
Jens Doose4-May-04 0:39 
Instead of including sprite.h in SDLGraphics.h try a forward declaration:

SDLgraphics.h
<br />
#ifndef SDLgraphics_H<br />
#define SDLgraphics_H<br />
#include <br />
#include <br />
#include "SDL.h"<br />
<br />
class sprite;<br />
<br />
class SDLgraphics<br />
{<br />
public<br />
...<br />


That should work in this case, because in SDLgraphics.h you only need sprite pointers.

Jens
QuestionHooking a COM port ? Pin
Brian van der Beek4-May-04 0:12
Brian van der Beek4-May-04 0:12 
GeneralSDK problem Pin
Prakash Nadar3-May-04 23:57
Prakash Nadar3-May-04 23:57 
GeneralRe: SDK problem Pin
Jens Doose4-May-04 0:19
Jens Doose4-May-04 0:19 
GeneralRe: SDK problem Pin
2249174-May-04 0:39
2249174-May-04 0:39 
GeneralRe: SDK problem Pin
Prakash Nadar4-May-04 5:19
Prakash Nadar4-May-04 5:19 
GeneralRe: SDK problem Pin
Blake Miller6-May-04 8:25
Blake Miller6-May-04 8:25 
GeneralA question about OOP Pin
nguyenvhn3-May-04 23:55
nguyenvhn3-May-04 23:55 
GeneralRe: A question about OOP Pin
Jens Doose4-May-04 0:07
Jens Doose4-May-04 0:07 
GeneralRe: A question about OOP Pin
toxcct4-May-04 0:09
toxcct4-May-04 0:09 
GeneralRe: Template Pin
Antony M Kancidrowski3-May-04 23:13
Antony M Kancidrowski3-May-04 23:13 
GeneralRe: Template Pin
Jens Doose3-May-04 23:17
Jens Doose3-May-04 23:17 
GeneralRe: Template Pin
Anonymous3-May-04 23:39
Anonymous3-May-04 23:39 
GeneralRe: Template Pin
Jens Doose4-May-04 0:12
Jens Doose4-May-04 0:12 
GeneralRe: Template Pin
Antony M Kancidrowski4-May-04 2:53
Antony M Kancidrowski4-May-04 2:53 
GeneralRe: Template Pin
Anonymous4-May-04 3:41
Anonymous4-May-04 3:41 
GeneralRe: Template Pin
Jens Doose4-May-04 4:43
Jens Doose4-May-04 4:43 
GeneralRe: Template Pin
Anonymous4-May-04 5:40
Anonymous4-May-04 5:40 

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.