In Visual Studio 7 I have a C++ dialogbased MFC application project. When I open the main form of my application the only available tools from the toolbox are those in the "Dialog Editor" section. The components in the "Windows Forms" are all disabled so I can't e.g. add a mainmenu to my project. Why are these components not available when I'm in this mode (in a c# project they are all available) ? How do I add a main menu and panel component to my C++ form ?

Re: How to use windows forms controls in a visual c++ app by Norman

Norman
Fri Jan 23 15:16:44 CST 2004

If you do C++ MFC app, then you do not use anything in .NET Framework's
System.Windows.Forms namespace, which can onlly be used in managed apps.

"Jimmy Rasmussen" <anonymous@discussions.microsoft.com> wrote in message
news:B83AA2F7-1398-4C78-AECC-CE45233739F8@microsoft.com...
> In Visual Studio 7 I have a C++ dialogbased MFC application project. When
I open the main form of my application the only available tools from the
toolbox are those in the "Dialog Editor" section. The components in the
"Windows Forms" are all disabled so I can't e.g. add a mainmenu to my
project. Why are these components not available when I'm in this mode (in a
c# project they are all available) ? How do I add a main menu and panel
component to my C++ form ?



Re: How to use windows forms controls in a visual c++ app by Ben

Ben
Fri Jan 23 15:19:45 CST 2004

You have to start a managed C++ project. You will see them in the new
project wizard. They have "(.NET)" under the name of the type of project.
For example.. "Windows Forms Application (.NET)"

I think this is what you are looking for?

Regards,
Ben S. Stahlhood II

"Jimmy Rasmussen" <anonymous@discussions.microsoft.com> wrote in message
news:B83AA2F7-1398-4C78-AECC-CE45233739F8@microsoft.com...
> In Visual Studio 7 I have a C++ dialogbased MFC application project. When
I open the main form of my application the only available tools from the
toolbox are those in the "Dialog Editor" section. The components in the
"Windows Forms" are all disabled so I can't e.g. add a mainmenu to my
project. Why are these components not available when I'm in this mode (in a
c# project they are all available) ? How do I add a main menu and panel
component to my C++ form ?



Re: How to use windows forms controls in a visual c++ app by Jimmy

Jimmy
Fri Jan 23 17:19:25 CST 2004

hmm there is no "Windows Forms Application (.NET)" template available in the
project wizard.
I do have a "Managed c++ application" template, which produces some code for
a console application but not any forms, and adding a dialog as a resource
to this project doesn't solve my problem....


"Ben S. Stahlhood II" <ben[.dot.]stahlhood[.at.]intellified[.dot.]com> wrote
in message news:OJGAhaf4DHA.536@tk2msftngp13.phx.gbl...
> You have to start a managed C++ project. You will see them in the new
> project wizard. They have "(.NET)" under the name of the type of project.
> For example.. "Windows Forms Application (.NET)"
>
> I think this is what you are looking for?
>
> Regards,
> Ben S. Stahlhood II
>
> "Jimmy Rasmussen" <anonymous@discussions.microsoft.com> wrote in message
> news:B83AA2F7-1398-4C78-AECC-CE45233739F8@microsoft.com...
> > In Visual Studio 7 I have a C++ dialogbased MFC application project.
When
> I open the main form of my application the only available tools from the
> toolbox are those in the "Dialog Editor" section. The components in the
> "Windows Forms" are all disabled so I can't e.g. add a mainmenu to my
> project. Why are these components not available when I'm in this mode (in
a
> c# project they are all available) ? How do I add a main menu and panel
> component to my C++ form ?
>
>



Re: How to use windows forms controls in a visual c++ app by Ben

Ben
Fri Jan 23 18:32:58 CST 2004

If you scroll all the way to the bottom, there is no Windows Form projects?
If not, then you got me. I know I have them...

Regards,
Ben S. Stahlhood II



"Jimmy Rasmussen" <jimmyr@get2net.dk> wrote in message
news:4011ac14$0$17595$ba624c82@nntp01.dk.telia.net...
> hmm there is no "Windows Forms Application (.NET)" template available in
the
> project wizard.
> I do have a "Managed c++ application" template, which produces some code
for
> a console application but not any forms, and adding a dialog as a resource
> to this project doesn't solve my problem....
>
>
> "Ben S. Stahlhood II" <ben[.dot.]stahlhood[.at.]intellified[.dot.]com>
wrote
> in message news:OJGAhaf4DHA.536@tk2msftngp13.phx.gbl...
> > You have to start a managed C++ project. You will see them in the new
> > project wizard. They have "(.NET)" under the name of the type of
project.
> > For example.. "Windows Forms Application (.NET)"
> >
> > I think this is what you are looking for?
> >
> > Regards,
> > Ben S. Stahlhood II
> >
> > "Jimmy Rasmussen" <anonymous@discussions.microsoft.com> wrote in message
> > news:B83AA2F7-1398-4C78-AECC-CE45233739F8@microsoft.com...
> > > In Visual Studio 7 I have a C++ dialogbased MFC application project.
> When
> > I open the main form of my application the only available tools from the
> > toolbox are those in the "Dialog Editor" section. The components in the
> > "Windows Forms" are all disabled so I can't e.g. add a mainmenu to my
> > project. Why are these components not available when I'm in this mode
(in
> a
> > c# project they are all available) ? How do I add a main menu and panel
> > component to my C++ form ?
> >
> >
>
>