Monday, April 23, 2012

C++ cli access Form variables from class

There is a form Form1 which contains int x; and a class MyClass with .h and .cpp files. How can I access the Form1 variable x from MyClass, without passing it using a method? I think something like Form1.x Maybe is it a bad style of programming?
I am just learning..





No comments:

Post a Comment