Click here to Skip to main content
15,888,461 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to move buttons to the left side? Pin
coolhem13-Sep-10 4:34
coolhem13-Sep-10 4:34 
GeneralRe: How to move buttons to the left side? Pin
Eugen Podsypalnikov13-Sep-10 5:14
Eugen Podsypalnikov13-Sep-10 5:14 
QuestionHow to tile multiple windows in a single view Pin
Vaclav_11-Sep-10 8:59
Vaclav_11-Sep-10 8:59 
AnswerRe: How to tile multiple windows in a single view Pin
ShanghaiDan11-Sep-10 9:57
ShanghaiDan11-Sep-10 9:57 
AnswerRe: How to tile multiple windows in a single view Pin
«_Superman_»12-Sep-10 18:50
professional«_Superman_»12-Sep-10 18:50 
GeneralRe: How to tile multiple windows in a single view - SOLVED Pin
Vaclav_13-Sep-10 2:39
Vaclav_13-Sep-10 2:39 
QuestionReference to a pointer question Pin
VentsyV10-Sep-10 11:43
VentsyV10-Sep-10 11:43 
AnswerRe: Reference to a pointer question Pin
MicroVirus10-Sep-10 12:53
MicroVirus10-Sep-10 12:53 
You're referencing a pointer, which is only confusing. Either reference the object, myObj&, or use pointers.

class Object
{
   string data();
}myObj, *myObjPtr;

myObjPtr GetObjPtr();

I would like to do the following:

myObjPtr pTest = GetObjPtr();

string data1 = pTest->data();


This would work. With a reference, you need to ensure the object that is orignally referenced (in this case this is a pointer variable) is still in scope; in this case this is done inside your GetObjPtr() function so I can't see what is going wrong.
For your code, you should probably stick to pointers and forget references. Or, depending on the rest of your code, perhaps you could stick to references and forget about pointers.
AnswerRe: Reference to a pointer question Pin
Niklas L10-Sep-10 21:04
Niklas L10-Sep-10 21:04 
AnswerRe: Reference to a pointer question Pin
Paul Michalik11-Sep-10 23:17
Paul Michalik11-Sep-10 23:17 
AnswerRe: Reference to a pointer question [modified] Pin
Aescleal12-Sep-10 11:01
Aescleal12-Sep-10 11:01 
QuestionWindow IME language Pin
fusion_nuke@hotmail.com10-Sep-10 7:48
fusion_nuke@hotmail.com10-Sep-10 7:48 
GeneralRe: Window IME language Pin
David Crow10-Sep-10 8:15
David Crow10-Sep-10 8:15 
GeneralRe: Window IME language Pin
Nemanja Trifunovic10-Sep-10 8:48
Nemanja Trifunovic10-Sep-10 8:48 
GeneralRe: Window IME language Pin
David Crow10-Sep-10 9:30
David Crow10-Sep-10 9:30 
GeneralRe: Window IME language Pin
fusion_nuke@hotmail.com10-Sep-10 18:00
fusion_nuke@hotmail.com10-Sep-10 18:00 
AnswerRe: Window IME language Pin
Nemanja Trifunovic10-Sep-10 8:57
Nemanja Trifunovic10-Sep-10 8:57 
QuestionCList with Pointers Pin
VentsyV10-Sep-10 7:05
VentsyV10-Sep-10 7:05 
QuestionRe: CList with Pointers Pin
CPallini10-Sep-10 7:51
mveCPallini10-Sep-10 7:51 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 8:01
VentsyV10-Sep-10 8:01 
QuestionRe: CList with Pointers Pin
David Crow10-Sep-10 8:10
David Crow10-Sep-10 8:10 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 8:33
VentsyV10-Sep-10 8:33 
AnswerRe: CList with Pointers Pin
VentsyV10-Sep-10 9:18
VentsyV10-Sep-10 9:18 
QuestionPrint a FormView Pin
Shivanand Gupta10-Sep-10 2:25
Shivanand Gupta10-Sep-10 2:25 
AnswerRe: Print a FormView Pin
Richard MacCutchan10-Sep-10 5:21
mveRichard MacCutchan10-Sep-10 5:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.