473,406 Members | 2,745 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

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 8372
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Wendy Elizabeth | last post by:
I was just assigned a project at work to setup a CRM web system. However from what I have heard Visual Studio 2005 Team System is suppose to be a CRM system. Is it a metholodologythat Microsoft...
3
by: Shapper | last post by:
Hello, I am starting 2 new projects to deliver in January 2006. I want to create them in Asp.Net 2.0 using Visual Studio 2005. All my clients web sites are Visual Studio 2003 projects in...
1
by: clkalluri | last post by:
Hi, I've installed (by that I mean a full uninstall and re-install) Visual Studio 2005 at least twice on my 64-bit windows machine (AMD64). I make sure I install the SDK 2.0 for x64, and the...
0
by: fiona | last post by:
Innovasys Ltd., a leader in help authoring and documentation tools, today announced the inclusion of a tailored version of the Innovasys HelpStudio help authoring product, HelpStudio Lite, in the...
0
by: Nattydreadlock | last post by:
Hello, I'm having some problems installing Visual Studio 2005. I'll briefly explain what's the history of the problem here. First I installed VS 2005 beta 2. I uninstalled it later via the...
18
by: surfrat_ | last post by:
Hi, I am having the following problems in getting Microsoft Visual Studio 2005 Professional to link to an Access .mdb database. Please help me to sort this out. Problem 1: The Microsoft...
3
by: Edwin Smith | last post by:
I have a 2 form project in VS2005 that now hangs whenever I try to do anything with the second form. This seems to have started when I added some SQL tables from a Pervasive v.9 database using the...
0
by: johnlim20088 | last post by:
Hi, Hi, currently I facing issues of migrate existing Visual Studio 2002 projects to Visual Studio 2005. I understood that there is no problem if we develop a new project from Visual Studio...
1
by: Dr T | last post by:
Hi! I downloaded MS Visual Web Developer 2005 Express Edition, MS .NET Framework SDK v2.0, and MS SQL Server 2005. Subsequently, I bought MS Visual Studio 2005 Professional Edition. 1) Are...
3
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I must be out of my mind. I used visual studio .net 2003 before and I installed 2005 a while back, but seldom to use it. Recently I was required to start to learn C# asp.net. So I tried...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.