473,737 Members | 8,958 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 8382
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
1941
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 methodolgy that is already setup in the Visual Studio.NET 2005 system? For example, is it a feature like...
3
2314
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 this web sites.
1
1812
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 to open \Common7\IDE\devenv.exe, I get the following dialog:
0
3351
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 is providing developers building components and products that integrate with Visual Studio 2005 a...
0
2414
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
9148
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
6060
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 running it on an Athlon 64 bit dual core with 32 bit Windows XP pro. I have 2 megs of memory so I don't...
0
1139
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 existing convertion tools which Visual Studio 2005 provided. But encounter many problem. Any One...
1
2504
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
1815
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 them in .net 2003. What's going on? did I miss anything when I installed? is there any easy way to...
0
8968
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 usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8786
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9207
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8207
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6749
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 instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6052
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4823
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2744
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2192
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.