Click here to Skip to main content
15,921,382 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: File I/O : Which one to use? CFile or fstream? Pin
jahfer26-Apr-05 19:54
jahfer26-Apr-05 19:54 
GeneralRe: File I/O : Which one to use? CFile or fstream? Pin
stolid_rock26-Apr-05 20:34
stolid_rock26-Apr-05 20:34 
GeneralRe: File I/O : Which one to use? CFile or fstream? Pin
Ravi Bhavnani27-Apr-05 2:18
professionalRavi Bhavnani27-Apr-05 2:18 
QuestionHow do I save/load STL data (map & vector) Pin
Larry Mills Sr26-Apr-05 15:35
Larry Mills Sr26-Apr-05 15:35 
AnswerRe: How do I save/load STL data (map & vector) Pin
Nemanja Trifunovic26-Apr-05 16:51
Nemanja Trifunovic26-Apr-05 16:51 
AnswerRe: How do I save/load STL data (map & vector) Pin
CP Visitor26-Apr-05 22:50
CP Visitor26-Apr-05 22:50 
GeneralNeed some advice - header file issues Pin
Yguy26-Apr-05 14:09
Yguy26-Apr-05 14:09 
GeneralRe: Need some advice - header file issues Pin
PJ Arends26-Apr-05 15:23
professionalPJ Arends26-Apr-05 15:23 
The compiler has to able to find all the functions it needs in order to build your program. There are two ways that it does this. First is to look through all the files that are in the project (add to project) or it tries to find them in any libraries that are attached to your project.

What the #include directive does is inserts the code from the included file into the file that it is included in, just as if you had typed the code there yourself. So to the compiler it looks as if the code is part of the file, and thus it finds it through the first method.

If you do not want to add the cpp file to your project, you can #include it in another cpp file that is part of your project just as you would a header file. Just be sure to do this only once, or else you will get other errors.



"You're obviously a superstar." - Christian Graus about me - 12 Feb '03

"Obviously ???  You're definitely a superstar!!!" mYkel - 21 Jun '04

Within you lies the power for good - Use it!
Honoured as one of The Most Helpful Members of 2004

GeneralI figured it out... Pin
Yguy26-Apr-05 15:30
Yguy26-Apr-05 15:30 
GeneralRe: I figured it out... Pin
Rick York27-Apr-05 6:14
mveRick York27-Apr-05 6:14 
GeneralIE Form Filler Pin
Krazyman26-Apr-05 11:59
Krazyman26-Apr-05 11:59 
GeneralRe: IE Form Filler Pin
Michael Dunn26-Apr-05 12:16
sitebuilderMichael Dunn26-Apr-05 12:16 
GeneralImage Printing Pin
Member 94915926-Apr-05 11:54
Member 94915926-Apr-05 11:54 
GeneralRe: Image Printing Pin
Peter Ritchie26-Apr-05 17:48
Peter Ritchie26-Apr-05 17:48 
Generalsystem files Pin
trupgmtuf26-Apr-05 11:46
susstrupgmtuf26-Apr-05 11:46 
GeneralRe: system files Pin
Peter Ritchie26-Apr-05 17:51
Peter Ritchie26-Apr-05 17:51 
QuestionBrowseFolders Dialog on Win2k/IE5? Pin
Ingmar326-Apr-05 11:07
Ingmar326-Apr-05 11:07 
AnswerRe: BrowseFolders Dialog on Win2k/IE5? Pin
Peter Ritchie26-Apr-05 17:20
Peter Ritchie26-Apr-05 17:20 
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Ingmar326-Apr-05 21:18
Ingmar326-Apr-05 21:18 
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Peter Ritchie29-Apr-05 5:26
Peter Ritchie29-Apr-05 5:26 
GeneralRe: BrowseFolders Dialog on Win2k/IE5? Pin
Ingmar313-May-05 1:40
Ingmar313-May-05 1:40 
Generaldelete this questions Pin
Steve Messer26-Apr-05 10:42
Steve Messer26-Apr-05 10:42 
GeneralRe: delete this questions Pin
PJ Arends26-Apr-05 11:17
professionalPJ Arends26-Apr-05 11:17 
GeneralRe: delete this questions Pin
Anonymous26-Apr-05 11:27
Anonymous26-Apr-05 11:27 
GeneralRe: delete this questions Pin
Steve Messer26-Apr-05 12:02
Steve Messer26-Apr-05 12:02 

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.