Click here to Skip to main content
15,921,660 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CDialog - change title Pin
Rage13-Apr-03 22:12
professionalRage13-Apr-03 22:12 
GeneralRe: CDialog - change title Pin
LittleYellowBird13-Apr-03 22:22
LittleYellowBird13-Apr-03 22:22 
Generalprogramm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 21:28
Willem B13-Apr-03 21:28 
GeneralRe: programm crashes wenn retrieving a CString Pin
Joaquín M López Muñoz13-Apr-03 23:03
Joaquín M López Muñoz13-Apr-03 23:03 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:13
Willem B13-Apr-03 23:13 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:16
Willem B13-Apr-03 23:16 
GeneralRe: programm crashes wenn retrieving a CString Pin
Willem B13-Apr-03 23:19
Willem B13-Apr-03 23:19 
GeneralRe: programm crashes wenn retrieving a CString Pin
Iain Clarke, Warrior Programmer13-Apr-03 23:07
Iain Clarke, Warrior Programmer13-Apr-03 23:07 
You need to give us some more information. From the code above it looks like you
have a pointer which you set to a new struct instance. You then point it to
a previous instance which you add to the list...? It may already be in!
You mention strings and numbers without giving us actual facts / definitions.

Try something like the following (if you like MFC):

struct Foo
{
    int nBar;
};

CTypedPtrList<CPtrList, Foo *> FooList;

Foo *f1 = new Foo;
Foo *f2 = new Foo;

f1->nBar = 3;
f1->nBar = 17;

FooList.AddTail (f1);
FooList.AddTail (f2);

Foo *f = FooList.GetHead ();
TRACE1("nBar=%i\n", f->nBar);
f = FooList.GetHead ();
TRACE1("nBar=%i\n", f->nBar);

...


There are STL equivalents to the above code, but I'm not so confident with STL to rattle
out a chunk of code off the top of my head.

Iain.
GeneralMy app. under Win98? Problem with DLL's Pin
whofmans13-Apr-03 20:40
whofmans13-Apr-03 20:40 
GeneralRe: My app. under Win98? Problem with DLL's Pin
Tal Rasha's Guardianship13-Apr-03 20:46
Tal Rasha's Guardianship13-Apr-03 20:46 
GeneralRe: My app. under Win98? Problem with DLL's Pin
whofmans13-Apr-03 21:13
whofmans13-Apr-03 21:13 
QuestionHow can I modify the menus in a multi-doc application Pin
Tal Rasha's Guardianship13-Apr-03 20:35
Tal Rasha's Guardianship13-Apr-03 20:35 
AnswerRe: How can I modify the menus in a multi-doc application Pin
Roger Allen14-Apr-03 1:46
Roger Allen14-Apr-03 1:46 
QuestionCan I design a webserivce with c#,now I want use it with c++ and webservice have session state Pin
wxdwxd13-Apr-03 19:15
wxdwxd13-Apr-03 19:15 
GeneralUpdating CListCtrl using Modal CDialog Pin
Bonnie213-Apr-03 18:06
Bonnie213-Apr-03 18:06 
GeneralRe: Updating CListCtrl using Modal CDialog Pin
Ravi Bhavnani13-Apr-03 18:25
professionalRavi Bhavnani13-Apr-03 18:25 
GeneralConvert a char* to a variant_t Pin
Paul Farry13-Apr-03 17:10
professionalPaul Farry13-Apr-03 17:10 
GeneralRe: Convert a char* to a variant_t Pin
Brian Shifrin13-Apr-03 17:46
Brian Shifrin13-Apr-03 17:46 
GeneralRe: Convert a char* to a variant_t Pin
Paul Farry13-Apr-03 19:25
professionalPaul Farry13-Apr-03 19:25 
Generaltemplate (ANSI compliance) question Pin
Anonymous13-Apr-03 15:18
Anonymous13-Apr-03 15:18 
GeneralRe: template (ANSI compliance) question Pin
Dave Bryant13-Apr-03 17:28
Dave Bryant13-Apr-03 17:28 
GeneralRe: template (ANSI compliance) question Pin
Joaquín M López Muñoz13-Apr-03 20:46
Joaquín M López Muñoz13-Apr-03 20:46 
Generalocx Pin
Shotgun13-Apr-03 11:35
Shotgun13-Apr-03 11:35 
GeneralIE Toolbar Problem Pin
DuFF13-Apr-03 10:41
DuFF13-Apr-03 10:41 
GeneralRe: IE Toolbar Problem Pin
xxhimanshu13-Apr-03 20:28
xxhimanshu13-Apr-03 20:28 

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.