Click here to Skip to main content
15,896,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: String Manipulation Pin
Aescleal9-Aug-10 21:54
Aescleal9-Aug-10 21:54 
GeneralRe: String Manipulation Pin
ThatsAlok10-Aug-10 1:32
ThatsAlok10-Aug-10 1:32 
GeneralRe: String Manipulation Pin
Aescleal10-Aug-10 2:20
Aescleal10-Aug-10 2:20 
Questionmax number of rows in ListControl Pin
Sakhalean9-Aug-10 19:11
Sakhalean9-Aug-10 19:11 
AnswerRe: max number of rows in ListControl Pin
«_Superman_»9-Aug-10 19:43
professional«_Superman_»9-Aug-10 19:43 
QuestionWhat does this runtime error exactly mean? Pin
includeh109-Aug-10 16:37
includeh109-Aug-10 16:37 
AnswerRe: What does this runtime error exactly mean? Pin
Peter_in_27809-Aug-10 16:57
professionalPeter_in_27809-Aug-10 16:57 
AnswerRe: What does this runtime error exactly mean? Pin
Aescleal9-Aug-10 19:33
Aescleal9-Aug-10 19:33 
QuestionHow to display vertical text using DrawText Pin
Mary Chennai9-Aug-10 8:41
Mary Chennai9-Aug-10 8:41 
QuestionRe: How to display vertical text using DrawText Pin
David Crow9-Aug-10 9:33
David Crow9-Aug-10 9:33 
Questionselect the home directory for the .ini files Pin
dilara semerci9-Aug-10 4:25
dilara semerci9-Aug-10 4:25 
AnswerRe: select the home directory for the .ini files Pin
David Crow9-Aug-10 5:46
David Crow9-Aug-10 5:46 
GeneralRe: select the home directory for the .ini files Pin
dilara semerci9-Aug-10 20:12
dilara semerci9-Aug-10 20:12 
AnswerRe: select the home directory for the .ini files Pin
David Crow10-Aug-10 3:30
David Crow10-Aug-10 3:30 
Question[Solved]How to parse a URL in C++ using sscanf() [modified] Pin
Elsie9-Aug-10 4:05
Elsie9-Aug-10 4:05 
AnswerRe: How to parse a URL in C++ using sscanf() Pin
Maximilien9-Aug-10 4:10
Maximilien9-Aug-10 4:10 
QuestionRe: How to parse a URL in C++ using sscanf() Pin
David Crow9-Aug-10 4:12
David Crow9-Aug-10 4:12 
AnswerRe: How to parse a URL in C++ using sscanf() Pin
Elsie9-Aug-10 4:16
Elsie9-Aug-10 4:16 
QuestionStub dll fails to find entry point [modified] Pin
VentsyV9-Aug-10 4:04
VentsyV9-Aug-10 4:04 
AnswerRe: Stub dll fails to find entry point Pin
Richard MacCutchan9-Aug-10 22:16
mveRichard MacCutchan9-Aug-10 22:16 
QuestionCascading specific windows in a MFC MDI application Pin
Elsie9-Aug-10 3:56
Elsie9-Aug-10 3:56 
AnswerRe: Cascading specific windows in a MFC MDI application Pin
Niklas L9-Aug-10 8:09
Niklas L9-Aug-10 8:09 
QuestionCombo Box Pin
dilara semerci9-Aug-10 3:03
dilara semerci9-Aug-10 3:03 
AnswerRe: Combo Box Pin
Maximilien9-Aug-10 4:08
Maximilien9-Aug-10 4:08 
dilara semerci wrote:
i have put a combobox and added an integer typed variable m_number.


Are the two related ? what is m_number ?


dilara semerci wrote:
. I want to use this number in the other methods of the dialog


Put the variable in your dialog class.


dilara semerci wrote:
but when i write m_number it takes -1,


Write where ? what ? did you initialize the variable to something ?


dilara semerci wrote:
how can i assign the values in the combobox to that variable so that i can use it?


Do you mean the m_number variable is the index of the selected item in the combobox ?

Does the method CComboBox::SetCurSel(int nSelect) looks like something you could use ?


good luck.
M.
Watched code never compiles.

GeneralRe: Combo Box Pin
dilara semerci9-Aug-10 4:19
dilara semerci9-Aug-10 4:19 

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.