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

  • Thread starter Thread starter Asfar
  • Start date Start date
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
 
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"
 
Back
Top