473,406 Members | 2,352 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.

VC2005, please help me with TextBox and Label controls

27
Hi all,

I simply cant manage to read / write value from controls (TextBox, Label ...) in Visual C++.

I am new to Visual C++ so please explain! How to get a value from user (TextBox) into my char* or int type variable and how to print it out (Label) ?
I found out I can do:

String^ str = "Hello";
label1->Text = str;

but nothing more.

Why does microsoft made up System::String^ type and why I cant do simple conversions from and into this type? (like to char* , to int , to float, to whatever and backwards?)

What am I missing? Is there any library with nice functions I should include?

In C++ Borland Builder Ansistring type exists and I can happily play all around with strings. It is also easy to use all C standard library (stdio.h and string.h) or iostream for me. But how to work with strings in Microsoft Visual C++ (not console but in desktop applications)? Help me with this mystery please!

Thanks
Nov 1 '06 #1
2 1920
dtimes6
73
What u are using is something called managed c++ it is not std c++.
U 'd better use What Microsoft provide to do ur conversion
Nov 2 '06 #2
dush
27
Thanks for reply, but how to move form managed C++ to std C++? Where can I find it out? What should I install or include? I know there must be something that provide these essential conversions.
Can you explain it more please?
Nov 2 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

23
by: Jason | last post by:
Hi, I was wondering if any could point me to an example or give me ideas on how to dynamically create a form based on a database table? So, I would have a table designed to tell my application...
3
by: Kris van der Mast | last post by:
Hi, I've created a little site for my sports club. In the root folder there are pages that are viewable by every anonymous user but at a certain subfolder my administration pages should be...
7
by: John | last post by:
Hi all, I need finality on this once and for all please. I have a main page which contains a couple of placeholders and within these placeholders, depending on what the user presses, I load...
2
by: RBCC | last post by:
I have a form with a 2 textboxes and a listbox, The data is read in by a file called "memberphones" The listnbox lists names in this way (lastname,first name) sorted by the last name. the...
0
by: Zark3 | last post by:
Hi all, In a web form I use a for loop to dynamically add TextBox'es to a page (one for each item in an input file). I can get the input values and I can display them in Label's and TextBox'es....
0
by: Control Freq | last post by:
Dear all, Below is my first C# program. Please be gentle with me. I was asked to produce a simple Windows Forms program to save Key/Value pairs, along with the a couple of sorting choices. ...
0
by: shapper | last post by:
Hello, I want to create an ordered list where each list item can have various controls: <ol> <li>textbox, label, ...</li> ... </ol>
2
by: =?Utf-8?B?Q2hyaXM=?= | last post by:
Hi, I am trying to check a value of a contril in my gridview but this %$%&^^&* thing is driving me nuts. I tried Dim t As TextBox = CType(e.Row.Cells(16).FindControl("Status"), TextBox) If...
5
parshupooja
by: parshupooja | last post by:
Hello I am trying to create to a Timesheet . I am intiating number of textboxes and label based on criteria chosen by admin. This is what i have written in pageload to generate timesheet for 2...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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?
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
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...
0
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...
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...

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.