Click here to Skip to main content
15,910,787 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Tab background color Pin
Hamid_RT12-Aug-08 5:13
Hamid_RT12-Aug-08 5:13 
AnswerRe: Tab background color Pin
Hamid_RT12-Aug-08 5:14
Hamid_RT12-Aug-08 5:14 
QuestionWorking of Space Key same as LButtonDown !! Pin
Le@rner12-Aug-08 1:44
Le@rner12-Aug-08 1:44 
AnswerRe: Working of Space Key same as LButtonDown !! Pin
_AnsHUMAN_ 12-Aug-08 1:54
_AnsHUMAN_ 12-Aug-08 1:54 
GeneralRe: Working of Space Key same as LButtonDown !! Pin
Le@rner12-Aug-08 2:00
Le@rner12-Aug-08 2:00 
GeneralRe: Working of Space Key same as LButtonDown !! Pin
_AnsHUMAN_ 12-Aug-08 2:10
_AnsHUMAN_ 12-Aug-08 2:10 
GeneralRe: Working of Space Key same as LButtonDown !! Pin
toxcct12-Aug-08 2:11
toxcct12-Aug-08 2:11 
QuestionDebug Assertion Failure on CreateDialogIndirect Pin
SutterA12-Aug-08 1:35
SutterA12-Aug-08 1:35 
Hi all,

I've got a problem which I can't seem to solve on my own...

My programm is dialog based and multi-threaded and I create a new dialog with
m_pPlainText->Create (IDD_PLAINTEXT_DLG);
m_pPlainText->SetIcon (AfxGetApp ()->LoadIcon (IDR_MAINFRAME), FALSE);
m_pPlainText->ShowWindow (SW_SHOWMAXIMIZED);

The first time I open this dialog it works fine, but when I try to open it for again I get the error: "Debug Assertion Failed" in file "f:\sp\vctools\vc7libs\ship\atlmfc\src\mfc\winocc.cpp"

The problem was followed back to this line of code in dlgcore.cpp
hWnd = ::CreateDialogIndirect(hInst, lpDialogTemplate,
    pParentWnd->GetSafeHwnd(), AfxDlgProc);


If the error is ignored the dialog is built correctly. I have no idea what the problem could be, the only thing I could find in the internet concerning this message was about custom controls, but I don't have one in my dialog.

I'd really appreciate any help that could lead me the right way.
QuestionRe: Debug Assertion Failure on CreateDialogIndirect Pin
Mark Salsbery12-Aug-08 4:59
Mark Salsbery12-Aug-08 4:59 
AnswerRe: Debug Assertion Failure on CreateDialogIndirect Pin
SutterA13-Aug-08 6:02
SutterA13-Aug-08 6:02 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
Mark Salsbery13-Aug-08 6:09
Mark Salsbery13-Aug-08 6:09 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
SutterA21-Aug-08 9:17
SutterA21-Aug-08 9:17 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
Mark Salsbery22-Aug-08 6:24
Mark Salsbery22-Aug-08 6:24 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
SutterA22-Aug-08 7:04
SutterA22-Aug-08 7:04 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
Mark Salsbery22-Aug-08 7:27
Mark Salsbery22-Aug-08 7:27 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
SutterA22-Aug-08 9:04
SutterA22-Aug-08 9:04 
GeneralRe: Debug Assertion Failure on CreateDialogIndirect Pin
Mark Salsbery22-Aug-08 9:18
Mark Salsbery22-Aug-08 9:18 
AnswerRe: Debug Assertion Failure on CreateDialogIndirect Pin
SutterA22-Aug-08 9:29
SutterA22-Aug-08 9:29 
Questionnot able to write the data into image file [modified] Pin
Bernaad12-Aug-08 1:29
Bernaad12-Aug-08 1:29 
AnswerRe: not able to write the data into image file Pin
Maito Gai12-Aug-08 2:54
Maito Gai12-Aug-08 2:54 
Questionthe code is correct but the output is wong [modified] Pin
Maito Gai12-Aug-08 0:57
Maito Gai12-Aug-08 0:57 
AnswerRe: the code is correct but the output is wong Pin
toxcct12-Aug-08 1:13
toxcct12-Aug-08 1:13 
GeneralRe: the code is correct but the output is wong Pin
Maito Gai12-Aug-08 1:19
Maito Gai12-Aug-08 1:19 
GeneralRe: the code is correct but the output is wong Pin
toxcct12-Aug-08 1:29
toxcct12-Aug-08 1:29 
GeneralRe: the code is correct but the output is wong Pin
Maito Gai12-Aug-08 1:35
Maito Gai12-Aug-08 1: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.