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

C / C++ / MFC

 
Question(ADO v2.20) pRs->Delete(); Crashes the application Pin
sdancer7513-Dec-05 5:04
sdancer7513-Dec-05 5:04 
AnswerRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
kdehairy13-Dec-05 6:28
kdehairy13-Dec-05 6:28 
GeneralRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
sdancer7513-Dec-05 6:49
sdancer7513-Dec-05 6:49 
AnswerRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
sdancer7513-Dec-05 21:39
sdancer7513-Dec-05 21:39 
GeneralRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
kdehairy15-Dec-05 2:28
kdehairy15-Dec-05 2:28 
GeneralRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
sdancer7516-Dec-05 5:07
sdancer7516-Dec-05 5:07 
AnswerRe: (ADO v2.20) pRs->Delete(); Crashes the application Pin
sdancer7519-Dec-05 20:53
sdancer7519-Dec-05 20:53 
QuestionSome doubt on WM_PAINT and MemoryDC Pin
Sanjoy Sinharoy13-Dec-05 4:59
Sanjoy Sinharoy13-Dec-05 4:59 
I have some doubt on DC operations in Windows.

1. When we call Invalidate() for any window, does WM_PAINT is sent to all child windows and child of child windows as well??

2. I have created a Compatible memory DC for a picture control of a dialog box. I am painting something in the memoryDC and I am using BitBlt() to copy from the MemoryDC to the DC of the pic control in a regular interval. I am seeing when I am calling Invalidate() for the dialog box, the memory DC is also getting erased, the old painting is lost and a subsequent BitBlt() paints from the beginning (of the graph what I am drawing in the Memory DC). If I dont call Invalidate() old painting is not lost- why its happening, does Invalidate() also erase memory DC.

3. Does BitBlt() not require a subsequent call to Invalidate() to display the data in the window?? (unlike SetPixel() or Lineto() which require a subsequent call to Invalidate() or WM_PAINT to display the data in the screen) !!

Please help

Sanjoy Sinharoy
Software Enggineer
HCL Technologies
India
AnswerRe: Some doubt on WM_PAINT and MemoryDC Pin
TheGreatAndPowerfulOz13-Dec-05 12:01
TheGreatAndPowerfulOz13-Dec-05 12:01 
QuestionRe: Some doubt on WM_PAINT and MemoryDC Pin
Sanjoy Sinharoy15-Dec-05 5:35
Sanjoy Sinharoy15-Dec-05 5:35 
QuestionHow can I create a PDF using Visual C++? Pin
DanYELL13-Dec-05 4:39
DanYELL13-Dec-05 4:39 
AnswerRe: How can I create a PDF using Visual C++? Pin
TheGreatAndPowerfulOz13-Dec-05 9:29
TheGreatAndPowerfulOz13-Dec-05 9:29 
AnswerRe: How can I create a PDF using Visual C++? Pin
ThatsAlok13-Dec-05 22:08
ThatsAlok13-Dec-05 22:08 
QuestionMemory leak detection Pin
the pink jedi13-Dec-05 4:26
the pink jedi13-Dec-05 4:26 
AnswerRe: Memory leak detection Pin
kdehairy13-Dec-05 6:35
kdehairy13-Dec-05 6:35 
AnswerRe: Memory leak detection Pin
ThatsAlok13-Dec-05 22:11
ThatsAlok13-Dec-05 22:11 
QuestionHow to get size of file ??????? Pin
VikramDelhi13-Dec-05 4:01
VikramDelhi13-Dec-05 4:01 
AnswerRe: How to get size of file ??????? Pin
Graham Bradshaw13-Dec-05 4:15
Graham Bradshaw13-Dec-05 4:15 
AnswerRe: How to get size of file ??????? Pin
Tim Smith13-Dec-05 4:26
Tim Smith13-Dec-05 4:26 
AnswerRe: How to get size of file ??????? Pin
ThatsAlok13-Dec-05 19:39
ThatsAlok13-Dec-05 19:39 
GeneralThanks a lot guys Pin
VikramDelhi14-Dec-05 3:39
VikramDelhi14-Dec-05 3:39 
QuestionReplacing open/save dialogs Pin
Krishnan V13-Dec-05 3:42
Krishnan V13-Dec-05 3:42 
QuestionRe: Replacing open/save dialogs Pin
David Crow13-Dec-05 3:57
David Crow13-Dec-05 3:57 
AnswerRe: Replacing open/save dialogs Pin
Krishnan V13-Dec-05 18:26
Krishnan V13-Dec-05 18:26 
QuestionAccess Synchronization in VC++ Pin
zinc_z13-Dec-05 2:35
zinc_z13-Dec-05 2:35 

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.