Click here to Skip to main content
15,925,309 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 7:51
[James Pullicino]6-Sep-02 7:51 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 7:58
ns6-Sep-02 7:58 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 8:11
[James Pullicino]6-Sep-02 8:11 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:17
ns6-Sep-02 8:17 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 7:59
Joaquín M López Muñoz6-Sep-02 7:59 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:01
ns6-Sep-02 8:01 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:09
Joaquín M López Muñoz6-Sep-02 8:09 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:11
ns6-Sep-02 8:11 
BOOL CTrain1App::InitInstance()
{
	AfxEnableControlContainer();

	// Standard initialization
	// If you are not using these features and wish to reduce the size
	//  of your final executable, you should remove from the following
	//  the specific initialization routines you do not need.

#ifdef _AFXDLL
	Enable3dControls();			// Call this when using MFC in a shared DLL
#else
	Enable3dControlsStatic();	// Call this when linking to MFC statically
#endif

	// Change the registry key under which our settings are stored.
	// TODO: You should modify this string to be something appropriate
	// such as the name of your company or organization.
	SetRegistryKey(_T("Local AppWizard-Generated Applications"));

	LoadStdProfileSettings();  // Load standard INI file options (including MRU)


			AfxInitRichEdit();

	// Register the application's document templates.  Document templates
	//  serve as the connection between documents, frame windows and views.

	CMultiDocTemplate* pDocTemplate;
	pDocTemplate = new CMultiDocTemplate(
		IDR_TRAIN1TYPE,
		RUNTIME_CLASS(CTrain1Doc),
		RUNTIME_CLASS(CChildFrame), // custom MDI child frame
		RUNTIME_CLASS(CTrain1View));
	AddDocTemplate(pDocTemplate);


	
	m_pView1Template = pDocTemplate;


		pDocTemplate = new CMultiDocTemplate(
		IDR_TRAIN1TYPE,
		RUNTIME_CLASS(CTrain1Doc),
		RUNTIME_CLASS(CChildFrame), // custom MDI child frame
		RUNTIME_CLASS(CDlgLists));

		m_pView2Template = pDocTemplate;
	// create main MDI Frame window
	CMainFrame* pMainFrame = new CMainFrame;
	if (!pMainFrame->LoadFrame(IDR_MAINFRAME))
		return FALSE;
	m_pMainWnd = pMainFrame;

	// Parse command line for standard shell commands, DDE, file open
	CCommandLineInfo cmdInfo;
	ParseCommandLine(cmdInfo);

	// Dispatch commands specified on the command line
	if (!ProcessShellCommand(cmdInfo))
		return FALSE;

	// The main window has been initialized, so show and update it.
	pMainFrame->ShowWindow(m_nCmdShow);
	pMainFrame->UpdateWindow();

	return TRUE;
}

GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:18
Joaquín M López Muñoz6-Sep-02 8:18 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:21
ns6-Sep-02 8:21 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:28
Joaquín M López Muñoz6-Sep-02 8:28 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:30
ns6-Sep-02 8:30 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:34
ns6-Sep-02 8:34 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:37
Joaquín M López Muñoz6-Sep-02 8:37 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:43
ns6-Sep-02 8:43 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:47
Joaquín M López Muñoz6-Sep-02 8:47 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:49
ns6-Sep-02 8:49 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 8:55
Joaquín M López Muñoz6-Sep-02 8:55 
GeneralA million thanks! I needed to return; Pin
ns6-Sep-02 10:14
ns6-Sep-02 10:14 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
ns6-Sep-02 8:53
ns6-Sep-02 8:53 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
[James Pullicino]6-Sep-02 9:14
[James Pullicino]6-Sep-02 9:14 
GeneralRe: Very strange behavior trying to exit. Please help! Pin
Joaquín M López Muñoz6-Sep-02 9:00
Joaquín M López Muñoz6-Sep-02 9:00 
Generaluh oh! Was I supposed to return? Pin
ns6-Sep-02 10:11
ns6-Sep-02 10:11 
Generalraincheck! Pin
ns6-Sep-02 10:17
ns6-Sep-02 10:17 
GeneralRe: raincheck! Pin
Joaquín M López Muñoz7-Sep-02 9:03
Joaquín M López Muñoz7-Sep-02 9:03 

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.