Click here to Skip to main content
15,919,434 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Hooking keyboard in Windows98? Pin
Mazdak23-Jan-02 19:04
Mazdak23-Jan-02 19:04 
QuestionHow can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser23-Jan-02 8:18
CMFC6.0VS.NETUser23-Jan-02 8:18 
AnswerRe: How can I Update DLLs Resources on Win9x Pin
Joaquín M López Muñoz23-Jan-02 10:12
Joaquín M López Muñoz23-Jan-02 10:12 
GeneralRe: How can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser23-Jan-02 13:01
CMFC6.0VS.NETUser23-Jan-02 13:01 
GeneralRe: How can I Update DLLs Resources on Win9x Pin
CMFC6.0VS.NETUser27-Jan-02 16:57
CMFC6.0VS.NETUser27-Jan-02 16:57 
GeneralWhat's going on? Please help me Pin
User 665823-Jan-02 8:01
User 665823-Jan-02 8:01 
GeneralRe: What's going on? Please help me Pin
Le centriste23-Jan-02 8:58
Le centriste23-Jan-02 8:58 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 9:38
User 665823-Jan-02 9:38 
I don't get a debug assertion window.

I both debug and release build the typical "crash-windows" appears, when an app crashes.
But there's one more thing that's definately not normal:

BOOL CScriptEditorApp::InitInstance()
{
	// Standardinitialisierung
	// Wenn Sie diese Funktionen nicht nutzen und die Größe Ihrer fertigen 
	//  ausführbaren Datei reduzieren wollen, sollten Sie die nachfolgenden
	//  spezifischen Initialisierungsroutinen, die Sie nicht benötigen, entfernen.

#ifdef _AFXDLL
	Enable3dControls();			// Diese Funktion bei Verwendung von MFC in gemeinsam genutzten DLLs aufrufen
#else
	Enable3dControlsStatic();	// Diese Funktion bei statischen MFC-Anbindungen aufrufen
#endif

	CScriptEditorDlg dlg;
	m_pMainWnd = &dlg;
	int nResponse = dlg.DoModal();
	if (nResponse == IDOK)
	{
		// ZU ERLEDIGEN: Fügen Sie hier Code ein, um ein Schließen des
		//  Dialogfelds über OK zu steuern
	}
	else if (nResponse == IDCANCEL)
	{
		// ZU ERLEDIGEN: Fügen Sie hier Code ein, um ein Schließen des
		//  Dialogfelds über "Abbrechen" zu steuern
	}

	// Da das Dialogfeld geschlossen wurde, FALSE zurückliefern, so dass wir die
	//  Anwendung verlassen, anstatt das Nachrichtensystem der Anwendung zu starten.
	return FALSE;
}


I ran this in debug mode with a breakpoint in line "CScriptEditorDlg dlg;"
Then I went on with program execution.
The strange thing is, that the cursor jumps from line
int nResponse = dlg.DoModal();


directly to
return FALSE;


and thus the dialog box never appears Confused | :confused:

modified 12-Sep-18 21:01pm.

GeneralRe: What's going on? Please help me Pin
Joaquín M López Muñoz23-Jan-02 10:04
Joaquín M López Muñoz23-Jan-02 10:04 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 10:11
User 665823-Jan-02 10:11 
GeneralRe: What's going on? Please help me Pin
Ravi Bhavnani23-Jan-02 10:16
professionalRavi Bhavnani23-Jan-02 10:16 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 10:41
User 665823-Jan-02 10:41 
GeneralRe: What's going on? Please help me Pin
Le centriste23-Jan-02 10:57
Le centriste23-Jan-02 10:57 
GeneralRe: What's going on? Please help me Pin
User 665823-Jan-02 11:00
User 665823-Jan-02 11:00 
GeneralPROBLEM SOLVED!!! Pin
User 665823-Jan-02 11:06
User 665823-Jan-02 11:06 
GeneralProblem with WM_NOTIFY from a ClistViewCtrl Pin
uo200023-Jan-02 7:29
uo200023-Jan-02 7:29 
Generalwhatif (ptr = malloc ( nSize ) ) == NULL Pin
Mike Doner23-Jan-02 6:25
Mike Doner23-Jan-02 6:25 
GeneralRe: whatif (ptr = malloc ( nSize ) ) == NULL Pin
Joaquín M López Muñoz23-Jan-02 10:24
Joaquín M López Muñoz23-Jan-02 10:24 
GeneralDouble Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 4:56
Mark Lenz23-Jan-02 4:56 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 7:58
Mark Lenz23-Jan-02 7:58 
GeneralRe: Double Buffering vs. Private DC's Pin
Michael Dunn23-Jan-02 8:15
sitebuilderMichael Dunn23-Jan-02 8:15 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 10:16
Mark Lenz23-Jan-02 10:16 
GeneralRe: Double Buffering vs. Private DC's Pin
Shog923-Jan-02 15:28
sitebuilderShog923-Jan-02 15:28 
GeneralRe: Double Buffering vs. Private DC's Pin
Michael Dunn23-Jan-02 19:24
sitebuilderMichael Dunn23-Jan-02 19:24 
GeneralRe: Double Buffering vs. Private DC's Pin
Mark Lenz23-Jan-02 11:22
Mark Lenz23-Jan-02 11:22 

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.