Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Solved: Spin control , it's possible to know when the control is released? Pin
Code-o-mat30-Nov-10 21:46
Code-o-mat30-Nov-10 21:46 
QuestionNew'ing a pointer to an array [Solved] Pin
Skippums29-Nov-10 7:36
Skippums29-Nov-10 7:36 
AnswerRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 7:53
professional«_Superman_»29-Nov-10 7:53 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 8:02
Skippums29-Nov-10 8:02 
GeneralRe: New'ing a pointer to an array [modified] Pin
«_Superman_»29-Nov-10 8:34
professional«_Superman_»29-Nov-10 8:34 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 9:18
Skippums29-Nov-10 9:18 
GeneralRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 9:20
professional«_Superman_»29-Nov-10 9:20 
GeneralRe: New'ing a pointer to an array Pin
Skippums29-Nov-10 9:34
Skippums29-Nov-10 9:34 
Your last post solved it... I just can't allocate a SINGLE pointer to an array of pointers without dynamically allocating an array of 1 pointer to the array. For example:
// Allocate a single pointer to an array of 16 pointers to long
// Can't be done without using operator new[]
long *(*val)[16] = new ???;
...
delete val;
There is nothing I can put in the "???" area to make the above code valid, because there is no valid syntax to dynamically create a single pointer to array using operator new(). I must do the following instead:
// Allocate a single pointer to an array of 16 pointers to long
long *(*val)[16] = new long*[1][16];
...
delete[] val;
In short, you have answered my question. Thanks,
Sounds like somebody's got a case of the Mondays

-Jeff

GeneralRe: New'ing a pointer to an array Pin
«_Superman_»29-Nov-10 9:36
professional«_Superman_»29-Nov-10 9:36 
QuestionRestrict SDI to Resize Pin
john563229-Nov-10 3:37
john563229-Nov-10 3:37 
AnswerRe: Restrict SDI to Resize Pin
Cedric Moonen29-Nov-10 4:14
Cedric Moonen29-Nov-10 4:14 
GeneralRe: Restrict SDI to Resize Pin
john563229-Nov-10 4:36
john563229-Nov-10 4:36 
GeneralRe: Restrict SDI to Resize Pin
User 74293381-Dec-10 1:07
professionalUser 74293381-Dec-10 1:07 
Question/MT Problem. Pin
gothic_coder29-Nov-10 2:37
gothic_coder29-Nov-10 2:37 
Questionerror PRJ0003 : Error spawning 'cmd.exe' Pin
msr_codeproject29-Nov-10 2:37
msr_codeproject29-Nov-10 2:37 
AnswerRe: error PRJ0003 : Error spawning 'cmd.exe' Pin
gothic_coder29-Nov-10 2:39
gothic_coder29-Nov-10 2:39 
QuestionHow can convert a char array to CString? Pin
Le@rner29-Nov-10 1:36
Le@rner29-Nov-10 1:36 
AnswerRe: How can convert a char array to CString? Pin
Cool_Dev29-Nov-10 1:49
Cool_Dev29-Nov-10 1:49 
AnswerRe: How can convert a char array to CString? Pin
KingsGambit29-Nov-10 2:43
KingsGambit29-Nov-10 2:43 
AnswerRe: How can convert a char array to CString? Pin
CPallini29-Nov-10 3:08
mveCPallini29-Nov-10 3:08 
AnswerRe: How can convert a char array to CString? Pin
«_Superman_»29-Nov-10 7:28
professional«_Superman_»29-Nov-10 7:28 
Questionbold a substring Pin
john563229-Nov-10 1:35
john563229-Nov-10 1:35 
AnswerRe: bold a substring Pin
Cool_Dev29-Nov-10 1:46
Cool_Dev29-Nov-10 1:46 
GeneralRe: bold a substring Pin
john563229-Nov-10 1:57
john563229-Nov-10 1:57 
GeneralRe: bold a substring Pin
Cool_Dev29-Nov-10 2:06
Cool_Dev29-Nov-10 2:06 

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.