CDialog as a mamber of managed class

M

Manjree Garg

Hi

How can I declare a CDialog object as a member of a managed class?

As the following is not working:

RbfPropDlg* rbfDlg;

Where RbfPropDlg is the CDialog class.

Cheers.

Manj.
 
M

Mark Salsbery [MVP]

Manjree Garg said:
Hi

How can I declare a CDialog object as a member of a managed class?

As the following is not working:


What does "not working" mean?

Mark
 
M

Manjree Garg

Hi Mark

When I declare 'RbfPropDlg* rbfDlg' in a managed class 'Properties.h' it
gives the following error in RbfPropDlg.h (the Dialogbox class):

error C2065: 'IDD_RBFPROP' : undeclared identifier
Where IDD_RBFPROP is the DialogBox.

Here is 'Properties.h'

#pragma once
#include "stdafx.h"
#include "RbfPropDlg.h"

ref class RbfProp
{
public:
RbfProp(void);

public:
String^ actvFunc;
int itr;
RbfPropDlg* rbfDlg;
};


If I remove rbfDlg from Properties.h the software is working fine.
I am trying to use rbfDlg as a modeless dialog box. If you could let me know
some link about how to use modeless dialog box that will be great.

Thanks.

Manj.
 
B

Ben Voigt [C++ MVP]

Manjree Garg said:
Hi Mark

When I declare 'RbfPropDlg* rbfDlg' in a managed class 'Properties.h'
it
gives the following error in RbfPropDlg.h (the Dialogbox class):

error C2065: 'IDD_RBFPROP' : undeclared identifier
Where IDD_RBFPROP is the DialogBox.

Apparently RbfPropDlg.h is missing #include "resource.h'
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top