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

A

Asfar

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
 
B

Bruno van Dooren

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
(e-mail address removed)
Remove only "_nos_pam"
 

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