Click here to Skip to main content
15,902,737 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Russian string to/from file Pin
Ryan Binns16-Jul-03 4:11
Ryan Binns16-Jul-03 4:11 
GeneralGet Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 3:41
Nathan Blomquist16-Jul-03 3:41 
GeneralRe: Get Number of Logical Processors Pin
valikac16-Jul-03 4:46
valikac16-Jul-03 4:46 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
GeneralRe: Get Number of Logical Processors Pin
basementman16-Jul-03 4:55
basementman16-Jul-03 4:55 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist16-Jul-03 7:41
Nathan Blomquist16-Jul-03 7:41 
GeneralRe: Get Number of Logical Processors Pin
Nathan Blomquist17-Jul-03 6:48
Nathan Blomquist17-Jul-03 6:48 
GeneralDeclaration Question Pin
Brian van der Beek16-Jul-03 3:23
Brian van der Beek16-Jul-03 3:23 
I need 2 structures that have references to eachother. In this situation I need to do some forward declaring. I know how to do this when using a reference (pointer) to the other structure, but I don't want to use pointers so I don't have to create the structure with new and destroying them with delete when I don't need them anymore.

So what my question basically comes down to, is it possible to have circular references without using pointers? e.g. something like:

<br />
typedef std::list<struct TParamValue> TParamValues;<br />
typedef std::list<struct TParamField> TParamFields;<br />
<br />
typedef struct TParamValue<br />
{<br />
    CString      value;       //!< parameter field value<br />
    CString      description; //!< value description<br />
    TParamFields fields;      //!< dependend parameter fields<br />
} TParamValue;<br />
 <br />
typedef struct TParamField<br />
{<br />
    unsigned long index;        //!< index of the field<br />
    unsigned long bits;         //!< byte size of the field value(s)<br />
    CString       description;  //!< field description<br />
    CString       currentValue; //!< current (default) field value<br />
    TParamValues  values;       //!< collection of field values<br />
} TParamField;<br />

GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:07
Ryan Binns16-Jul-03 4:07 
GeneralRe: Declaration Question Pin
Brian van der Beek16-Jul-03 4:54
Brian van der Beek16-Jul-03 4:54 
GeneralRe: Declaration Question Pin
Ryan Binns16-Jul-03 4:59
Ryan Binns16-Jul-03 4:59 
GeneralCWebBrowser2 scrollbar question. Pin
Maximilien16-Jul-03 3:16
Maximilien16-Jul-03 3:16 
GeneralKeyboard indicator problems Pin
Artem Moroz16-Jul-03 3:16
Artem Moroz16-Jul-03 3:16 
GeneralProblem with WM_CTLCOLOR Pin
Cheickna16-Jul-03 2:56
Cheickna16-Jul-03 2:56 
GeneralRe: Problem with WM_CTLCOLOR Pin
Ryan Binns16-Jul-03 3:01
Ryan Binns16-Jul-03 3:01 
GeneralRe: Problem with WM_CTLCOLOR Pin
wb16-Jul-03 3:16
wb16-Jul-03 3:16 
QuestionAny effective way to know a process is dead? Pin
anqin15-Jul-03 16:06
anqin15-Jul-03 16:06 
AnswerRe: Any effective way to know a process is dead? Pin
Phil Martin15-Jul-03 17:51
professionalPhil Martin15-Jul-03 17:51 
GeneralSMTP in MFC Pin
DougW4815-Jul-03 15:41
DougW4815-Jul-03 15:41 
GeneralRe: SMTP in MFC Pin
Ryan Binns15-Jul-03 20:44
Ryan Binns15-Jul-03 20:44 
GeneralRe: SMTP in MFC Pin
markkuk16-Jul-03 3:32
markkuk16-Jul-03 3:32 
GeneralRe: SMTP in MFC Pin
Ryan Binns16-Jul-03 4:19
Ryan Binns16-Jul-03 4:19 
GeneralRe: SMTP in MFC Pin
Ravi Bhavnani16-Jul-03 4:08
professionalRavi Bhavnani16-Jul-03 4:08 
GeneralRe: SMTP in MFC Pin
Lhenno Ferrari16-Jul-03 6:44
Lhenno Ferrari16-Jul-03 6:44 
Generaldrawing line numbers in MFC Pin
mcguile25715-Jul-03 15:12
mcguile25715-Jul-03 15:12 

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.