Click here to Skip to main content
15,901,373 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Big Art1-Jul-11 10:51
Big Art1-Jul-11 10:51 
AnswerRe: Size of executable doubles since Windows Update on April 14, 2011 Pin
Hans Dietrich1-Jul-11 14:25
mentorHans Dietrich1-Jul-11 14:25 
QuestionProblem creating instance using com smart pointer. Pin
Dhadhan13-Apr-11 18:35
Dhadhan13-Apr-11 18:35 
Questionhow can I draw one Line in different windows? Pin
caiguosen11-Apr-11 4:00
caiguosen11-Apr-11 4:00 
AnswerRe: how can I draw one Line in different windows? Pin
Richard MacCutchan11-Apr-11 4:20
mveRichard MacCutchan11-Apr-11 4:20 
QuestionWindows Media Player Plugin - Property Page Issue Pin
dexter7505-Apr-11 18:56
dexter7505-Apr-11 18:56 
QuestionHandling LVN_DELETEITEM in CListViewCtrl subclass Pin
Philipp Kursawe29-Mar-11 21:09
Philipp Kursawe29-Mar-11 21:09 
QuestionUsage of reference Pin
Krishnakumartg29-Mar-11 1:42
Krishnakumartg29-Mar-11 1:42 
Dears,

Please see the below code.

int main(int argc, char* argv[])
{
    int* p = new int;
    *p = 0;
    int& k = *p;

    k = 15;

    return 0;
}


Doubt is regarding the reference usage as specified in int& k = *p;.
Actually this code works fine. But I want to know whether this code is OK or not. I mean whether any issues will happen in future.
Thanks in advance,
Krishnakumar

AnswerRe: Usage of reference Pin
Richard MacCutchan29-Mar-11 3:22
mveRichard MacCutchan29-Mar-11 3:22 
GeneralRe: Usage of reference Pin
Krishnakumartg29-Mar-11 6:12
Krishnakumartg29-Mar-11 6:12 
GeneralRe: Usage of reference Pin
Richard MacCutchan29-Mar-11 6:25
mveRichard MacCutchan29-Mar-11 6:25 
GeneralRe: Usage of reference Pin
Krishnakumartg29-Mar-11 6:30
Krishnakumartg29-Mar-11 6:30 
GeneralRe: Usage of reference Pin
Richard MacCutchan29-Mar-11 6:54
mveRichard MacCutchan29-Mar-11 6:54 
QuestionWhy more than one picture added into .doc file can't be seen but single can? [modified] Pin
whiteclouds24-Mar-11 21:47
whiteclouds24-Mar-11 21:47 
QuestionHow to replace a '%' character in CComBSTR with "%%" Pin
narayanagvs23-Mar-11 0:31
narayanagvs23-Mar-11 0:31 
AnswerRe: How to replace a '%' character in CComBSTR with "%%" [modified] Pin
Cool_Dev24-Mar-11 2:18
Cool_Dev24-Mar-11 2:18 
GeneralRe: How to replace a '%' character in CComBSTR with "%%" Pin
barneyman22-Apr-11 0:08
barneyman22-Apr-11 0:08 
RantRe: How to replace a '%' character in CComBSTR with "%%" Pin
Cool_Dev22-Apr-11 0:41
Cool_Dev22-Apr-11 0:41 
GeneralRe: How to replace a '%' character in CComBSTR with "%%" Pin
barneyman22-Apr-11 0:50
barneyman22-Apr-11 0:50 
Questionget focus on ActiveX control in MFC Dialog Pin
MrKBA22-Mar-11 0:01
MrKBA22-Mar-11 0:01 
Questionaccessing ActiveX array Pin
opti99921-Mar-11 23:33
opti99921-Mar-11 23:33 
AnswerRe: accessing ActiveX array Pin
Michael Dunn22-Mar-11 20:47
sitebuilderMichael Dunn22-Mar-11 20:47 
QuestionSinging COM Object Pin
Anders Molin21-Mar-11 2:31
professionalAnders Molin21-Mar-11 2:31 
AnswerRe: Singing COM Object Pin
Michael Dunn22-Mar-11 20:51
sitebuilderMichael Dunn22-Mar-11 20:51 
GeneralRe: Singing COM Object Pin
Anders Molin23-Mar-11 8:12
professionalAnders Molin23-Mar-11 8:12 

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.