Click here to Skip to main content
15,910,980 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Casting Cstring to int Pin
Marc Soleda1-Aug-05 22:44
Marc Soleda1-Aug-05 22:44 
GeneralRe: Casting Cstring to int Pin
Neelesh K J Jain1-Aug-05 22:52
Neelesh K J Jain1-Aug-05 22:52 
QuestionGetting ptr to IHTMLDocument2 from IHTMLElement? Pin
David Fleming1-Aug-05 22:12
David Fleming1-Aug-05 22:12 
AnswerRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
Marc Soleda1-Aug-05 23:10
Marc Soleda1-Aug-05 23:10 
GeneralRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
David Fleming3-Aug-05 18:44
David Fleming3-Aug-05 18:44 
GeneralRe: Getting ptr to IHTMLDocument2 from IHTMLElement? Pin
Marc Soleda3-Aug-05 20:45
Marc Soleda3-Aug-05 20:45 
Generaltroubles on exchanging data between dialog Pin
firebolt771-Aug-05 22:02
firebolt771-Aug-05 22:02 
GeneralRe: troubles on exchanging data between dialog Pin
khan++1-Aug-05 23:29
khan++1-Aug-05 23:29 
I am not sure about the rest of your code, but...

firebolt77 wrote:
//I try to test it using message box, but the message box shows nothing
MessageBox(dlg->m_listAddNeighbor.GetItemText(0,1));


This is definitely not going to work, because all controls on a dialog die, when DoModal() comes back. Therefore, you are using GetItemText() from a list control that does not exist.
You can try this:
Keep a list. E.g, CStringArray variable in your dialog, then override OnOK(), and fill this CStringArray with the items etc in OnOK(). Then later, after DoModal(), you can access this list, and it will still contain the data.


this is this.
GeneralRe: troubles on exchanging data between dialog Pin
firebolt772-Aug-05 0:21
firebolt772-Aug-05 0:21 
GeneralRe: troubles on exchanging data between dialog Pin
Marc Soleda1-Aug-05 23:40
Marc Soleda1-Aug-05 23:40 
GeneralRe: troubles on exchanging data between dialog Pin
David Crow2-Aug-05 3:59
David Crow2-Aug-05 3:59 
Generalmultiple selction in combo box Pin
Anonymous1-Aug-05 21:26
Anonymous1-Aug-05 21:26 
GeneralRe: multiple selction in combo box Pin
Marc Soleda1-Aug-05 22:34
Marc Soleda1-Aug-05 22:34 
Generalpassing values b/w Dialog boxes Pin
Member 20725781-Aug-05 21:13
Member 20725781-Aug-05 21:13 
GeneralRe: passing values b/w Dialog boxes Pin
khan++1-Aug-05 21:39
khan++1-Aug-05 21:39 
GeneralRe: passing values b/w Dialog boxes Pin
Member 20725781-Aug-05 22:06
Member 20725781-Aug-05 22:06 
GeneralRe: passing values b/w Dialog boxes Pin
khan++1-Aug-05 23:02
khan++1-Aug-05 23:02 
GeneralReading an *.Dat File(Again) Pin
a_david1231-Aug-05 20:49
a_david1231-Aug-05 20:49 
GeneralRe: Reading an *.Dat File(Again) Pin
khan++1-Aug-05 21:22
khan++1-Aug-05 21:22 
GeneralRe: Reading an *.Dat File(Again) Pin
David Crow2-Aug-05 4:02
David Crow2-Aug-05 4:02 
GeneralExplorer type application Pin
BicycleTheif1-Aug-05 20:47
BicycleTheif1-Aug-05 20:47 
GeneralRe: Explorer type application Pin
P-Rex1-Aug-05 23:19
P-Rex1-Aug-05 23:19 
GeneralRe: Explorer type application Pin
David Crow2-Aug-05 4:07
David Crow2-Aug-05 4:07 
Generalimage subtraction Pin
htv221-Aug-05 20:44
htv221-Aug-05 20:44 
GeneralRe: image subtraction Pin
johny_d2-Aug-05 1:26
johny_d2-Aug-05 1:26 

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.