Click here to Skip to main content
15,898,745 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Thread Response Time Pin
David Crow13-Mar-08 2:24
David Crow13-Mar-08 2:24 
GeneralRe: Thread Response Time Pin
jonsey2984713-Mar-08 12:30
jonsey2984713-Mar-08 12:30 
QuestionRe: Thread Response Time Pin
David Crow14-Mar-08 2:39
David Crow14-Mar-08 2:39 
AnswerRe: Thread Response Time Pin
jonsey2984718-Mar-08 4:30
jonsey2984718-Mar-08 4:30 
Generalopaque pointer Pin
George_George12-Mar-08 16:36
George_George12-Mar-08 16:36 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:30
Maxwell Chen12-Mar-08 18:30 
GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:35
George_George12-Mar-08 18:35 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:42
Maxwell Chen12-Mar-08 18:42 
You have seen the C++ sample code on Wikipedia page.

As we know that if you declare an object member (as sample below):
class Object
{
  // ...
};
class User
{
  Object obj;
};
If you change anything to class Object's definition, the compiler recompiles class User (regarding to compilation unit), too.
But if you change into the below, it won't need to recompile class User.
class User
{
  class Object;
  Object* pObj;
};
class User::Object
{
  // ...
};


  Maxwell Chen

GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:49
George_George12-Mar-08 18:49 
GeneralRe: opaque pointer Pin
Maxwell Chen12-Mar-08 18:54
Maxwell Chen12-Mar-08 18:54 
GeneralRe: opaque pointer Pin
George_George12-Mar-08 18:56
George_George12-Mar-08 18:56 
GeneralRe: opaque pointer Pin
Eytukan13-Mar-08 7:03
Eytukan13-Mar-08 7:03 
AnswerRe: opaque pointer Pin
Maxwell Chen13-Mar-08 9:24
Maxwell Chen13-Mar-08 9:24 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 15:14
George_George13-Mar-08 15:14 
GeneralRe: opaque pointer Pin
Eytukan13-Mar-08 16:06
Eytukan13-Mar-08 16:06 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 16:32
George_George13-Mar-08 16:32 
GeneralRe: opaque pointer Pin
Maxwell Chen13-Mar-08 19:04
Maxwell Chen13-Mar-08 19:04 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 14:50
George_George13-Mar-08 14:50 
GeneralRe: opaque pointer Pin
Maxwell Chen13-Mar-08 9:25
Maxwell Chen13-Mar-08 9:25 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 14:57
George_George13-Mar-08 14:57 
GeneralRe: opaque pointer Pin
Maxwell Chen13-Mar-08 19:09
Maxwell Chen13-Mar-08 19:09 
AnswerRe: opaque pointer Pin
Maxwell Chen13-Mar-08 19:13
Maxwell Chen13-Mar-08 19:13 
GeneralRe: opaque pointer Pin
George_George13-Mar-08 19:21
George_George13-Mar-08 19:21 
Questionconstructor for POD types? Pin
George_George12-Mar-08 15:51
George_George12-Mar-08 15:51 
AnswerRe: constructor for POD types? Pin
Michael Dunn12-Mar-08 19:20
sitebuilderMichael Dunn12-Mar-08 19:20 

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.