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

C / C++ / MFC

 
GeneralRe: problem with Edit Box Pin
Manfred Staiger27-Jul-04 23:04
Manfred Staiger27-Jul-04 23:04 
GeneralRe: problem with Edit Box Pin
basementman28-Jul-04 10:46
basementman28-Jul-04 10:46 
GeneralOwner drawn windows Pin
Archer28227-Jul-04 19:32
Archer28227-Jul-04 19:32 
QuestionFree Lib to create PDF documents? Pin
Erik27-Jul-04 18:57
Erik27-Jul-04 18:57 
AnswerRe: Free Lib to create PDF documents? Pin
francisquet27-Jul-04 21:58
francisquet27-Jul-04 21:58 
GeneralButton to List Pin
arunforce27-Jul-04 15:32
arunforce27-Jul-04 15:32 
GeneralRe: Button to List Pin
V.27-Jul-04 23:42
professionalV.27-Jul-04 23:42 
GeneralRe: Button to List Pin
arunforce28-Jul-04 4:19
arunforce28-Jul-04 4:19 
I tried implementing your code and I got errors.

Do you think you can manually explain it?
What did you mean make nice ans fluffy string?

I get these errors -_-
F:\Documents and Settings\Administrator\My Documents\Arun\Code\Tycoon\TycoonDlg.cpp(107) : error C2065: 'listbox' : undeclared identifier
F:\Documents and Settings\Administrator\My Documents\Arun\Code\Tycoon\TycoonDlg.cpp(107) : error C2228: left of '.Add' must have class/struct/union type
F:\Documents and Settings\Administrator\My Documents\Arun\Code\Tycoon\TycoonDlg.cpp(107) : error C2065: 'output' : undeclared identifier


This is the code from my file.

void CTycoonDlg::OnIncrease()
{
cash++;
//On Click, Display in ListBox "You currently have $(cash) with you."
CString str;
CString output;
str.Format("%i", cash);//make a string from your number
output = "You have \"" + str + "\"dollars in your account.";//make nice ans fluffy string. (\" is a " character in your string)
}

void CTycoonDlg::OnList()
{
listbox.Add(output);//add to listbox (could be AddString or something don't know by heart)
}

I know I said "x" would be the variable, but I decided it was too confusing and changed it to "cash".


GeneralRe: Button to List Pin
V.28-Jul-04 5:18
professionalV.28-Jul-04 5:18 
Questionhow to Launch IE with ShellExecute? Pin
Dody_DK27-Jul-04 14:27
Dody_DK27-Jul-04 14:27 
AnswerRe: how to Launch IE with ShellExecute? Pin
Ivan Cachicatari27-Jul-04 15:30
Ivan Cachicatari27-Jul-04 15:30 
AnswerRe: how to Launch IE with ShellExecute? Pin
Ryan Binns27-Jul-04 18:39
Ryan Binns27-Jul-04 18:39 
AnswerRe: how to Launch IE with ShellExecute? Pin
Archer28227-Jul-04 19:26
Archer28227-Jul-04 19:26 
GeneralRe: how to Launch IE with ShellExecute? Pin
Dody_DK28-Jul-04 0:30
Dody_DK28-Jul-04 0:30 
GeneralRe: how to Launch IE with ShellExecute? Pin
Ravi Bhavnani28-Jul-04 13:54
professionalRavi Bhavnani28-Jul-04 13:54 
QuestionHow to change combo styles in runtime Pin
Ivan Cachicatari27-Jul-04 10:57
Ivan Cachicatari27-Jul-04 10:57 
AnswerRe: How to change combo styles in runtime Pin
David Crow28-Jul-04 4:00
David Crow28-Jul-04 4:00 
GeneralA couple of questions... Pin
0v3rloader27-Jul-04 10:07
0v3rloader27-Jul-04 10:07 
GeneralRe: A couple of questions... Pin
Ryan Binns27-Jul-04 18:49
Ryan Binns27-Jul-04 18:49 
GeneralRe: A couple of questions... Pin
0v3rloader28-Jul-04 0:50
0v3rloader28-Jul-04 0:50 
GeneralRe: A couple of questions... Pin
Tomasz Sowinski28-Jul-04 1:00
Tomasz Sowinski28-Jul-04 1:00 
Questionhow make make an image with system colors? Pin
Kamis27-Jul-04 8:37
Kamis27-Jul-04 8:37 
AnswerRe: how make make an image with system colors? Pin
Ryan Binns27-Jul-04 19:07
Ryan Binns27-Jul-04 19:07 
GeneralRe: how make make an image with system colors? Pin
Kamis27-Jul-04 23:18
Kamis27-Jul-04 23:18 
QuestionHow do I create a "floating" dialog box? Pin
shihuik27-Jul-04 6:33
shihuik27-Jul-04 6:33 

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.