470,641 Members | 1,575 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,641 developers. It's quick & easy.

CDialog as a mamber of managed class

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
4 1474
"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

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

"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
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.

Similar topics

2 posts views Thread by Pagaia | last post: by
3 posts views Thread by iceColdFire | last post: by
6 posts views Thread by Shai Levi | last post: by
reply views Thread by InNeedOfHelp | last post: by
9 posts views Thread by Amit Dedhia | last post: by
1 post views Thread by Korara | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.