Click here to Skip to main content
16,005,080 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: can i update a function while running project ??? Pin
c_explorer14-Jul-07 10:40
c_explorer14-Jul-07 10:40 
AnswerRe: can i update a function while running project ??? Pin
Mark Salsbery14-Jul-07 11:24
Mark Salsbery14-Jul-07 11:24 
AnswerRe: can i update a function while running project ??? Pin
ThatsAlok16-Jul-07 0:55
ThatsAlok16-Jul-07 0:55 
Generalay da Pin
N.D.Quan16-Jul-07 1:25
N.D.Quan16-Jul-07 1:25 
QuestionNeed help!!! Embedding Winsock-Server in my App Pin
c_explorer14-Jul-07 10:32
c_explorer14-Jul-07 10:32 
AnswerRe: Need help!!! Embedding Winsock-Server in my App Pin
Mark Salsbery14-Jul-07 11:28
Mark Salsbery14-Jul-07 11:28 
GeneralRe: Need help!!! Embedding Winsock-Server in my App Pin
c_explorer14-Jul-07 12:48
c_explorer14-Jul-07 12:48 
QuestionInline functions Pin
tom groezer14-Jul-07 10:11
tom groezer14-Jul-07 10:11 
// This is file example.h
inline void f() { ... } // definition of f

If i include the above header file into example1.cpp and example2.cpp in a aproject and build the project why does the linker not give an error of redefinitation assuming the compiler has inlined the funtions.

Assuming the functions are not in inlined by the compiler then they shall become static to each file. This introduces the overhead of functional call and also of making the function f() static in the translation unit of both the files according to the old rules. With new rules there is something called out of line copy of function f() that shall be generated.
Can someone shed light on the case on the scenarios and what happens when inlined functions are rejected by the compiler.
AnswerRe: Inline functions Pin
c_explorer14-Jul-07 11:47
c_explorer14-Jul-07 11:47 
AnswerRe: Inline functions Pin
Chris Losinger14-Jul-07 19:02
professionalChris Losinger14-Jul-07 19:02 
QuestionPreventing redraw. Pin
paper6714-Jul-07 10:07
paper6714-Jul-07 10:07 
AnswerRe: Preventing redraw. Pin
Mark Salsbery14-Jul-07 11:37
Mark Salsbery14-Jul-07 11:37 
QuestionCache hit rates Pin
tom groezer14-Jul-07 10:00
tom groezer14-Jul-07 10:00 
AnswerRe: Cache hit rates Pin
Steve Echols14-Jul-07 18:31
Steve Echols14-Jul-07 18:31 
GeneralRe: Cache hit rates Pin
David Crow16-Jul-07 4:54
David Crow16-Jul-07 4:54 
AnswerRe: Cache hit rates Pin
Randor 15-Jul-07 0:37
professional Randor 15-Jul-07 0:37 
QuestionObject return by value Pin
tom groezer14-Jul-07 9:30
tom groezer14-Jul-07 9:30 
AnswerRe: Object return by value Pin
DevMentor.org14-Jul-07 10:04
DevMentor.org14-Jul-07 10:04 
GeneralRe: Object return by value Pin
tom groezer14-Jul-07 13:54
tom groezer14-Jul-07 13:54 
GeneralRe: Object return by value Pin
DevMentor.org14-Jul-07 16:37
DevMentor.org14-Jul-07 16:37 
GeneralRe: Object return by value Pin
Mark Salsbery14-Jul-07 16:43
Mark Salsbery14-Jul-07 16:43 
GeneralRe: Object return by value Pin
tom groezer14-Jul-07 21:12
tom groezer14-Jul-07 21:12 
GeneralRe: Object return by value Pin
Mark Salsbery14-Jul-07 21:29
Mark Salsbery14-Jul-07 21:29 
QuestionRandom text Pin
dellthinker14-Jul-07 9:26
dellthinker14-Jul-07 9:26 
AnswerRe: Random text Pin
Perspx14-Jul-07 10:59
Perspx14-Jul-07 10:59 

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.