Windows Forms App in VC++ .NET
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
I've just started to program Windows Forms apps in VC++ .NET. I have prior experience in developing WinForms apps in C# .NET, and the confusion that leads to my question is rooted in the jump from C# to C++. In C#, when I add a button to the form and create an event handler function this function is visible in my code file. However, in VC++, the designer is the ".h" file and the
InitializeComponent
function is also in the ".h" file. The event handler function is also added in the ".h" file. My question is this: What code is added in the project's ".cpp" file? By that, I mean to ask, what part of my program should be coded in the .cpp file? How do I access the components, saybtn1
,btn2
etc from the .cpp file.