Click here to Skip to main content
15,885,954 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 2:37
Cedric Moonen10-Feb-06 2:37 
GeneralRe: How to open notepad.exe Pin
David Crow10-Feb-06 2:44
David Crow10-Feb-06 2:44 
GeneralRe: How to open notepad.exe Pin
hanno2510-Feb-06 3:11
hanno2510-Feb-06 3:11 
GeneralRe: How to open notepad.exe Pin
Cedric Moonen10-Feb-06 3:31
Cedric Moonen10-Feb-06 3:31 
GeneralRe: How to open notepad.exe Pin
toxcct10-Feb-06 2:24
toxcct10-Feb-06 2:24 
AnswerRe: How to open notepad.exe Pin
bolivar12310-Feb-06 3:52
bolivar12310-Feb-06 3:52 
QuestionWord automation while using ADO Pin
lparsonson10-Feb-06 0:49
lparsonson10-Feb-06 0:49 
QuestionCannot add variables to CDialog class Pin
Kiriko10-Feb-06 0:15
Kiriko10-Feb-06 0:15 
Hi
I created a dialog using the resource editor in Visual Studio. Then I gave it to a new class which is inherited from a CDialog class (all done by class wizard). I added some controls and assigned variables to them. All fine. Until I added extra variables from the class tree. I added a private variable of type double, which is quite straight forward. But now, I can't compile my program because it thinks it can't understand the ID of the dialog.

The compiler reports and error on the line in the CDialog class header that says

enum { IDD = IDD_MYDIALOG };

saying that IDD_MYDIALOG is an undeclared identifier.

The only thing I can think of is that something could have gone wrong in VS when it crashed while I was building this dialog the first time. Since, I deleted the dialog and everything to go with it and started again. It went alright until I added the said private variable. Now, even if I delete the variable, it still won't work.

I have no idea what I've done to it. Any help greatly appreciated!
AnswerRe: Cannot add variables to CDialog class Pin
toxcct10-Feb-06 0:18
toxcct10-Feb-06 0:18 
GeneralRe: Cannot add variables to CDialog class Pin
Kiriko10-Feb-06 0:34
Kiriko10-Feb-06 0:34 
GeneralRe: Cannot add variables to CDialog class Pin
toxcct10-Feb-06 0:38
toxcct10-Feb-06 0:38 
AnswerRe: Cannot add variables to CDialog class Pin
ThatsAlok10-Feb-06 0:38
ThatsAlok10-Feb-06 0:38 
GeneralRe: Cannot add variables to CDialog class Pin
Kiriko10-Feb-06 0:52
Kiriko10-Feb-06 0:52 
GeneralRe: Cannot add variables to CDialog class Pin
Roger Stoltz10-Feb-06 2:12
Roger Stoltz10-Feb-06 2:12 
GeneralRe: Cannot add variables to CDialog class Pin
Kiriko10-Feb-06 2:43
Kiriko10-Feb-06 2:43 
AnswerRe: Cannot add variables to CDialog class Pin
David Crow10-Feb-06 2:51
David Crow10-Feb-06 2:51 
QuestionGetting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 0:12
kk_vp10-Feb-06 0:12 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
toxcct10-Feb-06 0:20
toxcct10-Feb-06 0:20 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
kk_vp10-Feb-06 0:37
kk_vp10-Feb-06 0:37 
General[Message Deleted] Pin
_anil_10-Feb-06 0:53
_anil_10-Feb-06 0:53 
QuestionRe: Getting alerts (messagebox) with an integer value Pin
David Crow10-Feb-06 3:15
David Crow10-Feb-06 3:15 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
_anil_10-Feb-06 4:18
_anil_10-Feb-06 4:18 
GeneralRe: Getting alerts (messagebox) with an integer value Pin
David Crow10-Feb-06 2:53
David Crow10-Feb-06 2:53 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
_anil_10-Feb-06 0:30
_anil_10-Feb-06 0:30 
AnswerRe: Getting alerts (messagebox) with an integer value Pin
ThatsAlok10-Feb-06 0:36
ThatsAlok10-Feb-06 0:36 

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.