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

C / C++ / MFC

 
QuestionVisual C++ Problem Pin
Anonymous21-Sep-05 6:09
Anonymous21-Sep-05 6:09 
QuestionThe C++ function to create an instance given a class name. Pin
Member 139789321-Sep-05 5:58
Member 139789321-Sep-05 5:58 
AnswerRe: The C++ function to create an instance given a class name. Pin
Cedric Moonen21-Sep-05 6:08
Cedric Moonen21-Sep-05 6:08 
AnswerRe: The C++ function to create an instance given a class name. Pin
Nemanja Trifunovic21-Sep-05 6:12
Nemanja Trifunovic21-Sep-05 6:12 
AnswerRe: The C++ function to create an instance given a class name. Pin
Chris Losinger21-Sep-05 6:18
professionalChris Losinger21-Sep-05 6:18 
AnswerRe: The C++ function to create an instance given a class name. Pin
Shog921-Sep-05 6:21
sitebuilderShog921-Sep-05 6:21 
QuestionStandard for inlining code Pin
Rob Caldecott21-Sep-05 4:47
Rob Caldecott21-Sep-05 4:47 
AnswerRe: Standard for inlining code Pin
Cedric Moonen21-Sep-05 4:54
Cedric Moonen21-Sep-05 4:54 
I don't know the response to your question but I just wanted to make a remark: when you define a function in your header file, it is always considered as an inline function.

From MSDN website:

A class's member functions can be declared inline either by using the inline keyword or by placing the function definition within the class definition.


Example 2

// inline_keyword2.cpp<br />
// compile with: /EHsc<br />
#include <iostream><br />
using namespace std;<br />
<br />
class MyClass<br />
{<br />
public:<br />
   void print() { cout << i << ' '; }   // Implicitly inline<br />
private:<br />
   int i;<br />
};<br />
<br />
int main()<br />
{<br />
}

GeneralRe: Standard for inlining code Pin
Rob Caldecott21-Sep-05 4:59
Rob Caldecott21-Sep-05 4:59 
AnswerRe: Standard for inlining code Pin
Blake Miller21-Sep-05 5:09
Blake Miller21-Sep-05 5:09 
AnswerRe: Standard for inlining code Pin
Nemanja Trifunovic21-Sep-05 5:15
Nemanja Trifunovic21-Sep-05 5:15 
AnswerRe: Standard for inlining code Pin
Roger Stoltz21-Sep-05 5:56
Roger Stoltz21-Sep-05 5:56 
AnswerRe: Standard for inlining code Pin
David Crow21-Sep-05 7:04
David Crow21-Sep-05 7:04 
GeneralRe: Standard for inlining code Pin
Rob Caldecott21-Sep-05 7:05
Rob Caldecott21-Sep-05 7:05 
GeneralRe: Standard for inlining code Pin
David Crow21-Sep-05 7:18
David Crow21-Sep-05 7:18 
GeneralRe: Standard for inlining code Pin
Nemanja Trifunovic21-Sep-05 7:40
Nemanja Trifunovic21-Sep-05 7:40 
GeneralRe: Standard for inlining code Pin
David Crow22-Sep-05 2:20
David Crow22-Sep-05 2:20 
AnswerRe: Standard for inlining code Pin
User 58385221-Sep-05 20:37
User 58385221-Sep-05 20:37 
GeneralRe: Standard for inlining code Pin
John R. Shaw21-Sep-05 21:01
John R. Shaw21-Sep-05 21:01 
GeneralRe: Standard for inlining code Pin
David Crow22-Sep-05 2:23
David Crow22-Sep-05 2:23 
AnswerRe: Standard for inlining code Pin
John R. Shaw21-Sep-05 21:20
John R. Shaw21-Sep-05 21:20 
QuestionInterfacing Pin
benjnp21-Sep-05 4:42
benjnp21-Sep-05 4:42 
AnswerRe: Interfacing Pin
Bob Stanneveld21-Sep-05 5:30
Bob Stanneveld21-Sep-05 5:30 
GeneralRe: Interfacing Pin
benjnp21-Sep-05 14:45
benjnp21-Sep-05 14:45 
GeneralRe: Interfacing Pin
Bob Stanneveld21-Sep-05 20:14
Bob Stanneveld21-Sep-05 20:14 

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.