Click here to Skip to main content
15,925,723 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionVC6.0 to VC7 - templates, c++ standards conformance proble Pin
cobra99918-Nov-06 7:50
cobra99918-Nov-06 7:50 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble [modified] Pin
Waldermort18-Nov-06 7:59
Waldermort18-Nov-06 7:59 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
markkuk18-Nov-06 8:02
markkuk18-Nov-06 8:02 
AnswerRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
PJ Arends18-Nov-06 8:08
professionalPJ Arends18-Nov-06 8:08 
GeneralRe: VC6.0 to VC7 - templates, c++ standards conformance proble Pin
cobra99918-Nov-06 12:51
cobra99918-Nov-06 12:51 
Questiondynamic array sizes Pin
Waldermort18-Nov-06 6:02
Waldermort18-Nov-06 6:02 
AnswerRe: dynamic array sizes Pin
PJ Arends18-Nov-06 6:33
professionalPJ Arends18-Nov-06 6:33 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 6:50
Waldermort18-Nov-06 6:50 
Maybe you noticed another thread a started a few lines down about a bug in my code, where I called delete on a pointer I shouldn't have. I have decided the best way to approach the problem is to copy the memory rather than return the pointer itself. Much the same as many of the standard api functions do. So I'm basicaly creating a function like:

GetRegionData( LPRGNDATA, DWORD dwSize )

And as you can guess, the first call with a NULL pointer should return the size required.

It's no big deal, I just added a new member to the class, but I was wondering if there was a similar method to _msize() in C.
GeneralRe: dynamic array sizes Pin
Mark Salsbery18-Nov-06 6:55
Mark Salsbery18-Nov-06 6:55 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:17
Waldermort18-Nov-06 7:17 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:08
professionalPJ Arends18-Nov-06 7:08 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:14
Waldermort18-Nov-06 7:14 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:22
professionalPJ Arends18-Nov-06 7:22 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:33
Waldermort18-Nov-06 7:33 
GeneralRe: dynamic array sizes Pin
PJ Arends18-Nov-06 7:38
professionalPJ Arends18-Nov-06 7:38 
GeneralRe: dynamic array sizes Pin
Waldermort18-Nov-06 7:46
Waldermort18-Nov-06 7:46 
AnswerRe: dynamic array sizes Pin
Michael Dunn18-Nov-06 14:00
sitebuilderMichael Dunn18-Nov-06 14:00 
AnswerRe: dynamic array sizes Pin
Christian Graus18-Nov-06 14:15
protectorChristian Graus18-Nov-06 14:15 
AnswerRe: dynamic array sizes Pin
David Crow20-Nov-06 3:25
David Crow20-Nov-06 3:25 
QuestionPostMessageand SendMessage Pin
neha.agarwal2718-Nov-06 1:46
neha.agarwal2718-Nov-06 1:46 
AnswerRe: PostMessageand SendMessage Pin
Arman S.18-Nov-06 6:59
Arman S.18-Nov-06 6:59 
Questionhow to register ATL COM object in MFC Pin
kiranin17-Nov-06 23:56
kiranin17-Nov-06 23:56 
AnswerRe: how to register ATL COM object in MFC Pin
ThatsAlok18-Nov-06 0:47
ThatsAlok18-Nov-06 0:47 
GeneralRe: how to register ATL COM object in MFC Pin
kiranin18-Nov-06 0:53
kiranin18-Nov-06 0:53 
QuestionAdd context menu item through MFC Application Pin
kiranin17-Nov-06 23:59
kiranin17-Nov-06 23:59 

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.