Click here to Skip to main content
16,007,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: First-chance Exception in C++ Runtime Pin
Ravi Bhavnani2-Nov-02 14:09
professionalRavi Bhavnani2-Nov-02 14:09 
GeneralRe: First-chance Exception in C++ Runtime Pin
Roger Wright2-Nov-02 18:29
professionalRoger Wright2-Nov-02 18:29 
GeneralCalendar Control Problem Pin
Anonymous2-Nov-02 11:00
Anonymous2-Nov-02 11:00 
GeneralReading binary files with c stdio fread Pin
Anonymous2-Nov-02 10:18
Anonymous2-Nov-02 10:18 
GeneralRe: Reading binary files with c stdio fread Pin
Anders Molin3-Nov-02 2:48
professionalAnders Molin3-Nov-02 2:48 
GeneralSerialization Progress Pin
Ted Christiansen2-Nov-02 9:42
Ted Christiansen2-Nov-02 9:42 
GeneralRe: Serialization Progress Pin
ian mariano2-Nov-02 9:51
ian mariano2-Nov-02 9:51 
GeneralPhilosophical question Pin
Chris Losinger2-Nov-02 9:21
professionalChris Losinger2-Nov-02 9:21 
if you have a file, foo.cpp, which contains the implementations of some (C-style, not classes) functions used elsewhere in the app, and a header file, foo.h, which defines those functions, would you #include "foo.h" inside foo.cpp ?

assume there's nothing in foo.h that foo.cpp needs: no constants, struct definitions, etc. foo.h simply provides an external definition of the functions in foo.cpp.

strictly, i think it's unnecessary, because the functions aren't really dependent on the external definitions - that association doesn't happen until the linker gets involved and it needs to match what callers of foo's functions think those functions are to the functions that the linker has available.

on the other hand, it seems logically 'right' to associate them somehow.

opinions?

-c



“losinger is a colorizing text edit control”
-- googlism

Generallet me answer my own question... Pin
Chris Losinger2-Nov-02 9:46
professionalChris Losinger2-Nov-02 9:46 
GeneralRe: Philosophical question Pin
ian mariano2-Nov-02 9:42
ian mariano2-Nov-02 9:42 
GeneralRe: Philosophical question Pin
ColinDavies2-Nov-02 9:43
ColinDavies2-Nov-02 9:43 
GeneralRe: Philosophical question Pin
Gary R. Wheeler3-Nov-02 4:29
Gary R. Wheeler3-Nov-02 4:29 
GeneralRe: Philosophical question Pin
Chris Losinger2-Nov-02 9:49
professionalChris Losinger2-Nov-02 9:49 
GeneralRe: Philosophical question Pin
Chris Losinger3-Nov-02 5:33
professionalChris Losinger3-Nov-02 5:33 
GeneralRe: Philosophical question Pin
markkuk2-Nov-02 12:49
markkuk2-Nov-02 12:49 
GeneralRe: Philosophical question Pin
Chris Losinger2-Nov-02 13:34
professionalChris Losinger2-Nov-02 13:34 
GeneralRe: Philosophical question Pin
Anonymous4-Nov-02 4:17
Anonymous4-Nov-02 4:17 
GeneralRe: Philosophical question Pin
Gary R. Wheeler5-Nov-02 10:41
Gary R. Wheeler5-Nov-02 10:41 
QuestionDoes anyone know this error?? Pin
Pett2-Nov-02 8:50
Pett2-Nov-02 8:50 
AnswerRe: Does anyone know this error?? Pin
Anonymous2-Nov-02 13:42
Anonymous2-Nov-02 13:42 
GeneralRe: Does anyone know this error?? Pin
Pett3-Nov-02 4:48
Pett3-Nov-02 4:48 
QuestionNewbie question - C++ 6.0 Pro or Standard? Pin
jta2-Nov-02 8:17
jta2-Nov-02 8:17 
AnswerRe: Newbie question - C++ 6.0 Pro or Standard? Pin
ian mariano2-Nov-02 10:04
ian mariano2-Nov-02 10:04 
GeneralI/O Completion Port and Queue Status :: Winsock Pin
valikac2-Nov-02 8:04
valikac2-Nov-02 8:04 
GeneralRe: I/O Completion Port and Queue Status :: Winsock Pin
ian mariano2-Nov-02 10:09
ian mariano2-Nov-02 10:09 

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.