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

C / C++ / MFC

 
QuestionHow to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 16:55
Member 159461422-Aug-05 16:55 
AnswerRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 17:05
Jose Lamas Rios22-Aug-05 17:05 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Member 159461422-Aug-05 18:01
Member 159461422-Aug-05 18:01 
GeneralRe: How to make text link in dialog box with Win32api? Pin
Jose Lamas Rios22-Aug-05 18:05
Jose Lamas Rios22-Aug-05 18:05 
QuestionInternet game? Pin
gr8coaster32922-Aug-05 16:14
gr8coaster32922-Aug-05 16:14 
QuestionHow can i chang the type of int to type of POSITION Pin
ebinaini22-Aug-05 15:14
ebinaini22-Aug-05 15:14 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Anonymous22-Aug-05 15:33
Anonymous22-Aug-05 15:33 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Jose Lamas Rios22-Aug-05 15:40
Jose Lamas Rios22-Aug-05 15:40 
Lists don't have indexed access using int, as arrays do. Instead you can iterate and access elements through POSITIONs. Internally, a POSITION is just a pointer to one of the list nodes, which in turn points to the actual data, but it's better if you avoid considering the internal details and just use it as an abstract POSITION, regardless of implementation details.

Iterating lists, as in the code you showed, can be written like this:
POSITION pos = str.list.GetHeadPosition();
while (pos)
{
   lst.AddTail(str.list.GetNext(pos));
}

However, if both are CStringLists, you can add one to the other like this:
lst.AddTail(str.list);



--
jlr
http://jlamas.blogspot.com/[^]
GeneralRe: How can i chang the type of int to type of POSITION Pin
ebinaini23-Aug-05 15:25
ebinaini23-Aug-05 15:25 
AnswerRe: How can i chang the type of int to type of POSITION Pin
Christian Graus22-Aug-05 15:59
protectorChristian Graus22-Aug-05 15:59 
GeneralRe: How can i chang the type of int to type of POSITION Pin
David Crow23-Aug-05 3:29
David Crow23-Aug-05 3:29 
GeneralRe: How can i chang the type of int to type of POSITION Pin
Christian Graus23-Aug-05 13:24
protectorChristian Graus23-Aug-05 13:24 
GeneralRe: How can i chang the type of int to type of POSITION Pin
David Crow23-Aug-05 16:40
David Crow23-Aug-05 16:40 
GeneralRe: How can i chang the type of int to type of POSITION Pin
Christian Graus23-Aug-05 16:52
protectorChristian Graus23-Aug-05 16:52 
GeneralRe: How can i chang the type of int to type of POSITION Pin
David Crow24-Aug-05 3:14
David Crow24-Aug-05 3:14 
GeneralRe: How can i chang the type of int to type of POSITION Pin
Christian Graus24-Aug-05 10:23
protectorChristian Graus24-Aug-05 10:23 
GeneralRe: How can i chang the type of int to type of POSITION Pin
David Crow24-Aug-05 10:40
David Crow24-Aug-05 10:40 
GeneralRe: How can i chang the type of int to type of POSITION Pin
Christian Graus24-Aug-05 10:52
protectorChristian Graus24-Aug-05 10:52 
AnswerRe: How can i chang the type of int to type of POSITION Pin
MailtoGops22-Aug-05 22:34
MailtoGops22-Aug-05 22:34 
GeneralDirectShow output buffer issue Pin
sashi_ua22-Aug-05 14:07
sashi_ua22-Aug-05 14:07 
GeneralMore linker errors Pin
Christian Graus22-Aug-05 13:33
protectorChristian Graus22-Aug-05 13:33 
GeneralRe: More linker errors Pin
Jose Lamas Rios22-Aug-05 16:53
Jose Lamas Rios22-Aug-05 16:53 
GeneralRe: More linker errors Pin
Christian Graus22-Aug-05 18:20
protectorChristian Graus22-Aug-05 18:20 
GeneralRe: More linker errors Pin
Jose Lamas Rios22-Aug-05 19:30
Jose Lamas Rios22-Aug-05 19:30 
GeneralRe: More linker errors Pin
Christian Graus22-Aug-05 19:36
protectorChristian Graus22-Aug-05 19:36 

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.