Click here to Skip to main content
15,889,281 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalin view of MDI app OnMove() never happens Pin
T.T.H.13-Jan-05 22:45
T.T.H.13-Jan-05 22:45 
GeneralRe: in view of MDI app OnMove() never happens Pin
Iain Clarke, Warrior Programmer13-Jan-05 23:44
Iain Clarke, Warrior Programmer13-Jan-05 23:44 
GeneralHelp For ToolTipText in VC++ Pin
phijophlip13-Jan-05 22:03
phijophlip13-Jan-05 22:03 
Questionhow to get ethernet card ip address Pin
vc-programmer-13-Jan-05 21:44
vc-programmer-13-Jan-05 21:44 
AnswerRe: how to get ethernet card ip address Pin
pc_dev13-Jan-05 23:05
pc_dev13-Jan-05 23:05 
GeneralRe: how to get ethernet card ip address Pin
vc-programmer-13-Jan-05 23:22
vc-programmer-13-Jan-05 23:22 
GeneralRe: how to get ethernet card ip address Pin
David Crow14-Jan-05 2:54
David Crow14-Jan-05 2:54 
General#include header files order. Pin
rbid13-Jan-05 21:34
rbid13-Jan-05 21:34 
Hello,

For years I was using a methodology described in Ellemtel Code Conventions and Rules[^], but lately I had a discussion with a collegue about the order of #include files on a C/C++ source file.

The header files contain:
  1. All header files contain a technique for preventing multiple inclusion
  2. All modules contain a public header file for providing prototypes and other dirty stuff towards the world. (most of the cases all the modules contain a pair of files: header and implementation)
  3. Some modules have also a private header file.
  4. Any header file can contain preprocessor stuff, type definitions, global variables. and function prototypes

What is the order you think these include files should appear on any implementation file? (pick them out of the list below)
  • Group A: System header files(#include <....>)
  • Group B: Public header file for the file.
  • Group C: Private header file for the module if any.
  • Group D: Other header files from your code.


In your oppinion, what is the correct include order? (Based on your experience/knowledge)


I

-- Ricky Marek (AKA: rbid)
-- "Things are only impossible until they are not" --- Jean-Luc Picard
GeneralRe: #include header files order. Pin
Iain Clarke, Warrior Programmer13-Jan-05 23:56
Iain Clarke, Warrior Programmer13-Jan-05 23:56 
GeneralRe: #include header files order. Pin
Dimitris Vikeloudas15-Jan-05 2:01
Dimitris Vikeloudas15-Jan-05 2:01 
General"Virutal" drive Pin
13-Jan-05 18:43
suss13-Jan-05 18:43 
GeneralRe: &quot;Virutal&quot; drive Pin
Ryan Binns13-Jan-05 19:18
Ryan Binns13-Jan-05 19:18 
GeneralRe: &quot;Virutal&quot; drive Pin
Mathieu Deslauriers13-Jan-05 19:49
Mathieu Deslauriers13-Jan-05 19:49 
GeneralCreate Reports similar to Access Pin
Toni7813-Jan-05 18:06
Toni7813-Jan-05 18:06 
GeneralRe: Create Reports similar to Access Pin
Andrew Walker13-Jan-05 18:46
Andrew Walker13-Jan-05 18:46 
GeneralRe: Create Reports similar to Access Pin
Ryan Binns13-Jan-05 19:23
Ryan Binns13-Jan-05 19:23 
GeneralRe: Create Reports similar to Access Pin
Iain Clarke, Warrior Programmer14-Jan-05 0:11
Iain Clarke, Warrior Programmer14-Jan-05 0:11 
GeneralRe: Create Reports similar to Access Pin
RomanBe14-Jan-05 2:45
RomanBe14-Jan-05 2:45 
GeneralRe: Create Reports similar to Access Pin
Toni7815-Jan-05 19:14
Toni7815-Jan-05 19:14 
Generalquestion &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
phijophlip13-Jan-05 17:03
phijophlip13-Jan-05 17:03 
GeneralRe: question &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
ThatsAlok13-Jan-05 17:47
ThatsAlok13-Jan-05 17:47 
GeneralRe: question &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
toxcct13-Jan-05 21:33
toxcct13-Jan-05 21:33 
GeneralRe: question &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
KaЯl14-Jan-05 1:44
KaЯl14-Jan-05 1:44 
GeneralRe: question &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
toxcct14-Jan-05 21:54
toxcct14-Jan-05 21:54 
GeneralRe: question &quot;true&quot; and &quot;TRUE&quot; in vc+++ Pin
KaЯl14-Jan-05 22:25
KaЯl14-Jan-05 22:25 

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.