Please tell me the reason?
Quote:
Originally posted by Andreas Masur
Simply use the second one... :cool:
Please Tell me the reason ?
isn't there any difference of memory consumption?
Thank you,
Bye
Re: Please tell me the reason?
Quote:
Originally posted by dineshns
Please Tell me the reason ?
isn't there any difference of memory consumption?
Well...usig pointers always introduce the possibility of memory leaks, invalid addreses and such. There is basically no need to use them for the controls...
There might be really rare cases where you would use a pointer to controls for a good reasons in my eyes. Besides that, if you assign these member variables via the class wizard....then you only have one choice anyway... :cool: