• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 200
  • Last Modified:

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?
0
awong726
Asked:
awong726
1 Solution
 
trestanCommented:
"this" is already a pointer.
0
 
awong726Author Commented:
Ahhh....
Thanks.
0

Featured Post

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now