Click here to Skip to main content
15,922,315 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionappearance problem ? Pin
kendao18-Jun-04 14:25
kendao18-Jun-04 14:25 
AnswerRe: appearance problem ? Pin
Michael Dunn18-Jun-04 16:36
sitebuilderMichael Dunn18-Jun-04 16:36 
Generalpipe message Pin
Anonymous18-Jun-04 11:39
Anonymous18-Jun-04 11:39 
Generalget windows 2000 domain user password hash Pin
mkrelli18-Jun-04 11:18
mkrelli18-Jun-04 11:18 
GeneralRe: get windows 2000 domain user password hash Pin
gamitech18-Jun-04 11:22
gamitech18-Jun-04 11:22 
GeneralRe: get windows 2000 domain user password hash Pin
mkrelli19-Jun-04 10:46
mkrelli19-Jun-04 10:46 
GeneralProject building .exp and .lib files for no apparent reason Pin
IGx8918-Jun-04 11:07
IGx8918-Jun-04 11:07 
GeneralRe: Project building .exp and .lib files for no apparent reason Pin
Johan Rosengren19-Jun-04 7:41
Johan Rosengren19-Jun-04 7:41 
GeneralRe: Project building .exp and .lib files for no apparent reason Pin
IGx8921-Jun-04 13:16
IGx8921-Jun-04 13:16 
GeneralHelp With App Licenses Pin
IrishSonic18-Jun-04 10:16
IrishSonic18-Jun-04 10:16 
GeneralRe: Help With App Licenses Pin
JimmyRopes10-Sep-04 16:33
professionalJimmyRopes10-Sep-04 16:33 
GeneralCFileDialog whata f...??? hehehee Pin
Nitro_gen18-Jun-04 10:09
Nitro_gen18-Jun-04 10:09 
GeneralRe: CFileDialog whata f...??? hehehee Pin
Johan Rosengren19-Jun-04 20:26
Johan Rosengren19-Jun-04 20:26 
GeneralRe: CFileDialog whata f...??? hehehee Pin
Nitro_gen23-Jun-04 9:42
Nitro_gen23-Jun-04 9:42 
GeneralGetting Time (milliseconds)m of Seconds Pin
Grahamfff18-Jun-04 10:07
Grahamfff18-Jun-04 10:07 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
John R. Shaw18-Jun-04 11:12
John R. Shaw18-Jun-04 11:12 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
gamitech18-Jun-04 11:15
gamitech18-Jun-04 11:15 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
Nick Parker18-Jun-04 11:34
protectorNick Parker18-Jun-04 11:34 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
James R. Twine18-Jun-04 11:37
James R. Twine18-Jun-04 11:37 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
Grahamfff19-Jun-04 10:51
Grahamfff19-Jun-04 10:51 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
James R. Twine18-Jun-04 11:35
James R. Twine18-Jun-04 11:35 
GeneralRe: Getting Time (milliseconds)m of Seconds Pin
J.B.19-Jun-04 5:01
J.B.19-Jun-04 5:01 
GeneralProper way to include header files Pin
georgiek5018-Jun-04 9:51
georgiek5018-Jun-04 9:51 
In regards to this thread (which I have yet to find a resolution)
http://www.codeproject.com/script/comments/forums.asp?msg=851353&forumid=1647#xx851259xx

I decided to strip away all header file includes from the code and compile the cpp files one by one in order to find the root of the problem.

All my header files are enclosed in the #ifndef #define #endif statement
and I include all necessary headers for a cpp file in a single header and along with other class and function definitions include that file...

eg.

MyFile.h
--------

#ifndef MYFILE_H
#define MYFILE_H

#include "OtherHeaderFile.h"
#include "OtherHeaderFile2.h"

class {
....
};

extern ...

#endif MYFILE_H

MyFile.cpp
----------

#include "MyFile.h"

As I start going down the list of compiled files I run into the syntax errors (from files that compiled fine higher up in the list in the list; errors are in the header files) when header files include each other as in the previous thread I posted. What are the general rules of header inclusion...there is something crucial I seem to be missing as far as these rules are concerned.

Can someone offer some advice?
GeneralRe: Proper way to include header files Pin
Johnny ²18-Jun-04 10:33
Johnny ²18-Jun-04 10:33 
GeneralRe: Proper way to include header files Pin
georgiek5018-Jun-04 18:19
georgiek5018-Jun-04 18:19 

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.