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

C / C++ / MFC

 
GeneralToolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
TobiasLangner21-Dec-04 4:14
sussTobiasLangner21-Dec-04 4:14 
GeneralRe: Toolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
David Crow21-Dec-04 4:42
David Crow21-Dec-04 4:42 
GeneralRe: Toolhelp32ReadProcessMemory() and ReadProcessMemory() fail Pin
Tobias Langner21-Dec-04 21:22
sussTobias Langner21-Dec-04 21:22 
GeneralWhere have the wizards gone, ActiveX Controls Pin
greekgoddj21-Dec-04 3:54
greekgoddj21-Dec-04 3:54 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
Antti Keskinen21-Dec-04 5:07
Antti Keskinen21-Dec-04 5:07 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
greekgoddj22-Dec-04 4:42
greekgoddj22-Dec-04 4:42 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
greekgoddj22-Dec-04 5:03
greekgoddj22-Dec-04 5:03 
GeneralRe: Where have the wizards gone, ActiveX Controls Pin
Antti Keskinen22-Dec-04 5:46
Antti Keskinen22-Dec-04 5:46 
If it causes an assertion, the reason is clear. Apparently you're calling Invalidate for the CWindow-class. If this class's m_hWnd member is not a valid window, it will cause an assertion.

The most common reason for this is that your CWindow class is not properly constructed, initialized and created. Perhaps you're calling Invalidate too early ? To avoid this, add a conditional sentence in front of your Invalidate call that will check if the window in question is valid. This way, Invalidate will only be called on valid windows and the assertion will never fire.

Otherwise, ATL has nothing in special compared to MFC or Win32. The CWindow::Invalidate will call InvalidateRect Win32 function to do it's task.

-Antti Keskinen

----------------------------------------------
"If we wrote a report stating we saw a jet fighter with a howitzer, who's going to believe us ?"

-- R.A.F. pilot quote on seeing a Me 262 armed with a 50mm Mauser cannon.
GeneralVisual C++ read autocad(dxf) Pin
yangxjn21-Dec-04 3:49
yangxjn21-Dec-04 3:49 
GeneralRe: Visual C++ read autocad(dxf) Pin
David Crow21-Dec-04 4:44
David Crow21-Dec-04 4:44 
Questionserial port buffer full? Pin
Nik0n20-Dec-04 23:56
Nik0n20-Dec-04 23:56 
AnswerRe: serial port buffer full? Pin
Trollslayer21-Dec-04 2:06
mentorTrollslayer21-Dec-04 2:06 
GeneralRe: serial port buffer full? Pin
Nik0n21-Dec-04 2:25
Nik0n21-Dec-04 2:25 
QuestionTransparent Label ? Pin
pc_dev20-Dec-04 23:13
pc_dev20-Dec-04 23:13 
GeneralUpload picture Pin
henryzal20-Dec-04 22:25
susshenryzal20-Dec-04 22:25 
GeneralRe: webservice Pin
Antti Keskinen20-Dec-04 22:17
Antti Keskinen20-Dec-04 22:17 
GeneralDynamic Crystal report viewer control Pin
Rahim Rattani20-Dec-04 20:40
Rahim Rattani20-Dec-04 20:40 
GeneralRe: Dynamic Crystal report viewer control Pin
naren-vc21-Dec-04 21:57
naren-vc21-Dec-04 21:57 
Generalset cprintdialog.m_pd.hdevmode Pin
nancysangeetha20-Dec-04 20:20
nancysangeetha20-Dec-04 20:20 
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
David Crow21-Dec-04 2:17
David Crow21-Dec-04 2:17 
GeneralRe: set cprintdialog.m_pd.hdevmode Pin
nancysangeetha21-Dec-04 17:54
nancysangeetha21-Dec-04 17:54 
GeneralCalling a web service form MFC... Pin
anderslundsgard20-Dec-04 20:06
anderslundsgard20-Dec-04 20:06 
GeneralRe: Calling a web service form MFC... Pin
Antti Keskinen20-Dec-04 22:19
Antti Keskinen20-Dec-04 22:19 
GeneralRe: Calling a web service form MFC... Pin
anderslundsgard20-Dec-04 23:42
anderslundsgard20-Dec-04 23:42 
GeneralRe: Calling a web service form MFC... Pin
Antti Keskinen21-Dec-04 4:45
Antti Keskinen21-Dec-04 4:45 

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.