I have a workspace with 2 Dialog boxes They both have their own class . When working in the 2nd class, I am trying to call a value from the first Class, but I repeatedly get errors. Does anyone know if an easy way to access values from different classes?
declare the variable that you want to access as "public". Are you sure you can acces the instance of the first dialog in the member functions of the second dialog? Have you included the header of the first dialog into the .cpp of the second?
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.