Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Edit box and integer...

Status
Not open for further replies.

danielnogo

Programmer
Jan 20, 2005
16
0
0
US
Im making a calculator and have an edit box that has a cstring variable attached to it, I need to be able to make the edit box also accept int variables though becuase of the way my program is set up. I've tried everything I know how to do, can you help?
 
You can easily make it take an int instead of a CString. First remove the CString, then try to add another variable, and where it says the type, just change that to an int.
 
it has to be a string attached to the edit box, I just need to be able to put the int inside the cstring and display it in the edit box.
 
try
Code:
m_strEditText.Format("%d",nNumber)





"If it could have gone wrong earlier and it didn't, it ultimately would have been beneficial for it to have." : Murphy's Ultimate Corollary
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top