Click here to Skip to main content
15,917,642 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can i open "xxxxx.bmp" through Program Pin
Rajesh R Subramanian3-Jun-08 18:46
professionalRajesh R Subramanian3-Jun-08 18:46 
AnswerRe: How can i open "xxxxx.bmp" through Program Pin
Hamid_RT3-Jun-08 1:08
Hamid_RT3-Jun-08 1:08 
Questionhow to merge the three dll to one dll?Thanks Pin
wendyyue1-Jun-08 21:17
wendyyue1-Jun-08 21:17 
AnswerRe: how to merge the three dll to one dll?Thanks Pin
SandipG 1-Jun-08 21:26
SandipG 1-Jun-08 21:26 
GeneralRe: how to merge the three dll to one dll?Thanks Pin
wendyyue2-Jun-08 1:05
wendyyue2-Jun-08 1:05 
GeneralRe: how to merge the three dll to one dll?Thanks Pin
SandipG 2-Jun-08 1:22
SandipG 2-Jun-08 1:22 
AnswerRe: how to merge the three dll to one dll?Thanks Pin
Hamid_RT3-Jun-08 1:07
Hamid_RT3-Jun-08 1:07 
QuestionCMemoryState queston,why Total allocations are increasing Pin
jacks07021-Jun-08 21:03
jacks07021-Jun-08 21:03 
//MFC Single doc Exe
#ifdef _DEBUG
CMemoryState oldMemState,
newMemState, diffMemState;
#endif

void CLeakTestView::OnDraw(CDC* pDC)
{
CLeakTestDoc* pDoc = GetDocument();
ASSERT_VALID(pDoc);
// TODO: add draw code for native data here
//noting
#ifdef _DEBUG
newMemState.Checkpoint();

if(diffMemState.Difference(oldMemState,newMemState))
{
TRACE("Memory Is Leaking!!! \n\n");
diffMemState.DumpStatistics();
}
#endif
}
int CLeakTestView::OnCreate(LPCREATESTRUCT lpCreateStruct)
{
if (CView::OnCreate(lpCreateStruct) == -1)
return -1;

// TODO: Add your specialized creation code here
#ifdef _DEBUG
oldMemState.Checkpoint();
#endif
return 0;
}


output:(Total allocations are increasing when ondraw)
0 bytes in 0 Free Blocks.
434 bytes in 11 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
672 bytes in 4 Client Blocks.
Largest number used: 1374 bytes.
Total allocations: 11950 bytes.
Memory Is Leaking!!!

0 bytes in 0 Free Blocks.
434 bytes in 11 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
672 bytes in 4 Client Blocks.
Largest number used: 1374 bytes.
Total allocations: 12170 bytes.
Memory Is Leaking!!!

0 bytes in 0 Free Blocks.
434 bytes in 11 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
672 bytes in 4 Client Blocks.
Largest number used: 1374 bytes.
Total allocations: 12390 bytes.
Memory Is Leaking!!!

0 bytes in 0 Free Blocks.
434 bytes in 11 Normal Blocks.
0 bytes in 0 CRT Blocks.
0 bytes in 0 Ignore Blocks.
672 bytes in 4 Client Blocks.
Largest number used: 1374 bytes.
Total allocations: 12610 bytes.
The thread 0xD0C has exited with code 0 (0x0).
AnswerRe: CMemoryState queston,why Total allocations are increasing Pin
SandipG 1-Jun-08 21:25
SandipG 1-Jun-08 21:25 
GeneralRe: CMemoryState queston,why Total allocations are increasing Pin
jacks07021-Jun-08 21:31
jacks07021-Jun-08 21:31 
GeneralRe: CMemoryState queston,why Total allocations are increasing Pin
Mark Salsbery2-Jun-08 6:10
Mark Salsbery2-Jun-08 6:10 
Question#using <mscorlib.dll> used why?</mscorlib.dll> Pin
nisha000001-Jun-08 20:55
nisha000001-Jun-08 20:55 
QuestionRe: #using used why? Pin
Rajesh R Subramanian1-Jun-08 21:05
professionalRajesh R Subramanian1-Jun-08 21:05 
AnswerOT Pin
CPallini1-Jun-08 23:34
mveCPallini1-Jun-08 23:34 
GeneralRe: OT Pin
Rajesh R Subramanian1-Jun-08 23:46
professionalRajesh R Subramanian1-Jun-08 23:46 
GeneralSemi OT Pin
Rajesh R Subramanian1-Jun-08 23:49
professionalRajesh R Subramanian1-Jun-08 23:49 
GeneralRe: Semi OT Pin
CPallini1-Jun-08 23:53
mveCPallini1-Jun-08 23:53 
GeneralRe: Semi OT Pin
Rajkumar R2-Jun-08 2:49
Rajkumar R2-Jun-08 2:49 
GeneralRe: Semi OT Pin
CPallini2-Jun-08 7:29
mveCPallini2-Jun-08 7:29 
AnswerRe: #using used why? Pin
Hamid_RT3-Jun-08 1:07
Hamid_RT3-Jun-08 1:07 
QuestionChange Window Color Pin
chetanjoshi91-Jun-08 20:24
chetanjoshi91-Jun-08 20:24 
AnswerRe: Change Window Color Pin
SandipG 1-Jun-08 20:42
SandipG 1-Jun-08 20:42 
AnswerRe: Change Window Color Pin
Hamid_RT3-Jun-08 1:06
Hamid_RT3-Jun-08 1:06 
QuestionXML stream to send data Pin
CodingLover1-Jun-08 20:19
CodingLover1-Jun-08 20:19 
AnswerRe: XML stream to send data Pin
Mark Salsbery2-Jun-08 6:15
Mark Salsbery2-Jun-08 6:15 

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.