473,396 Members | 2,011 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,396 software developers and data experts.

list box prob

i hav to develop a programe to represent a printer queue in C++...the user must be able to input the name of the file.(run time & char type).and i want to take put it in to a list box.
i get errors sayin that im trying to input invalid types.

system::convert::to____
this command didnt help

please help.
pleeeaaase
thanx in advance
Oct 19 '07 #1
5 1524
weaknessforcats
9,208 Expert Mod 8TB
Maybe you could post a little code.
Oct 19 '07 #2
Studlyami
464 Expert 256MB
also what you are using, MFC?, Win32 API? Something different?
Oct 19 '07 #3
thank u very much for replying sorry about the way i hav posted the prob.(im new to this)

actually im doin the program on Visual studio 2005 .NET enviroment.and i dont know wat to post as coding
bcz its a "windows form application"

please help
thanks a lot
Oct 20 '07 #4
also what you are using, MFC?, Win32 API? Something different?
thank u very much for replying sorry about the way i hav posted the prob.(im new to this)

actually im doin the program on Visual studio 2005 .NET enviroment.and i dont know waty to post as coding
bcz its a "windows form application"

i tried
listBox->Items->Add(TextBox1->Text);

please help
thanks a lot
Oct 20 '07 #5
Studlyami
464 Expert 256MB
listBox->Items->Add(TextBox1->Text); that line just appears to be incorrect. When adding in items to your list box try using listBox.InsertString or listBox.SetItemData

If that isn't your problem please past this information from your code file.

Your object declaration
Your initialization of your Object
Your code which prepares data for the list box.
Your code which actually adds the item to the list box.
Oct 22 '07 #6

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

Similar topics

6
by: josephrthomas | last post by:
hi..i am trying to make a login page and i am using access table.. when the user enters his userid and password i want to check the password from the table.. if any user with the userID that is...
26
by: Simon Jefferies | last post by:
Hello, I am trying to add an item to a checked list box, like: clbList.Items.add("Hello",true) I get an error back: Run-time exception thrown: System.ArgumentOutOfRangeException -...
3
by: rkumar | last post by:
HI how to display the equipment list on my computer.(using pointers) regards rajkumar
0
Savage
by: Savage | last post by:
I'm making for fun a simple program which format a input file.Input file sustain of person name,lastname and date of birth.Output file si supposed to be forammted as following: NAME ...
2
by: mnacw | last post by:
Can anybody help me to resolve this prob. i have installed Visual Studio 2005 Professional edition. I am working in VB.Net. When I tried to connect to database it is connected but when i make some...
1
by: jackmcg | last post by:
I just installed Office SP3 last night and today a 2 column listbox with a varying rowsource is not displaying column(1). the rowsourcetype is table/query and the rowsource is set by a click_event...
20
by: huzefa53 | last post by:
Hi guys, I am having a problem in my application..the prob is that i wanna get the list of controls on the other form...so what i have done is that 1> I have instantiate the form of which i wanna...
3
by: Synapse | last post by:
hi everyone..im trying to create a student list program using linked list that will display all my info of students..but it seems theres a little prob. after i enter my first student the program will...
3
by: Yonih | last post by:
Hey Everyone, I was hoping someone could help me here. I need a way to have a drop down that when selected it can keep a value and display it below here is an example. A drop down list of...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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
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...
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
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.