By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,695 Members | 1,346 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,695 IT Pros & Developers. It's quick & easy.

CDialog as a mamber of managed class

P: n/a
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.
Jan 2 '08 #1
Share this Question
Share on Google+
4 Replies


P: n/a
"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:01**********************************@microsof t.com...
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

--
Mark Salsbery
Microsoft MVP - Visual C++
>
RbfPropDlg* rbfDlg;

Where RbfPropDlg is the CDialog class.

Cheers.

Manj.

Jan 2 '08 #2

P: n/a

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.

"Mark Salsbery [MVP]" wrote:
"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:01**********************************@microsof t.com...
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

--
Mark Salsbery
Microsoft MVP - Visual C++

RbfPropDlg* rbfDlg;

Where RbfPropDlg is the CDialog class.

Cheers.

Manj.
Jan 3 '08 #3

P: n/a

"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:51**********************************@microsof t.com...
>
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'
>
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.

"Mark Salsbery [MVP]" wrote:
>"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:01**********************************@microso ft.com...
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

--
Mark Salsbery
Microsoft MVP - Visual C++
>
RbfPropDlg* rbfDlg;

Where RbfPropDlg is the CDialog class.

Cheers.

Manj.


Jan 3 '08 #4

P: n/a
Hi Ben,

Thanks for the reply. It worked.

Manj.

"Ben Voigt [C++ MVP]" wrote:
>
"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:51**********************************@microsof t.com...

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'

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.

"Mark Salsbery [MVP]" wrote:
"Manjree Garg" <ga**@newsgroup.nospamwrote in message
news:01**********************************@microsof t.com...
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

--
Mark Salsbery
Microsoft MVP - Visual C++


RbfPropDlg* rbfDlg;

Where RbfPropDlg is the CDialog class.

Cheers.

Manj.




Jan 4 '08 #5

This discussion thread is closed

Replies have been disabled for this discussion.