Click here to Skip to main content
15,890,282 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralHelp !!! Pin
Guillermo Rivero29-Oct-03 10:19
Guillermo Rivero29-Oct-03 10:19 
GeneralRe: Help !!! Pin
Christian Graus29-Oct-03 15:06
protectorChristian Graus29-Oct-03 15:06 
GeneralCMDIChildWnd Scrollbars Pin
alex.barylski29-Oct-03 9:50
alex.barylski29-Oct-03 9:50 
GeneralRe: CMDIChildWnd Scrollbars Pin
alex.barylski29-Oct-03 11:17
alex.barylski29-Oct-03 11:17 
GeneralRe: CMDIChildWnd Scrollbars Pin
Peter Molnar29-Oct-03 12:59
Peter Molnar29-Oct-03 12:59 
QuestionWhich one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 9:24
mwhannan29-Oct-03 9:24 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
winalice29-Oct-03 9:35
winalice29-Oct-03 9:35 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
alex.barylski29-Oct-03 9:58
alex.barylski29-Oct-03 9:58 
I think that would be compiler and programmer dependant.

You as the programmer have most control over code speed... Smile | :)

However lib's are probably quicker because everything is linked at compile time and theres no additional over head for linking to an external library at runtime.

Other than that:

int b=0;

for(int i=0; i<10; i++)
  b=(b*i)+1;


I would think would compile into the same instructions regardless of output file being DLL or LIB Smile | :)


mwhannan wrote:
Also, how does one choose when to use a dll or a lib?

LIB's are usually passed around when you as the programmer wants differ modules of functionality, but in the finalized product you want one single exe...DLL's are used for keeping final product in seperate modules...making it easy to upgrade parts of your app but only updating a single file...

One is runtime and the other is compile time linkage.

Cheers Smile | :)

I'm drinking triples, seeing double and acting single Cool | :cool:
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 10:23
mwhannan29-Oct-03 10:23 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
alex.barylski29-Oct-03 10:50
alex.barylski29-Oct-03 10:50 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
mwhannan29-Oct-03 17:12
mwhannan29-Oct-03 17:12 
GeneralRe: Which one makes for faster programs: DLLs or static libraries??? Pin
melwyn31-Oct-03 3:20
melwyn31-Oct-03 3:20 
AnswerRe: Which one makes for faster programs: DLLs or static libraries??? Pin
cmk30-Oct-03 11:42
cmk30-Oct-03 11:42 
GeneralMFC Printing Pin
diseyi29-Oct-03 9:16
diseyi29-Oct-03 9:16 
GeneralRe: MFC Printing Pin
winalice29-Oct-03 9:36
winalice29-Oct-03 9:36 
GeneralRe: MFC Printing Pin
diseyi29-Oct-03 9:57
diseyi29-Oct-03 9:57 
GeneralRe: MFC Printing Pin
Steve S29-Oct-03 22:39
Steve S29-Oct-03 22:39 
GeneralControl window sizing... Pin
Nitron29-Oct-03 8:26
Nitron29-Oct-03 8:26 
GeneralNevermind... Pin
Nitron29-Oct-03 8:55
Nitron29-Oct-03 8:55 
GeneralRe: Nevermind... Pin
winalice29-Oct-03 9:37
winalice29-Oct-03 9:37 
GeneralRe: Nevermind... Pin
Nitron29-Oct-03 9:39
Nitron29-Oct-03 9:39 
GeneralRe: Control window sizing... Pin
winalice29-Oct-03 9:36
winalice29-Oct-03 9:36 
GeneralRe: Control window sizing... Pin
David Crow29-Oct-03 10:19
David Crow29-Oct-03 10:19 
QuestionMerging menus? Pin
Dominik Reichl29-Oct-03 8:22
Dominik Reichl29-Oct-03 8:22 
AnswerRe: Merging menus? Pin
igor196029-Oct-03 10:45
igor196029-Oct-03 10:45 

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.