Creating a simple, visual C++ app

Hi, I'm new here, I got Visual Studio for .NET the other day and was capable of creating, in C#, an application that uses values entered in an Edit object, but when I started up a C++ project, I just couldn't manipulate the Text property of the Edit object I had placed on the main form. I had tried developing a C++ program in Visual C++ 6.0 before aswell, but I had failed the same way: unable to manipulate an object's property (heck, that even sounded like an error message :]). In Visual C++ 6.0, objects are identified by IDs (numbers) and not names, like I'm used to in my Delphi environment, so I can do something like "Edit1.Text" in Delphi, but not in Visual C++ 6.0. All I need here is an example code illustrating how to manipulate properties of objects placed on a form of a Win32 application project in Visual C++ 6.0, you know, like, getting the value entered in an Edit object and multiplying it by 2, or whatever. Thanks in advance!
i think you mean something like:

1
2
3
4
5
6
7
8
9
10
11
class someClass {
public:
   int number;
};

int main() {

   someClass someObject;

   someObject.number = 0;
}


Another way to manipulate values would be to use member functions and just call the functions.
Last edited on
Topic archived. No new replies allowed.