Click here to Skip to main content
15,922,894 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Is there any way to let a process write some bytes to itself's PE file? Pin
James R. Twine17-Sep-07 5:17
James R. Twine17-Sep-07 5:17 
AnswerRe: Is there any way to let a process write some bytes to itself's PE file? Pin
Stephen Hewitt16-Sep-07 21:29
Stephen Hewitt16-Sep-07 21:29 
QuestionHtmlView Pin
john563216-Sep-07 19:01
john563216-Sep-07 19:01 
AnswerRe: HtmlView Pin
Hamid_RT16-Sep-07 19:12
Hamid_RT16-Sep-07 19:12 
QuestionRe: HtmlView Pin
john563216-Sep-07 19:20
john563216-Sep-07 19:20 
Questioncode or link for desktop application like webshot desktop application Pin
Dhiraj kumar Saini16-Sep-07 18:53
Dhiraj kumar Saini16-Sep-07 18:53 
QuestionNeed for ClassFactory. Pin
nbugalia16-Sep-07 18:45
nbugalia16-Sep-07 18:45 
AnswerRe: Need for ClassFactory. Pin
GauranG Shah16-Sep-07 19:02
GauranG Shah16-Sep-07 19:02 
AnswerRe: Need for ClassFactory. Pin
Stephen Hewitt16-Sep-07 21:42
Stephen Hewitt16-Sep-07 21:42 
QuestionHow to change F1's default help file's name? Pin
Peter, Chan16-Sep-07 17:11
Peter, Chan16-Sep-07 17:11 
AnswerRe: How to change F1's default help file's name? Pin
Nishad S16-Sep-07 18:30
Nishad S16-Sep-07 18:30 
AnswerRe: How to change F1's default help file's name? [modified] Pin
Roger Broomfield16-Sep-07 19:00
Roger Broomfield16-Sep-07 19:00 
Question[SOLVED] Need help with using struct with template - syntax problem [modified] Pin
Vaclav_16-Sep-07 16:31
Vaclav_16-Sep-07 16:31 
AnswerRe: Need help with using struct with template - syntax problem Pin
Vaclav_16-Sep-07 17:21
Vaclav_16-Sep-07 17:21 
GeneralRe: Need help with using struct with template - syntax problem Pin
Vaclav_16-Sep-07 17:57
Vaclav_16-Sep-07 17:57 
GeneralRe: Need help with using struct with template - syntax problem Pin
Cedric Moonen16-Sep-07 20:33
Cedric Moonen16-Sep-07 20:33 
QuestionErrors in David Nash's code for Win API Pin
Larry Mills Sr16-Sep-07 13:38
Larry Mills Sr16-Sep-07 13:38 
AnswerRe: Errors in David Nash's code for Win API Pin
Michael Dunn16-Sep-07 15:57
sitebuilderMichael Dunn16-Sep-07 15:57 
QuestionFile reading Pin
Jelle De Vos16-Sep-07 11:43
Jelle De Vos16-Sep-07 11:43 
AnswerRe: File reading Pin
Christian Graus16-Sep-07 12:25
protectorChristian Graus16-Sep-07 12:25 
GeneralRe: File reading Pin
David Crow17-Sep-07 2:58
David Crow17-Sep-07 2:58 
AnswerRe: File reading Pin
Hamid_RT16-Sep-07 19:14
Hamid_RT16-Sep-07 19:14 
QuestionAssert Modal Dialog wincore.cpp Pin
zqueezy16-Sep-07 11:19
zqueezy16-Sep-07 11:19 
hey folks,
i stumbled across an assertion in my program. When I want to show a dialog modally the dialog is shown correctly, but when I close the dialog I get an assert:
"Debug assertion failed! ... program ...wincore.cpp line 882" which is:
void CWnd::AssertValid() const
{
	if (m_hWnd == NULL)
		return;     // null (unattached) windows are valid

	// check for special wnd??? values
	ASSERT(HWND_TOP == NULL);       // same as desktop
	if (m_hWnd == HWND_BOTTOM)
		ASSERT(this == &CWnd::wndBottom);
	else if (m_hWnd == HWND_TOPMOST)
		ASSERT(this == &CWnd::wndTopMost);
	else if (m_hWnd == HWND_NOTOPMOST)
		ASSERT(this == &CWnd::wndNoTopMost);
	else
	{
		// should be a normal window
		ASSERT(::IsWindow(m_hWnd));    //<-- HERE


My code is farely simple:
CSelectionDlg dlg;
dlg.DoModal();

the thing is: I call this from a member-class:
-MyDialogDlg                        my dialog
-SomeClass m_instanceOfClass;       a memberclass of dialog.
                                    a function of Someclass does the above code


I found some stuff from microsoft:
http://support.microsoft.com/kb/194300/eng
which didn't work for my case!
if I add
ASSERT(::IsWindow(m_hWnd));
before the domodal nothing changes... so somehow my handle gets lost and I donnu what to do. can anybody help? maybe a simple link. i tried many links, although nothing worked for my case. I don't have any crazy stuff in my OnInit of the dialog nor do I have another dialog as model dialog

thx for your help
zqueezy
AnswerRe: Assert Modal Dialog wincore.cpp Pin
Hamid_RT16-Sep-07 19:19
Hamid_RT16-Sep-07 19:19 
GeneralRe: Assert Modal Dialog wincore.cpp Pin
zqueezy16-Sep-07 20:40
zqueezy16-Sep-07 20:40 

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.