469,270 Members | 1,149 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,270 developers. It's quick & easy.

GUI in C++ visual studio 2005

hi everyone

i am new in this and i need some help with how to create a GUI in c++
VS2005.

i have created a c++ win32 project.
I want from this project to run a simple GUI with buttons and textboxes
only.
I added into this project a new windows form and from designer i added
some buttons to it.

But i can't call the GUI i have created from _tWinMain().
The only think i managed to do is call an empty GUI the code
Application::Run(gcnew Form());

how can i call from the _tWinMain() the GUI i have created?
Any suggestions are appreciated,
thank you

Jan 22 '07 #1
3 8252
Hi HCV,
Did you create a dialog in resource with Button and textbox? what do
you mean by windows form? if you have created a dialog in resource then
you need to call the function CreateWindow to display the dialog box.
hc****@gmail.com wrote:
hi everyone

i am new in this and i need some help with how to create a GUI in c++
VS2005.

i have created a c++ win32 project.
I want from this project to run a simple GUI with buttons and textboxes
only.
I added into this project a new windows form and from designer i added
some buttons to it.

But i can't call the GUI i have created from _tWinMain().
The only think i managed to do is call an empty GUI the code
Application::Run(gcnew Form());

how can i call from the _tWinMain() the GUI i have created?
Any suggestions are appreciated,
thank you
Jan 23 '07 #2

<hc****@gmail.comwrote in message
news:11**********************@a75g2000cwd.googlegr oups.com...
hi everyone

i am new in this and i need some help with how to create a GUI in c++
VS2005.

i have created a c++ win32 project.
I want from this project to run a simple GUI with buttons and textboxes
only.
I added into this project a new windows form and from designer i added
some buttons to it.

But i can't call the GUI i have created from _tWinMain().
The only think i managed to do is call an empty GUI the code
Application::Run(gcnew Form());
You must #include the header file that contains your custom form class you
built with the designer, then gcnew your form class.
>
how can i call from the _tWinMain() the GUI i have created?
Any suggestions are appreciated,
thank you

Jan 24 '07 #3

"Nash" <je******@gmail.comwrote in message
news:11**********************@a34g2000cwb.googlegr oups.com...
Hi HCV,
Did you create a dialog in resource with Button and textbox? what do
you mean by windows form? if you have created a dialog in resource then
you need to call the function CreateWindow to display the dialog box.
This IS the C++/CLI newsgroup, where people discuss using .NET with C++.
Windows Forms is a major feature of .NET, being replaced by Presentation
Foundation in .NET 3.0.

Also you wouldn't use CreateWindow to display a dialog from a native
resource anyway.... CreateDialog or DialogBox are much better.
Jan 24 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Wendy Elizabeth | last post: by
1 post views Thread by clkalluri | last post: by
reply views Thread by Nattydreadlock | last post: by
1 post views Thread by Dr T | last post: by
3 posts views Thread by =?Utf-8?B?YzY3NjIyOA==?= | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.