Click here to Skip to main content
16,006,348 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: method for determining full application path Pin
David Crow20-Dec-04 9:07
David Crow20-Dec-04 9:07 
Questionone question? Pin
namaskaaram17-Dec-04 0:32
namaskaaram17-Dec-04 0:32 
AnswerRe: one question? Pin
Cedric Moonen17-Dec-04 0:54
Cedric Moonen17-Dec-04 0:54 
AnswerRe: one question? Pin
rrrado17-Dec-04 0:56
rrrado17-Dec-04 0:56 
AnswerRe: one question? Pin
John R. Shaw17-Dec-04 4:37
John R. Shaw17-Dec-04 4:37 
GeneralRe: one question? Pin
toxcct17-Dec-04 6:26
toxcct17-Dec-04 6:26 
GeneralRe: one question? Pin
John R. Shaw17-Dec-04 12:56
John R. Shaw17-Dec-04 12:56 
GeneralRe: one question? Pin
Blake Miller20-Dec-04 7:45
Blake Miller20-Dec-04 7:45 
Visual C++ 6.0 seems to have the boundary at the OBJ level.
One OBJ is made for each C or C++ file.

If you make a LIB file from one source file and it has dozens of functions in it, anything linking with the LIB gets all the functions. If you put all those functions into separate source files, you end up with many OBJ files, and link them into a single LIB. Only the functions directly called and their dependcencies are embedded within the resulting EXE file.

A classic 'library' will be designed so that functional dependencies are grouped by source file so your EXE size would be reduced. With the larger memory (virtual or not) footprints available on PC today, this does not seem to be such an issue any more.

I am not sure what the consequence of inlined functions in a header file are, probably only included as used, but EVERY one of them is repeated each time it is used, such is the reasoning for 'inline' - you are avoiding the function call!

GeneralCompile problem - precompiled headers Pin
rrrado17-Dec-04 0:27
rrrado17-Dec-04 0:27 
GeneralRe: Compile problem - precompiled headers Pin
Antony M Kancidrowski17-Dec-04 1:19
Antony M Kancidrowski17-Dec-04 1:19 
GeneralRe: Compile problem - precompiled headers Pin
rrrado17-Dec-04 2:21
rrrado17-Dec-04 2:21 
GeneralRe: Compile problem - precompiled headers Pin
rrrado17-Dec-04 3:02
rrrado17-Dec-04 3:02 
QuestionHelp :usb device monitoring ? Pin
etdo17-Dec-04 0:25
etdo17-Dec-04 0:25 
GeneralMouse wheel in Dialog application Pin
Anonymous16-Dec-04 21:45
Anonymous16-Dec-04 21:45 
GeneralRe: Mouse wheel in Dialog application Pin
PJ Arends16-Dec-04 21:55
professionalPJ Arends16-Dec-04 21:55 
GeneralProblem about finding memory leak Pin
ytod16-Dec-04 21:32
ytod16-Dec-04 21:32 
GeneralRe: Problem about finding memory leak Pin
PJ Arends16-Dec-04 22:08
professionalPJ Arends16-Dec-04 22:08 
GeneralRe: Problem about finding memory leak Pin
ytod16-Dec-04 22:26
ytod16-Dec-04 22:26 
GeneralRe: Problem about finding memory leak Pin
FayezElFar17-Dec-04 15:42
FayezElFar17-Dec-04 15:42 
GeneralDisplay unicode chars in EditBox Pin
kthanigai7416-Dec-04 21:22
susskthanigai7416-Dec-04 21:22 
GeneralRe: Display unicode chars in EditBox Pin
toxcct17-Dec-04 6:09
toxcct17-Dec-04 6:09 
GeneralActiveX ctrl not loading in browser Pin
Muhammad Azam16-Dec-04 20:10
Muhammad Azam16-Dec-04 20:10 
Questionhow to set shared scrollbars?? Pin
butterfly10116-Dec-04 19:44
butterfly10116-Dec-04 19:44 
Generalplaying audio files at different speeds Pin
Member 191911516-Dec-04 18:39
Member 191911516-Dec-04 18:39 
GeneralAlternative STL Pin
Marc Clifton16-Dec-04 16:01
mvaMarc Clifton16-Dec-04 16:01 

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.