Click here to Skip to main content
15,912,932 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: sqltypes.h giving error Pin
Reagan Conservative5-Jun-07 6:33
Reagan Conservative5-Jun-07 6:33 
QuestionRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 7:30
Programm3r5-Jun-07 7:30 
AnswerRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 8:23
Mark Salsbery5-Jun-07 8:23 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 8:39
Programm3r5-Jun-07 8:39 
GeneralRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 8:49
Mark Salsbery5-Jun-07 8:49 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 8:51
Programm3r5-Jun-07 8:51 
GeneralRe: sqltypes.h giving error Pin
Mark Salsbery5-Jun-07 9:00
Mark Salsbery5-Jun-07 9:00 
GeneralRe: sqltypes.h giving error Pin
Programm3r5-Jun-07 19:21
Programm3r5-Jun-07 19:21 
GeneralRe: sqltypes.h giving error Pin
Mark Salsbery6-Jun-07 4:40
Mark Salsbery6-Jun-07 4:40 
QuestionDrive types Pin
RomTibi5-Jun-07 6:07
RomTibi5-Jun-07 6:07 
AnswerRe: Drive types Pin
Hans Dietrich5-Jun-07 6:46
mentorHans Dietrich5-Jun-07 6:46 
GeneralRe: Drive types Pin
RomTibi5-Jun-07 8:39
RomTibi5-Jun-07 8:39 
QuestionVC or not VC Pin
Jooooe5-Jun-07 5:52
Jooooe5-Jun-07 5:52 
QuestionRe: VC or not VC Pin
David Crow5-Jun-07 6:01
David Crow5-Jun-07 6:01 
AnswerRe: VC or not VC Pin
Matthew Faithfull5-Jun-07 6:04
Matthew Faithfull5-Jun-07 6:04 
AnswerRe: VC or not VC Pin
bob169726-Jun-07 6:01
bob169726-Jun-07 6:01 
QuestionProblem with closing program Pin
KellyR5-Jun-07 5:29
KellyR5-Jun-07 5:29 
QuestionRe: Problem with closing program Pin
David Crow5-Jun-07 5:38
David Crow5-Jun-07 5:38 
GeneralRe: Problem with closing program [modified] Pin
KellyR5-Jun-07 7:06
KellyR5-Jun-07 7:06 
QuestionRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:21
Mark Salsbery5-Jun-07 7:21 
QuestionRe: Problem with closing program Pin
KellyR5-Jun-07 7:29
KellyR5-Jun-07 7:29 
I thought so too but for some reason I still get a compiler error when I try to map ON_WM_SYSCOMMAND() in my dialog; I guess that's because the BEGIN_MESSAGE_MAP macro ties my class to CDialog and not CWnd? Sorry if I sound like an idiot, I'm just not that familiar with how MFC works. This is the first MFC application I've ever created from scratch so I'm still getting the hang of it.

The main dialog is created in the InitInstance() of the main application.

So something like this:

BOOL CTheApp::InitInstance()<br />
{<br />
  CWinApp::InitInstance();<br />
  m_MainDlg = new CMainAppDlg();<br />
  <br />
  if(!m_MainDlg->Create(IDD_MAIN_DIALOG))<br />
  {<br />
    AfxMessageBox(TEXT("Failed to initialize."), MB_OK, 0);<br />
    return FALSE;<br />
  }<br />
  m_MainDlg->SetWindowText(TEXT("Test Dialog"));<br />
  m_pMainWnd = m_MainDlg;<br />
<br />
  return TRUE;<br />
}




KR

QuestionRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:43
Mark Salsbery5-Jun-07 7:43 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 7:51
KellyR5-Jun-07 7:51 
GeneralRe: Problem with closing program Pin
Mark Salsbery5-Jun-07 7:57
Mark Salsbery5-Jun-07 7:57 
GeneralRe: Problem with closing program Pin
KellyR5-Jun-07 8:04
KellyR5-Jun-07 8:04 

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.