Pointer to this

I have a global pointer, and in OnInitDialog() I want to make the pointer to point to this (the instance).
I tried to do:
pThis = &this
, but it said that & requires l-value.
Any suggestions?
awong726Asked:
Who is Participating?
 
trestanConnect With a Mentor Commented:
"this" is already a pointer.
0
 
awong726Author Commented:
Ahhh....
Thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.