Click here to Skip to main content
15,895,084 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Debug Assertion Failed Pin
MsmVc23-Feb-09 19:19
MsmVc23-Feb-09 19:19 
GeneralRe: Debug Assertion Failed Pin
CPallini23-Feb-09 20:40
mveCPallini23-Feb-09 20:40 
AnswerRe: Debug Assertion Failed Pin
KarstenK23-Feb-09 21:25
mveKarstenK23-Feb-09 21:25 
QuestionRe: Debug Assertion Failed Pin
David Crow24-Feb-09 3:28
David Crow24-Feb-09 3:28 
Questionusing vectors to parse text delimited files in C++ Pin
meixiang623-Feb-09 17:12
meixiang623-Feb-09 17:12 
AnswerRe: using vectors to parse text delimited files in C++ Pin
Stuart Dootson23-Feb-09 19:56
professionalStuart Dootson23-Feb-09 19:56 
GeneralRe: using vectors to parse text delimited files in C++ Pin
meixiang624-Feb-09 5:03
meixiang624-Feb-09 5:03 
QuestionHelp with number to string conversion Pin
TabascoSauce23-Feb-09 14:09
TabascoSauce23-Feb-09 14:09 
I've been working my way out of the console apps and I am now trying to learn how to use windows forms in visual studio 2008.

Anyway, onward to the question.

I am trying to display a numerical value as text in a label on a windows form. I looked around for an answer on the internet and I found some, but I couldn't get them to work for me. So I decided to start from scratch and just ask this forum for help.

Here's the section of code I'm dealing with, I bolded my problem areas.
Oh and to avoid confusion, click this: http://img100.imageshack.us/img100/4479/form1w.jpg[^]. Its a picture of my form with all of the variables and etc labeled.

private: System::Void numberDisp_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			 numberDisp->Text = ticketNumber->Value
		 }
private: System::Void priceDisp_Click(System::Object^  sender, System::EventArgs^  e) 
		 {
			 //Variable
			 int tickNum = 0;
			 double price = 0;

			 //Get # of tickets
			 tickNum = ticketNumber->Value;
			 
			 //Calculate Price
			 if (locB->Checked == true)
			 {
				 price = tickNum * 75;
			 }
			 if (locP->Checked == true)
			 {
				 price = tickNum * 30;
			 }
			 if (locL->Checked == true)
			 {
				 price = tickNum * 21;
			 }

			 //Display Price
			 priceDisp->Text = price;
		 }

AnswerRe: Help with number to string conversion Pin
Stuart Dootson23-Feb-09 14:26
professionalStuart Dootson23-Feb-09 14:26 
GeneralRe: Help with number to string conversion Pin
TabascoSauce23-Feb-09 15:32
TabascoSauce23-Feb-09 15:32 
QuestionNon-Static Member Call Question Pin
Rangarajan Varadan23-Feb-09 12:51
Rangarajan Varadan23-Feb-09 12:51 
AnswerRe: Non-Static Member Call Question Pin
Stuart Dootson23-Feb-09 13:53
professionalStuart Dootson23-Feb-09 13:53 
GeneralRe: Non-Static Member Call Question Pin
David Crow23-Feb-09 16:26
David Crow23-Feb-09 16:26 
GeneralRe: Non-Static Member Call Question Pin
Rangarajan Varadan25-Feb-09 10:40
Rangarajan Varadan25-Feb-09 10:40 
Questionread comma delimeted numbers and text mixture in a line [modified] Pin
mrby12323-Feb-09 12:08
mrby12323-Feb-09 12:08 
AnswerRe: read comma delimeted numbers and text mixture in a line Pin
Stuart Dootson23-Feb-09 12:40
professionalStuart Dootson23-Feb-09 12:40 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 12:47
mrby12323-Feb-09 12:47 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
Stuart Dootson23-Feb-09 13:48
professionalStuart Dootson23-Feb-09 13:48 
AnswerRe: read comma delimeted numbers and text mixture in a line Pin
David Crow23-Feb-09 16:29
David Crow23-Feb-09 16:29 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 16:47
mrby12323-Feb-09 16:47 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
David Crow24-Feb-09 2:40
David Crow24-Feb-09 2:40 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
mrby12323-Feb-09 19:05
mrby12323-Feb-09 19:05 
GeneralRe: read comma delimeted numbers and text mixture in a line Pin
David Crow24-Feb-09 2:23
David Crow24-Feb-09 2:23 
QuestionHow to fix the Linking error Pin
SIJUTHOMASP23-Feb-09 10:33
professionalSIJUTHOMASP23-Feb-09 10:33 
AnswerRe: How to fix the Linking error Pin
Stuart Dootson23-Feb-09 12:37
professionalStuart Dootson23-Feb-09 12:37 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.