Click here to Skip to main content
15,902,636 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralCRecordView and DialogBox Pin
bbush28-Mar-04 6:48
bbush28-Mar-04 6:48 
GeneralCurrent User Profile Pin
MHillary28-Mar-04 3:48
MHillary28-Mar-04 3:48 
GeneralRe: Current User Profile Pin
Mazdak28-Mar-04 8:26
Mazdak28-Mar-04 8:26 
GeneralNo Conversion From... Pin
monrobot1328-Mar-04 3:28
monrobot1328-Mar-04 3:28 
GeneralRe: No Conversion From... Pin
Michael Dunn28-Mar-04 5:04
sitebuilderMichael Dunn28-Mar-04 5:04 
GeneralRe: No Conversion From... Pin
monrobot1328-Mar-04 14:39
monrobot1328-Mar-04 14:39 
GeneralA really tough question for experts - ITypeLib Pin
YaronNir28-Mar-04 2:49
YaronNir28-Mar-04 2:49 
GeneralArray without constant Pin
Daniel132428-Mar-04 1:44
Daniel132428-Mar-04 1:44 
I need to define an array of CMenu's. But I really dont now how many I need, I only know this at runtime.

I cant do this... CMenu menu[myvariable];
Because it needs a constant.

When I use CMenu *menu = new CMenu[myvariable];

The program crashes when I try to access a member function of CMenu. Like, menu[0]->AppendMenu[...];

Can I not use CMenu[variable] at all? Is there no workarounds?

BTW, I dont know why it crashes when I use pointers to CMenu.

Thanks!
Daniel


GeneralRe: Array without constant Pin
Ravi Bhavnani28-Mar-04 8:15
professionalRavi Bhavnani28-Mar-04 8:15 
GeneralRe: Array without constant Pin
Anonymous28-Mar-04 8:37
Anonymous28-Mar-04 8:37 
GeneralRe: Array without constant Pin
Christian Graus28-Mar-04 9:47
protectorChristian Graus28-Mar-04 9:47 
GeneralRe: Array without constant Pin
Gary R. Wheeler28-Mar-04 13:21
Gary R. Wheeler28-Mar-04 13:21 
GeneralRe: Array without constant Pin
Prakash Nadar28-Mar-04 14:09
Prakash Nadar28-Mar-04 14:09 
GeneralRe: Array without constant Pin
Daniel132429-Mar-04 6:48
Daniel132429-Mar-04 6:48 
GeneralRe: Array without constant Pin
Gary R. Wheeler29-Mar-04 11:39
Gary R. Wheeler29-Mar-04 11:39 
GeneralRe: Array without constant Pin
Daniel132429-Mar-04 12:44
Daniel132429-Mar-04 12:44 
GeneralRe: Array without constant Pin
Phil J Pearson29-Mar-04 2:19
Phil J Pearson29-Mar-04 2:19 
GeneralCapture console buffer to text Pin
Snillet2k28-Mar-04 1:40
Snillet2k28-Mar-04 1:40 
GeneralRe: Capture console buffer to text Pin
Prakash Nadar28-Mar-04 2:12
Prakash Nadar28-Mar-04 2:12 
GeneralHELP - from VS6 to VS.NET problem Pin
the_snow_master28-Mar-04 1:07
sussthe_snow_master28-Mar-04 1:07 
Generaluser priveldges Pin
Irish_GUI27-Mar-04 23:46
Irish_GUI27-Mar-04 23:46 
GeneralSharing object between thread Pin
packetlos27-Mar-04 23:25
packetlos27-Mar-04 23:25 
GeneralRe: Sharing object between thread Pin
packetlos28-Mar-04 6:37
packetlos28-Mar-04 6:37 
GeneralGetting a handle to some window Pin
Anonymous27-Mar-04 21:37
Anonymous27-Mar-04 21:37 
GeneralRe: Getting a handle to some window Pin
Prakash Nadar28-Mar-04 1:49
Prakash Nadar28-Mar-04 1:49 

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.