473,557 Members | 2,830 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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::Ru n(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 8378
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.co m 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::Ru n(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.c omwrote in message
news:11******** **************@ a75g2000cwd.goo glegroups.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::Ru n(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.goo glegroups.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
1912
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 recommends? (Is it like the current Visual Studio.NET best practices and procedures Microsoft recommends?) Is Visual Studio 2005 Team System a...
3
2290
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 Asp.Net 1.1 / VB.NET. These web sites use Access Databases and NOT Microsoft SQL 2000. In the future I will need to make a few changes now and then to...
1
1802
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 installation is completed 'Succesfully' as per the setup dialogs. However, when I try to open the IDE by clicking on the shortcut, or attempting...
0
3323
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 Microsoft Visual Studio 2005 Software Development Kit. By providing a full help authoring environment within the Visual Studio 2005 SDK, Innovasys...
0
2407
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 Windows Uninstall Tool you can download. Then I installed Visual Studio 2005 Team Edition ENU. This was a trial version for 180 days.
18
9113
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 page "How to: Connect to Data in an Access Database"
3
6045
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 Pervasive ODBC driver. The devenv.exe process hangs and will not respond with about 50% cpu usage and about 100 megs of memory used. I am...
0
1131
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 2005. BUT we does FACING problems when try to migrate/convert from existing Visual Studio 2002 source to Visual Studio 2005 source. We does using...
1
2494
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 both the MS Visual Web Developer 2005 Express Edition and the MS Visual Studio 2005 Professional Edition used to develop .ASP applications?
3
1807
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 to open a web application project in 2005. but I cannot find any asp.net web application or asp.net web services project templates which I can see...
0
7626
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7830
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8061
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7591
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6180
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5454
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3577
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
867
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.