Click here to Skip to main content
16,003,629 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get address of an instance Pin
Christian Graus25-Jul-02 13:45
protectorChristian Graus25-Jul-02 13:45 
GeneralRe: How to get address of an instance Pin
soptest25-Jul-02 14:22
soptest25-Jul-02 14:22 
GeneralRe: How to get address of an instance Pin
Christian Graus25-Jul-02 14:31
protectorChristian Graus25-Jul-02 14:31 
GeneralRe: How to get address of an instance Pin
Daniel Lohmann25-Jul-02 14:39
Daniel Lohmann25-Jul-02 14:39 
GeneralRe: How to get address of an instance Pin
Christian Graus25-Jul-02 14:52
protectorChristian Graus25-Jul-02 14:52 
GeneralRe: How to get address of an instance Pin
Mukkie26-Jul-02 5:32
Mukkie26-Jul-02 5:32 
AnswerRe: How to get address of an instance Pin
includeh1026-Jul-02 1:04
includeh1026-Jul-02 1:04 
AnswerRe: How to get address of an instance Pin
Anonymous26-Jul-02 10:22
Anonymous26-Jul-02 10:22 
It would be possible to sort of hide the constructor of the CVariable class, and to instead, have variables allocated by the CVariableManager class. Something like this maybe:

<br />
class CVariableManager;<br />
class CVariable()<br />
{<br />
private:<br />
   friend class CVariableManager;<br />
   CVariable( /* params go here */ );<br />
   ~CVariable();<br />
<br />
public:<br />
   // Other stuff here.<br />
};<br />
<br />
// Probably in another header file somewhere...<br />
class CVariableManager<br />
{<br />
public:<br />
   CVariableManager();<br />
   ~CVariableManager();<br />
  <br />
   CVariable * CreateVariable( /* params go here */ ); // Define this function to create a new variable, add it to the list, and return it.<br />
   void        DeleteVariable( CVariable * p_poVariable ); // Define this function to delete the given variable and remove it from the list.<br />
};<br />


Then you can use the CVariableManager to actually manage the variable creation and deletion.

Chris Richardson
QuestionHow to declare a SomeType &var in the header file? Pin
nss25-Jul-02 13:03
nss25-Jul-02 13:03 
AnswerRe: How to declare a SomeType &var in the header file? Pin
Christian Graus25-Jul-02 13:41
protectorChristian Graus25-Jul-02 13:41 
GeneralRe: How to declare a SomeType &var in the header file? Pin
nss25-Jul-02 15:30
nss25-Jul-02 15:30 
GeneralRe: How to declare a SomeType &var in the header file? Pin
Christian Graus25-Jul-02 15:47
protectorChristian Graus25-Jul-02 15:47 
AnswerRe: How to declare a SomeType &var in the header file? Pin
pépé26-Jul-02 2:52
pépé26-Jul-02 2:52 
GeneralRe: How to declare a SomeType &var in the header file? Pin
ns26-Jul-02 3:43
ns26-Jul-02 3:43 
QuestionHow to get server side system time? Pin
Tida25-Jul-02 11:07
Tida25-Jul-02 11:07 
AnswerRe: How to get server side system time? Pin
jmkhael25-Jul-02 11:58
jmkhael25-Jul-02 11:58 
AnswerRe: How to get server side system time? Pin
Joaquín M López Muñoz25-Jul-02 12:03
Joaquín M López Muñoz25-Jul-02 12:03 
AnswerRe: How to get server side system time? Pin
Carlos Antollini25-Jul-02 12:17
Carlos Antollini25-Jul-02 12:17 
QuestionCan I call OnItemChanged by force? Pin
nss25-Jul-02 10:47
nss25-Jul-02 10:47 
AnswerLVN_ITEMCHANGED, but whats the way to send this message? Pin
nss25-Jul-02 11:20
nss25-Jul-02 11:20 
AnswerRe: Can I call OnItemChanged by force? Pin
Shog925-Jul-02 11:57
sitebuilderShog925-Jul-02 11:57 
GeneralOverriding Context Help button Pin
esapp42025-Jul-02 10:30
esapp42025-Jul-02 10:30 
Generalprintpreview Pin
Anthony988725-Jul-02 8:44
Anthony988725-Jul-02 8:44 
GeneralRe: printpreview Pin
Chris Losinger25-Jul-02 8:56
professionalChris Losinger25-Jul-02 8:56 
General<code>delete this;</code> Pin
Le centriste25-Jul-02 8:10
Le centriste25-Jul-02 8:10 

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.