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

C / C++ / MFC

 
AnswerRe: Assertion Error Pin
FarPointer26-Jun-06 4:14
FarPointer26-Jun-06 4:14 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:50
Amit Agarrwal26-Jun-06 4:50 
GeneralRe: Assertion Error Pin
Amit Agarrwal26-Jun-06 4:55
Amit Agarrwal26-Jun-06 4:55 
QuestionMemory buffer size Pin
hatemtalbi26-Jun-06 2:46
hatemtalbi26-Jun-06 2:46 
AnswerRe: Memory buffer size Pin
Viorel.26-Jun-06 2:55
Viorel.26-Jun-06 2:55 
GeneralRe: Memory buffer size Pin
hatemtalbi26-Jun-06 3:13
hatemtalbi26-Jun-06 3:13 
GeneralRe: Memory buffer size Pin
Viorel.26-Jun-06 3:47
Viorel.26-Jun-06 3:47 
AnswerRe: Memory buffer size [modified] Pin
James R. Twine26-Jun-06 3:21
James R. Twine26-Jun-06 3:21 
   The short answer, is no.  The long answer is that if you know something about the memory, you may be able to.  For example, if it is a BSTR you can look 4 bytes before its "handled" address or use SysStringLen(...).

   If you know that the memory came from a particular heap (or heap manager), you may be able to crack the heap structures used to maintain memory allocations.  You also need to know where the memory came from in order to use functions like _msize(...), _msize_dbg(...), GlobalSize(...), etc.

   Peace!

-=- James
If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong!
Avoid driving a vehicle taller than you and remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road!
DeleteFXPFiles & CheckFavorites
(Please rate this post!)
GeneralRe: Memory buffer size Pin
hatemtalbi26-Jun-06 3:30
hatemtalbi26-Jun-06 3:30 
QuestionRe: Memory buffer size Pin
David Crow26-Jun-06 3:46
David Crow26-Jun-06 3:46 
AnswerRe: Memory buffer size Pin
hatemtalbi26-Jun-06 3:48
hatemtalbi26-Jun-06 3:48 
GeneralRe: Memory buffer size Pin
David Crow26-Jun-06 3:50
David Crow26-Jun-06 3:50 
GeneralRe: Memory buffer size Pin
hatemtalbi26-Jun-06 3:53
hatemtalbi26-Jun-06 3:53 
QuestionHow to create CTabCtrl with dialog as laying Pin
NoName II26-Jun-06 2:29
NoName II26-Jun-06 2:29 
AnswerRe: How to create CTabCtrl with dialog as laying Pin
Hamid_RT26-Jun-06 2:41
Hamid_RT26-Jun-06 2:41 
GeneralRe: How to create CTabCtrl with dialog as laying Pin
NoName II26-Jun-06 23:06
NoName II26-Jun-06 23:06 
GeneralRe: How to create CTabCtrl with dialog as laying Pin
Hamid_RT27-Jun-06 1:40
Hamid_RT27-Jun-06 1:40 
AnswerRe: How to create CTabCtrl with dialog as laying Pin
Sarath C26-Jun-06 2:42
Sarath C26-Jun-06 2:42 
AnswerRe: How to create CTabCtrl with dialog as laying Pin
Zac Howland26-Jun-06 4:10
Zac Howland26-Jun-06 4:10 
AnswerRe: How to create CTabCtrl with dialog as laying Pin
Sam Hobbs26-Jun-06 14:02
Sam Hobbs26-Jun-06 14:02 
QuestionWhat is wrong with this? Pin
James R. Twine26-Jun-06 2:27
James R. Twine26-Jun-06 2:27 
AnswerRe: What is wrong with this? Pin
Sarath C26-Jun-06 2:39
Sarath C26-Jun-06 2:39 
JokeRe: What is wrong with this? Pin
James R. Twine26-Jun-06 2:45
James R. Twine26-Jun-06 2:45 
GeneralRe: What is wrong with this? Pin
Zac Howland26-Jun-06 4:15
Zac Howland26-Jun-06 4:15 
JokeRe: What is wrong with this? Pin
James R. Twine26-Jun-06 4:56
James R. Twine26-Jun-06 4:56 

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.