Click to See Complete Forum and Search --> : RDC with Visual C++


paunetg
May 25th, 2005, 03:52 AM
Hello,

When I use in my code :

IReportPtr pReport;

pReport->OpenReport("MyReport.rpt");
... //code...

... //code
long lValue;
lValue = pReport->Release();

At the end of the function must I each time "release" the COM pointer or it's automaticly done when i'm leaving the function ? :sick:

Thanks