Solved

Pointer to this

Posted on 1998-07-09
2
175 Views
Last Modified: 2013-11-19
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
Comment
Question by:awong726
2 Comments
 
LVL 8

Accepted Solution

by:
trestan earned 20 total points
Comment Utility
"this" is already a pointer.
0
 

Author Comment

by:awong726
Comment Utility
Ahhh....
Thanks.
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Introduction: Load and Save to file, Document-View interaction inside the SDI. Continuing from the second article about sudoku.   Open the project in visual studio. From the class view select CSudokuDoc and double click to open the header …
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now