I use a CDialog with several controls and I want to set the focus in one of
them , a CEdit, when an instance is created.
The trouble is that I can get a pointer to the CEdit window, say p, but if I
use the code
p->SetFocus();
then a warning about a fatal error " memory that can't be read " is issued
and application is killed.
I've tried the code in the constructor and after creation; both producing
the same effect.
Any help ?
them , a CEdit, when an instance is created.
The trouble is that I can get a pointer to the CEdit window, say p, but if I
use the code
p->SetFocus();
then a warning about a fatal error " memory that can't be read " is issued
and application is killed.
I've tried the code in the constructor and after creation; both producing
the same effect.
Any help ?
Comment