R
Rob Prins
{ This is probably a non-environment-specific problem buried in an
environment-specific context; thus accepted. -mod }
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
environment-specific context; thus accepted. -mod }
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