Click here to Skip to main content
15,908,909 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Shrinking DIB StretchDIBits ? Pin
22-May-02 0:35
suss22-May-02 0:35 
GeneralSet View Position in CEditView :: MFC Pin
valikac21-May-02 14:33
valikac21-May-02 14:33 
GeneralRe: Set View Position in CEditView :: MFC Pin
Prem Kumar21-May-02 21:05
Prem Kumar21-May-02 21:05 
GeneralRe: Set View Position in CEditView :: MFC Pin
valikac22-May-02 4:47
valikac22-May-02 4:47 
GeneralCStringArray Pin
21-May-02 14:11
suss21-May-02 14:11 
GeneralRe: CStringArray Pin
soptest21-May-02 14:27
soptest21-May-02 14:27 
General10x Pin
21-May-02 14:32
suss21-May-02 14:32 
General#include error Pin
Coremn21-May-02 14:08
Coremn21-May-02 14:08 
I have the following problem. I have included this header file many times in my code with no problems. Then I "included" it into a new file which now produces errors in my typedef statement. I really dont know if it is a problem with namespace as I have no idea how to use that correctly anyway.

Code for "entity.h"
<br />
#include <list.h><br />
<br />
using namespace std ;<br />
<br />
typedef struct<br />
{<br />
	int ref;<br />
	std::string name;<br />
<br />
}EntityData;<br />
typedef	list<EntityData> ENTITYLIST;<br />

How can I include this file with out errors??

Code for "NewFile.cpp"
<br />
#include "stdafx.h"<br />
#include "NewFile.h"<br />
#include <list.h><br />
#include "entity.h"     //This produces errors from entity.h <code>:confused: 


using namespace std;

Pease help!!


---
GeneralRe: #include error Pin
Coremn21-May-02 14:16
Coremn21-May-02 14:16 
GeneralRe: #include error Pin
soptest21-May-02 14:22
soptest21-May-02 14:22 
GeneralRe: #include error Pin
Coremn21-May-02 14:32
Coremn21-May-02 14:32 
GeneralRe: #include error Pin
Paul M Watt21-May-02 17:55
mentorPaul M Watt21-May-02 17:55 
GeneralRe: #include error Pin
Alexandru Savescu21-May-02 20:44
Alexandru Savescu21-May-02 20:44 
GeneralDCOM exe name in taskmanager Pin
21-May-02 12:50
suss21-May-02 12:50 
GeneralRe: DCOM exe name in taskmanager Pin
Jason Henderson21-May-02 17:14
Jason Henderson21-May-02 17:14 
GeneralVisual C++ Linking Error Pin
afronaut21-May-02 12:29
afronaut21-May-02 12:29 
GeneralRe: Visual C++ Linking Error Pin
Rama Krishna Vavilala21-May-02 12:46
Rama Krishna Vavilala21-May-02 12:46 
GeneralRe: Visual C++ Linking Error Pin
Christian Graus21-May-02 12:51
protectorChristian Graus21-May-02 12:51 
GeneralRe: Visual C++ Linking Error Pin
Tim Smith21-May-02 14:01
Tim Smith21-May-02 14:01 
GeneralRe: Visual C++ Linking Error Pin
Christian Graus21-May-02 12:50
protectorChristian Graus21-May-02 12:50 
GeneralRe: Visual C++ Linking Error Pin
SevereHammer21-May-02 20:41
SevereHammer21-May-02 20:41 
GeneralReference material on Memory Management Pin
Anton A. Loukine21-May-02 12:05
Anton A. Loukine21-May-02 12:05 
GeneralRe: Reference material on Memory Management Pin
perlmunger21-May-02 17:29
perlmunger21-May-02 17:29 
GeneralRe: Reference material on Memory Management Pin
Alex Cramer21-May-02 20:14
Alex Cramer21-May-02 20:14 
GeneralRe: Structs: heap or stack Pin
Anton A. Loukine22-May-02 3:42
Anton A. Loukine22-May-02 3:42 

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.