Click here to Skip to main content
15,901,283 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionMDI Pin
MsmVc1-Sep-08 1:12
MsmVc1-Sep-08 1:12 
QuestionHow to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
kapardhi1-Sep-08 1:10
kapardhi1-Sep-08 1:10 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
SandipG 1-Sep-08 1:18
SandipG 1-Sep-08 1:18 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Perspx1-Sep-08 1:20
Perspx1-Sep-08 1:20 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
SandipG 1-Sep-08 1:22
SandipG 1-Sep-08 1:22 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Perspx1-Sep-08 1:24
Perspx1-Sep-08 1:24 
GeneralRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Cedric Moonen1-Sep-08 1:28
Cedric Moonen1-Sep-08 1:28 
AnswerRe: How to free rest of the memory (Total Allocated minus used) in an byte array ? Pin
Cedric Moonen1-Sep-08 1:35
Cedric Moonen1-Sep-08 1:35 
Don't do it. If you know at design time that you will only have 20 bytes, then use an array of 20 bytes. If you don't know the size upfront (but if it is below 255), then keep your current solution. It's not a big deal that you allocated a bit too much memory. This memory will anyway be deleted when you exit the function.
You will probably end-up with a worse solution trying to optimize that than what you have now.

Cédric Moonen
Software developer

Charting control [v1.5]
OpenGL game tutorial in C++

Questionhh.exe problem during switch user Pin
_chew1-Sep-08 0:45
_chew1-Sep-08 0:45 
Questioncreating spline thru n points (c/c++) Pin
raesa31-Aug-08 23:25
raesa31-Aug-08 23:25 
AnswerRe: creating spline thru n points (c/c++) Pin
beko1-Sep-08 3:38
beko1-Sep-08 3:38 
GeneralRe: creating spline thru n points (c/c++) Pin
raesa2-Sep-08 1:00
raesa2-Sep-08 1:00 
QuestionOnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:21
Dhiraj kumar Saini31-Aug-08 23:21 
AnswerRe: OnInitDialog giving debug assertion failure Pin
Cedric Moonen31-Aug-08 23:26
Cedric Moonen31-Aug-08 23:26 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:28
Dhiraj kumar Saini31-Aug-08 23:28 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Cedric Moonen31-Aug-08 23:31
Cedric Moonen31-Aug-08 23:31 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:38
Dhiraj kumar Saini31-Aug-08 23:38 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:01
Dhiraj kumar Saini1-Sep-08 0:01 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane31-Aug-08 23:39
Rane31-Aug-08 23:39 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:42
Dhiraj kumar Saini31-Aug-08 23:42 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane31-Aug-08 23:55
Rane31-Aug-08 23:55 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:01
Dhiraj kumar Saini1-Sep-08 0:01 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini31-Aug-08 23:56
Dhiraj kumar Saini31-Aug-08 23:56 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Rane1-Sep-08 0:09
Rane1-Sep-08 0:09 
GeneralRe: OnInitDialog giving debug assertion failure Pin
Dhiraj kumar Saini1-Sep-08 0:14
Dhiraj kumar Saini1-Sep-08 0:14 

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.