Click here to Skip to main content
15,915,163 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralGDI question Pin
Nish Nishant4-Jun-02 19:33
sitebuilderNish Nishant4-Jun-02 19:33 
QuestionHow to view MFC class's code? Pin
dazinith4-Jun-02 17:46
dazinith4-Jun-02 17:46 
AnswerRe: How to view MFC class's code? Pin
Nish Nishant4-Jun-02 17:42
sitebuilderNish Nishant4-Jun-02 17:42 
GeneralRe: How to view MFC class's code? Pin
dazinith4-Jun-02 18:05
dazinith4-Jun-02 18:05 
GeneralRe: How to view MFC class's code? Pin
Alexandru Savescu4-Jun-02 22:04
Alexandru Savescu4-Jun-02 22:04 
GeneralRe: How to view MFC class's code? Pin
Michael P Butler4-Jun-02 22:56
Michael P Butler4-Jun-02 22:56 
GeneralRe: How to view MFC class's code? Pin
Tomasz Sowinski5-Jun-02 0:21
Tomasz Sowinski5-Jun-02 0:21 
GeneralConfusion regarding the "smartness" of smart pointers Pin
Nish Nishant4-Jun-02 17:29
sitebuilderNish Nishant4-Jun-02 17:29 
CoInitialize(NULL);	
ISimplePgpPtr p(__uuidof(SimplePgp)); 	
p->EncryptFile("d:\\in.txt","d:\\a90.pgp","test@test.com");
p.Release();			
CoUninitialize();


Notice how I am calling Release()

My question is this. If it's a smart pointer shouldn't it automatically call Release() in its destructor?

Nish

p.s. I tried leaving out the call to Release() and it crashed Smile | :)


Regards,
Nish
Native CPian.
Born and brought up on CP.
With the CP blood in him.

GeneralRe: Confusion regarding the "smartness" of smart pointers Pin
Jim Crafton4-Jun-02 17:41
Jim Crafton4-Jun-02 17:41 
GeneralRe: Confusion regarding the "smartness" of smart pointers Pin
Nish Nishant4-Jun-02 17:41
sitebuilderNish Nishant4-Jun-02 17:41 
GeneralRe: Confusion regarding the "smartness" of smart pointers Pin
Ed Gadziemski5-Jun-02 14:45
professionalEd Gadziemski5-Jun-02 14:45 
GeneralSmart Pointers - revisited Pin
Nish Nishant4-Jun-02 17:16
sitebuilderNish Nishant4-Jun-02 17:16 
GeneralRe: Smart Pointers - revisited Pin
Le centriste4-Jun-02 17:26
Le centriste4-Jun-02 17:26 
GeneralRe: Smart Pointers - revisited Pin
Nish Nishant4-Jun-02 17:26
sitebuilderNish Nishant4-Jun-02 17:26 
GeneralRe: Smart Pointers - revisited Pin
nay4-Jun-02 18:23
nay4-Jun-02 18:23 
GeneralHelp, please! How to getactiveview from MyApp Pin
lucy4-Jun-02 16:49
lucy4-Jun-02 16:49 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
Nish Nishant4-Jun-02 17:18
sitebuilderNish Nishant4-Jun-02 17:18 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
lucy4-Jun-02 17:26
lucy4-Jun-02 17:26 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
Nish Nishant4-Jun-02 17:25
sitebuilderNish Nishant4-Jun-02 17:25 
GeneralRe: Help, please! How to getactiveview from MyApp Pin
lucy4-Jun-02 17:39
lucy4-Jun-02 17:39 
GeneralTrackPopupMenu Pin
Steve L.4-Jun-02 15:53
Steve L.4-Jun-02 15:53 
GeneralRe: TrackPopupMenu Pin
Shog94-Jun-02 16:11
sitebuilderShog94-Jun-02 16:11 
GeneralRe: TrackPopupMenu Pin
Steve L.4-Jun-02 16:09
Steve L.4-Jun-02 16:09 
GeneralRe: TrackPopupMenu Pin
Shog94-Jun-02 16:20
sitebuilderShog94-Jun-02 16:20 
GeneralRe: TrackPopupMenu Pin
Steve L.4-Jun-02 16:17
Steve L.4-Jun-02 16:17 

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.