Click here to Skip to main content
15,914,419 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Where to Put ShowWindow [SOLVED] Pin
Mark Salsbery15-Oct-07 5:51
Mark Salsbery15-Oct-07 5:51 
Questiondynamic Listbox control Pin
s196675m12-Oct-07 20:52
s196675m12-Oct-07 20:52 
AnswerRe: dynamic Listbox control Pin
Hamid_RT12-Oct-07 20:55
Hamid_RT12-Oct-07 20:55 
AnswerRe: dynamic Listbox control Pin
chandu00412-Oct-07 21:23
chandu00412-Oct-07 21:23 
GeneralRe: dynamic Listbox control Pin
s196675m13-Oct-07 5:13
s196675m13-Oct-07 5:13 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 5:50
chandu00413-Oct-07 5:50 
GeneralRe: dynamic Listbox control [modified] Pin
Mark Salsbery13-Oct-07 7:06
Mark Salsbery13-Oct-07 7:06 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 7:24
chandu00413-Oct-07 7:24 
if mark's suggestion, worked for you, then its fine.
byt in my application, i have not taken a pointer *m_dynalist, instead, i took normal variable(in my case, array).it worked quite comfortably for me.

s196675m wrote:
DDX_Control(pDX, IDC_LISTTEST, *m_dynalist);//dynamic listbox



s196675m wrote:
ON_LBN_SELCHANGE(IDC_LIST, OnSelchangeDynaList)// dynamic listbox



in both the above cases, instead of IDC_LISTTEST, i have used some unique number like, for example, 10001
and i have used the same number while creation in the initdialog.

what i observe in your case is, you are declaring it as pointer and you are not creating memory for it using new.

if iam right, try creaitng the memory and see or use normal variable instead of pointer.
any more clarifications required?




Suggestion to the members:
prefix your main thread subject with [SOLVED] if it is solved.
chandu.

GeneralRe: dynamic Listbox control Pin
s196675m13-Oct-07 7:57
s196675m13-Oct-07 7:57 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 8:03
Mark Salsbery13-Oct-07 8:03 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 8:09
chandu00413-Oct-07 8:09 
GeneralRe: dynamic Listbox control Pin
s196675m13-Oct-07 8:50
s196675m13-Oct-07 8:50 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 9:54
chandu00413-Oct-07 9:54 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 8:10
Mark Salsbery13-Oct-07 8:10 
GeneralRe: dynamic Listbox control Pin
s196675m13-Oct-07 8:52
s196675m13-Oct-07 8:52 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 10:02
Mark Salsbery13-Oct-07 10:02 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 10:45
Mark Salsbery13-Oct-07 10:45 
GeneralRe: dynamic Listbox control [modified] Pin
s196675m13-Oct-07 10:52
s196675m13-Oct-07 10:52 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 10:56
Mark Salsbery13-Oct-07 10:56 
GeneralRe: dynamic Listbox control Pin
chandu00413-Oct-07 11:02
chandu00413-Oct-07 11:02 
GeneralRe: dynamic Listbox control Pin
Mark Salsbery13-Oct-07 11:19
Mark Salsbery13-Oct-07 11:19 
QuestionVisual C++ and Linux Pin
Sangeetha_J12-Oct-07 20:51
Sangeetha_J12-Oct-07 20:51 
AnswerRe: Visual C++ and Linux Pin
led mike12-Oct-07 20:56
led mike12-Oct-07 20:56 
GeneralRe: Visual C++ and Linux Pin
Sangeetha_J12-Oct-07 20:59
Sangeetha_J12-Oct-07 20:59 
GeneralRe: Visual C++ and Linux Pin
led mike12-Oct-07 21:04
led mike12-Oct-07 21:04 

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.