Click here to Skip to main content
15,905,913 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
GeneralRe: Proper way to include header files Pin
James R. Twine18-Jun-04 11:42
James R. Twine18-Jun-04 11:42 
GeneralRe: Proper way to include header files Pin
Weiye Chen18-Jun-04 15:59
Weiye Chen18-Jun-04 15:59 
GeneralScript Hosting advice Pin
wcmcgr18-Jun-04 9:26
wcmcgr18-Jun-04 9:26 
GeneralRe: Script Hosting advice Pin
Michael P Butler19-Jun-04 2:38
Michael P Butler19-Jun-04 2:38 
GeneralVC++ 6.0 developer neaded Pin
Irek Zielinski18-Jun-04 8:54
Irek Zielinski18-Jun-04 8:54 
GeneralRe: VC++ 6.0 developer neaded Pin
gamitech18-Jun-04 9:08
gamitech18-Jun-04 9:08 
GeneralRe: VC++ 6.0 developer neaded Pin
Irek Zielinski18-Jun-04 9:11
Irek Zielinski18-Jun-04 9:11 
GeneralExplorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222218-Jun-04 8:53
sas222218-Jun-04 8:53 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
grigri21-Jun-04 2:43
grigri21-Jun-04 2:43 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222221-Jun-04 5:26
sas222221-Jun-04 5:26 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
grigri22-Jun-04 9:47
grigri22-Jun-04 9:47 
GeneralRe: Explorer Selected File - how to retrieve from ToolBar (ToolBand) Pin
sas222223-Jun-04 3:33
sas222223-Jun-04 3:33 
GeneralVC++ ActiveX Pin
Wender Oliveira18-Jun-04 7:38
Wender Oliveira18-Jun-04 7:38 
GeneralRe: VC++ ActiveX Pin
TimWallace18-Jun-04 9:14
TimWallace18-Jun-04 9:14 
GeneralRe: VC++ ActiveX Pin
Wender Oliveira18-Jun-04 9:19
Wender Oliveira18-Jun-04 9: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.