Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Memory Allocation Error 998 Pin
User 268325825-Feb-09 19:39
User 268325825-Feb-09 19:39 
QuestionForward Declarations, Inheritance and Circular dependancies Pin
thelonesquirrely25-Feb-09 10:19
thelonesquirrely25-Feb-09 10:19 
AnswerRe: Forward Declarations, Inheritance and Circular dependancies Pin
Jonathan Davies25-Feb-09 10:41
Jonathan Davies25-Feb-09 10:41 
GeneralRe: Forward Declarations, Inheritance and Circular dependancies Pin
thelonesquirrely25-Feb-09 10:54
thelonesquirrely25-Feb-09 10:54 
AnswerRe: Forward Declarations, Inheritance and Circular dependancies Pin
led mike25-Feb-09 11:55
led mike25-Feb-09 11:55 
AnswerRe: Forward Declarations, Inheritance and Circular dependancies Pin
Stuart Dootson25-Feb-09 11:59
professionalStuart Dootson25-Feb-09 11:59 
GeneralRe: Forward Declarations, Inheritance and Circular dependancies Pin
thelonesquirrely25-Feb-09 13:02
thelonesquirrely25-Feb-09 13:02 
QuestionError creating an object based on a dialog declared in a .rc resource file Pin
Goo225-Feb-09 9:49
Goo225-Feb-09 9:49 
Hi All,

I'm trying to create a new dialog in my .rc resource file and then create a C++ object using it. As far as I can tell, I'm doing it the same way that other dialogs have been implemented in this large legacy VC++ version 2.0 project, but I get
error C2065: 'WMM_DOOR_CONTROLS' : undeclared identifier
upon compiling the file that tries to create the object, from the following line:
WMMAuxIOSelectDial AuxIOCtrl (this, WMM_DOOR_CONTROLS);
As far as I can tell, the only place this identifier is declared is with the resource in the resource file; that is the only place the other dialogs' ids are found.
Obviously, there is a lot I don't know. Is there some kind of initial build step that I need to run to process the .rc file so that the identifier will be found in a generated file?
This line is in a file that hasn't had any other dialogs yet. Is there something else that needs to be added?
Do I need a .dlg file, as well, for this resource?
This is non-MFC, using SDK calls only.
I've tried a lot of small stuff with which I don't want to belabor this post, and I've done a lot of web searching, however I'm hoping there's something easy that I don't know about that I can try, and I haven't thoroughly searched all the MSDN and usenet posts, but I have put in about twelve hours of banging my head against this and I'll continue to search while awaiting any replies.
Much thanks for any help you can give me.

Here is my resource declaration:
---------------------
WMM_DOOR_CONTROLS DIALOG DISCARDABLE 200, 10, 162, 138
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Door Controls"
FONT 8, "MS Sans Serif"
BEGIN
CONTROL "",-1,"Static",SS_BLACKFRAME | WS_GROUP,10,9,141,97
PUSHBUTTON "&Cancel",IDCANCEL,66,115,30,14
PUSHBUTTON "Door 1",WMM_IDB_SEL_RELAY1,20,18,122,14
PUSHBUTTON "Door 2",WMM_IDB_SEL_RELAY2,20,40,122,14
PUSHBUTTON "Door 3",WMM_IDB_SEL_RELAY3,20,62,122,14
PUSHBUTTON "Door 4",WMM_IDB_SEL_RELAY4,20,83,122,14
END
---------------------
Should I also post my WMMAuxIOSelectDial class code?

Best regards,
AnswerRe: Error creating an object based on a dialog declared in a .rc resource file Pin
Jonathan Davies25-Feb-09 10:10
Jonathan Davies25-Feb-09 10:10 
GeneralRe: Error creating an object based on a dialog declared in a .rc resource file Pin
Goo225-Feb-09 11:49
Goo225-Feb-09 11:49 
GeneralRe: Error creating an object based on a dialog declared in a .rc resource file Pin
Goo225-Feb-09 12:45
Goo225-Feb-09 12:45 
GeneralRe: Error creating an object based on a dialog declared in a .rc resource file Pin
Jonathan Davies25-Feb-09 14:16
Jonathan Davies25-Feb-09 14:16 
QuestionHow can I access CView within CDoc in a SDI? Pin
Joseph Marzbani25-Feb-09 9:41
Joseph Marzbani25-Feb-09 9:41 
AnswerRe: How can I access CView within CDoc in a SDI? Pin
Jonathan Davies25-Feb-09 10:30
Jonathan Davies25-Feb-09 10:30 
AnswerRe: How can I access CView within CDoc in a SDI? Pin
«_Superman_»25-Feb-09 17:41
professional«_Superman_»25-Feb-09 17:41 
AnswerRe: How can I access CView within CDoc in a SDI? Pin
Hamid_RT25-Feb-09 19:43
Hamid_RT25-Feb-09 19:43 
AnswerRe: How can I access CView within CDoc in a SDI? Pin
Iain Clarke, Warrior Programmer26-Feb-09 1:54
Iain Clarke, Warrior Programmer26-Feb-09 1:54 
QuestionHow to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005) Pin
SIJUTHOMASP25-Feb-09 9:14
professionalSIJUTHOMASP25-Feb-09 9:14 
AnswerRe: How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005) Pin
ky_rerun25-Feb-09 16:21
ky_rerun25-Feb-09 16:21 
GeneralRe: How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005) Pin
SIJUTHOMASP26-Feb-09 3:15
professionalSIJUTHOMASP26-Feb-09 3:15 
AnswerRe: How to resolve LNK2001 error (ver: VC ++ 8.0 and .net 2005) Pin
SIJUTHOMASP26-Feb-09 8:59
professionalSIJUTHOMASP26-Feb-09 8:59 
Questionwindows message - when the window was displayed Pin
daavena25-Feb-09 8:18
daavena25-Feb-09 8:18 
AnswerRe: windows message - when the window was displayed Pin
Stuart Dootson25-Feb-09 8:29
professionalStuart Dootson25-Feb-09 8:29 
GeneralRe: windows message - when the window was displayed Pin
daavena25-Feb-09 8:38
daavena25-Feb-09 8:38 
GeneralRe: windows message - when the window was displayed Pin
Stuart Dootson25-Feb-09 9:00
professionalStuart Dootson25-Feb-09 9:00 

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.