Click here to Skip to main content
16,006,442 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Avoiding sorting of CComboBox programmatically Pin
Cedric Moonen8-Jun-08 20:42
Cedric Moonen8-Jun-08 20:42 
GeneralRe: Avoiding sorting of CComboBox programmatically Pin
rp_suman8-Jun-08 21:15
rp_suman8-Jun-08 21:15 
QuestionHow many new eMails are there in my inbox? Pin
Joseph Marzbani8-Jun-08 8:36
Joseph Marzbani8-Jun-08 8:36 
AnswerRe: How many new eMails are there in my inbox? Pin
Saurabh.Garg8-Jun-08 16:18
Saurabh.Garg8-Jun-08 16:18 
QuestionRe: How many new eMails are there in my inbox? Pin
_AnsHUMAN_ 8-Jun-08 19:27
_AnsHUMAN_ 8-Jun-08 19:27 
JokeRe: How many new eMails are there in my inbox? Pin
toxcct8-Jun-08 22:45
toxcct8-Jun-08 22:45 
GeneralRe: How many new eMails are there in my inbox? Pin
super_ttd14-Jun-08 23:41
super_ttd14-Jun-08 23:41 
QuestionHelp with modeless dialog error Pin
Kwanalouie8-Jun-08 7:14
Kwanalouie8-Jun-08 7:14 
Using Visual C++ 6.0 MFC in SDI application

I created a dialog box class called CTestDialog and assocatied files TestDialog.cpp and TestDialog.h. The dialog box ID is IDD_TESTDIALOGBOX. I want to have it run as a modeless dialog, and I have a routine in MainFrm.cpp where I want to control the display of this dialog box.

When I put the header file for test dialog into MainFrm.cpp I get a compilation error.


#include "TestDialog.h"

error C2065: 'IDD_TESTDIALOGBOX' : undeclared identifier

I don't get this error when the header file is placed in any other .cpp file. I don't understand what the problem is.
Thanks
AnswerRe: Help with modeless dialog error Pin
Jijo.Raj8-Jun-08 7:23
Jijo.Raj8-Jun-08 7:23 
GeneralRe: Help with modeless dialog error Pin
Kwanalouie8-Jun-08 7:38
Kwanalouie8-Jun-08 7:38 
AnswerRe: Help with modeless dialog error Pin
Gary R. Wheeler8-Jun-08 10:00
Gary R. Wheeler8-Jun-08 10:00 
Questionado connection problem .... Pin
lahom8-Jun-08 6:36
lahom8-Jun-08 6:36 
AnswerRe: ado connection problem .... Pin
Saurabh.Garg8-Jun-08 17:48
Saurabh.Garg8-Jun-08 17:48 
GeneralRe: ado connection problem .... Pin
lahom9-Jun-08 1:15
lahom9-Jun-08 1:15 
GeneralRe: ado connection problem .... Pin
Saurabh.Garg9-Jun-08 1:23
Saurabh.Garg9-Jun-08 1:23 
QuestionDetours TerminateProcess API Function Pin
darx8-Jun-08 4:45
darx8-Jun-08 4:45 
AnswerRe: Detours TerminateProcess API Function Pin
Jijo.Raj8-Jun-08 7:13
Jijo.Raj8-Jun-08 7:13 
AnswerRe: Detours TerminateProcess API Function Pin
Saurabh.Garg8-Jun-08 17:04
Saurabh.Garg8-Jun-08 17:04 
AnswerRe: Detours TerminateProcess API Function Pin
darx8-Jun-08 22:37
darx8-Jun-08 22:37 
Questionif statment Pin
sofia_1118-Jun-08 0:39
sofia_1118-Jun-08 0:39 
AnswerRe: if statment Pin
sudhir_Kumar8-Jun-08 1:28
sudhir_Kumar8-Jun-08 1:28 
AnswerRe: if statment Pin
Cedric Moonen8-Jun-08 1:44
Cedric Moonen8-Jun-08 1:44 
GeneralRe: if statment Pin
sofia_1118-Jun-08 2:15
sofia_1118-Jun-08 2:15 
GeneralRe: if statment Pin
Jijo.Raj8-Jun-08 3:37
Jijo.Raj8-Jun-08 3:37 
GeneralRe: if statment Pin
Gary R. Wheeler8-Jun-08 10:03
Gary R. Wheeler8-Jun-08 10: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.