Click here to Skip to main content
15,922,630 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: file stream help pleaseeee Pin
Robert A. T. Káldy30-Mar-04 5:08
Robert A. T. Káldy30-Mar-04 5:08 
GeneralRe: file stream help pleaseeee Pin
Antti Keskinen30-Mar-04 8:35
Antti Keskinen30-Mar-04 8:35 
GeneralSome questions about inline function Pin
nachilau29-Mar-04 16:26
nachilau29-Mar-04 16:26 
GeneralRe: Some questions about inline function Pin
Ryan Binns29-Mar-04 16:50
Ryan Binns29-Mar-04 16:50 
GeneralRe: Some questions about inline function Pin
Maxwell Chen29-Mar-04 16:52
Maxwell Chen29-Mar-04 16:52 
GeneralRe: Some questions about inline function Pin
Christian Graus29-Mar-04 17:49
protectorChristian Graus29-Mar-04 17:49 
GeneralRe: Some questions about inline function Pin
includeh1029-Mar-04 18:18
includeh1029-Mar-04 18:18 
GeneralRe: Some questions about inline function Pin
jhwurmbach30-Mar-04 2:35
jhwurmbach30-Mar-04 2:35 
includeh10 wrote:
public int Get();
};
inline
int MyClass::Get(){return 1;}

2.in case of you need to put your code on head file (e.g. craete library)


In fact, the compiler is trying to inline any function defined in the *.h-file. Regardless of inline or not.
If you want to suggest to inline a function with a body in the *.cpp-file, you add inline before the declaration in the header file.
In any case, you are only giving a suggestion, you can not force the compiler to do the inlining.





"We trained hard, but it seemed that every time we were beginning to form up into teams we would be reorganised. I was to learn later in life that we tend to meet any new situation by reorganising: and a wonderful method it can be for creating the illusion of progress, while producing confusion, inefficiency and demoralisation."

-- Caius Petronius, Roman Consul, 66 A.D.

GeneralRe: Some questions about inline function Pin
includeh1030-Mar-04 6:06
includeh1030-Mar-04 6:06 
GeneralListView_GetItemText crashes Outlook Pin
jphillips_2003@hotmail.com29-Mar-04 15:07
jphillips_2003@hotmail.com29-Mar-04 15:07 
GeneralRe: ListView_GetItemText crashes Outlook Pin
Ryan Binns29-Mar-04 16:53
Ryan Binns29-Mar-04 16:53 
GeneralRe: ListView_GetItemText crashes Outlook Pin
jphillips_2003@hotmail.com29-Mar-04 17:30
jphillips_2003@hotmail.com29-Mar-04 17:30 
GeneralRe: ListView_GetItemText crashes Outlook Pin
jphillips_2003@hotmail.com29-Mar-04 19:24
jphillips_2003@hotmail.com29-Mar-04 19:24 
QuestionGlobal variable across multiple source files? Pin
LudaLuda29-Mar-04 14:23
LudaLuda29-Mar-04 14:23 
AnswerRe: Global variable across multiple source files? Pin
Rick York29-Mar-04 14:36
mveRick York29-Mar-04 14:36 
AnswerRe: Global variable across multiple source files? Pin
Christian Graus29-Mar-04 14:37
protectorChristian Graus29-Mar-04 14:37 
GeneralRe: Global variable across multiple source files? Pin
Robert A. T. Káldy29-Mar-04 22:46
Robert A. T. Káldy29-Mar-04 22:46 
GeneralRe: Global variable across multiple source files? Pin
Tim Smith30-Mar-04 4:03
Tim Smith30-Mar-04 4:03 
AnswerRe: Global variable across multiple source files? Pin
Curi0us_George29-Mar-04 14:43
Curi0us_George29-Mar-04 14:43 
GeneralCStaticLInk is not working good in CPropertyPage Pin
bin892229-Mar-04 12:44
bin892229-Mar-04 12:44 
GeneralAppending text in an Edit Box Pin
satcat29-Mar-04 12:42
satcat29-Mar-04 12:42 
GeneralRe: Appending text in an Edit Box Pin
l a u r e n29-Mar-04 13:06
l a u r e n29-Mar-04 13:06 
GeneralAccessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 12:16
beamer_202029-Mar-04 12:16 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
Christian Graus29-Mar-04 12:30
protectorChristian Graus29-Mar-04 12:30 
GeneralRe: Accessing instances (fields) fron one class in another class Pin
beamer_202029-Mar-04 14:51
beamer_202029-Mar-04 14:51 

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.