Hi there,
I am programming Visual C++/cli 2008.
I can make functions with no problem and I can call them from Form1.h without a problem.
The problem comes when I want to change a textBox or Label control from a function.
I realise it won't work because the textBox is out of scope.
How do I...
I am not new to programming but I am new to Visual C++ and the MFC.
I read the example I get the cli versions to work in dos but the problems come when I start to use MFC.
I have never used Classes before and so I read the example and I almost get it to work but not quite in the form.
I know...
Hi there,
I am not new to programming but I am new to C++.
I want to be able to change MFC textBox's in a function to keep my code modular.
The following line works ok in my main code.
textBox1->Text = "Not Pressed";
But when I put it in a function I get a compiler error.
eg
void laughing(){...
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.