Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C - C++ Learning > CString changin...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 5 Topic 4228 of 4370
Post > Topic >>

CString changing an independant int

by Rob Prins <robprins@[EMAIL PROTECTED] > Jul 30, 2008 at 09:36 PM

L.S.

For a couple of days I've been trying to write a small Windows program, 
and although C is no problem I'm struggling witch C++ (VS2008). Somehow 
I must be doing something wrong.

I've got this dialog class in which I've defined some ints and CStrings, 
and some functions. What happens is this: in one of those functions I 
assign a value to one of these CStrings (just strFoo = "bar";). At that 
exact moment in the program the value of one of the class's ints changes 
too. In C I'd know my string buffer was too small or something, but I 
thought it would be impossible with a CString...

Probably a dumb question, but any answer is appreciated.

Thanks,

Rob
 




 5 Posts in Topic:
CString changing an independant int
Rob Prins <robprins@[E  2008-07-30 21:36:29 
Re: CString changing an independant int
"Eric Pruneau"   2008-07-30 16:29:26 
Re: CString changing an independant int
Rob Prins <robprins@[E  2008-07-31 00:03:45 
Re: CString changing an independant int
"Eric Pruneau"   2008-07-30 18:41:23 
Re: CString changing an independant int
Rob Prins <robprins@[E  2008-07-31 00:44:38 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Nov 21 9:22:02 CST 2008.