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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem updating variable

Status
Not open for further replies.

minifiredragon

Programmer
Jun 29, 2003
68
US
I don't know if it's late or I am just stupid, but I can't get a CString to change.

I have it created when the application is started. Then, during the application I call a function, and from within that function (it is OnTimer()) I change, or atleast try to change the CString. At first I thought it was because I set it as a private CString, so I changed it to a public CString and still, it will not stay with the updated information. WTF am I missing?
 
Just Ignore this, I am not sure what I did wrong though, maybe it is because my function uses the same name as the CString I am changing.

EX:

Adjust(CString str_ratio, CString str_amount)

coding in here

str_amount = str_ratio;

something like that, but alot longer. :)

Anywho, i worked around it.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top