Visual C++ .NET

R

richy

Hi,

Visual C++ .NET

I'm writing an application in Visual C++ .NET.

Strange thing is, when I, for example, put down a radio
button on the form and double click on it, the code is
placed in the form.h file and not the form.cpp file.

Does anyone know why?

Thanks in adv,

Richy.
 
C

Carl Daniel [VC++ MVP]

richy said:
Hi,

Visual C++ .NET

I'm writing an application in Visual C++ .NET.

Strange thing is, when I, for example, put down a radio
button on the form and double click on it, the code is
placed in the form.h file and not the form.cpp file.

Does anyone know why?

It's a limitation of the WinForms designer, which was originally developed
for C# and VB.NET where there's nothing comparable to the header
file/implementation file concept in C++.

This is something that hopefully will improve in a future release. In the
meantime, don't worry about it. There's nothing semantically or
functionallly wrong with the code, it's just not following the customary C++
style.

-cd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top