470,848 Members | 1,817 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

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

Accessing Form Class in another Class in C++/CLI

Hi,

I have a form Form1 in my application.

I now create a generic class Test1. In this class I declare a variable of
type Form1. I also include the header file for the form in this class.

This gives me a compiler error. Can someone tell how do I access it.

Thanks
Apr 5 '06 #1
2 1752
> Hi,

I have a form Form1 in my application.

I now create a generic class Test1. In this class I declare a variable of
type Form1. I also include the header file for the form in this class.

This gives me a compiler error. Can someone tell how do I access it.

Thanks

Hi,

It would help if you post the complete compiler error message.
What you want to do is not difficult, but without an errror message
we cannot know what could be wrong

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"
Apr 5 '06 #2
I think I got what the problem was. It was a circular reference problem.
"Bruno van Dooren" <br**********************@hotmail.com> wrote in message
news:ey**************@TK2MSFTNGP02.phx.gbl...
Hi,

I have a form Form1 in my application.

I now create a generic class Test1. In this class I declare a variable of
type Form1. I also include the header file for the form in this class.

This gives me a compiler error. Can someone tell how do I access it.

Thanks

Hi,

It would help if you post the complete compiler error message.
What you want to do is not difficult, but without an errror message
we cannot know what could be wrong

--

Kind regards,
Bruno van Dooren
br**********************@hotmail.com
Remove only "_nos_pam"

Apr 5 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Parveen | last post: by
9 posts views Thread by Blake Weaver | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.