Click here to Skip to main content
15,897,518 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionIncluding is an error? [modified] Pin
Mustafa Ismail Mustafa23-Nov-07 1:04
Mustafa Ismail Mustafa23-Nov-07 1:04 
AnswerNever happened Pin
CPallini23-Nov-07 3:00
mveCPallini23-Nov-07 3:00 
AnswerRe: Including is an error? Pin
Florin Crişan23-Nov-07 4:47
Florin Crişan23-Nov-07 4:47 
GeneralRe: Including is an error? Pin
CPallini27-Nov-07 21:43
mveCPallini27-Nov-07 21:43 
QuestionHow to add control variables to control placed on ATL composite control Pin
viswanadhr22-Nov-07 4:14
viswanadhr22-Nov-07 4:14 
QuestionMMC node drag-drop using cut-copy-paste Pin
alien888820-Nov-07 21:07
alien888820-Nov-07 21:07 
Questionmemory leak Pin
anithavikram(manisha)20-Nov-07 20:06
anithavikram(manisha)20-Nov-07 20:06 
AnswerRe: memory leak Pin
Stuart Dootson20-Nov-07 21:49
professionalStuart Dootson20-Nov-07 21:49 
This doesn't compile, never mind run, so it's not going to leak memory.

Rather than CComSafeArray, I think you meant COleSafeArray (which has CreateOneDim and PutElement methods), which is an MFC class...

Also, the first parameter to COleSafeArray::PutElement is a long*, not a long, so passing 0, 1, 2 or 3 isn't going to work - you need to have a long variable that you pass the address of:
long index = 0;
csaConType.PutElement(&index, bstrName.Copy());
index = 1;
csaConType.PutElement(&index, bstrName1.Copy());
index = 2;
csaConType.PutElement(&index, bstrName2.Copy());
index = 3;
csaConType.PutElement(&index, bstrName3.Copy());
Aside from all that, I don't think it has a memory leak if implemented correctly.



QuestionHow to transfer file using ATL SERVER .net 2003 [modified] Pin
SSATYAMASKE19-Nov-07 22:12
SSATYAMASKE19-Nov-07 22:12 
QuestionHow to Provide 30 day Trial Version Pin
swamy Narasimha17-Nov-07 0:47
swamy Narasimha17-Nov-07 0:47 
AnswerRe: How to Provide 30 day Trial Version Pin
ThatsAlok24-Nov-07 0:15
ThatsAlok24-Nov-07 0:15 
QuestionSerial Port Pin
sunny.rana12-Nov-07 9:57
sunny.rana12-Nov-07 9:57 
AnswerRe: Serial Port Pin
Nathan Holt at EMOM16-Nov-07 6:56
Nathan Holt at EMOM16-Nov-07 6:56 
Questionwhen to/why use Allocator::construct()? [modified] Pin
jens rasmussen11-Nov-07 4:29
jens rasmussen11-Nov-07 4:29 
AnswerRe: when to/why use Allocator::construct()? Pin
Stuart Dootson12-Nov-07 15:30
professionalStuart Dootson12-Nov-07 15:30 
GeneralRe: when to/why use Allocator::construct()? Pin
jens rasmussen13-Nov-07 1:07
jens rasmussen13-Nov-07 1:07 
GeneralRe: when to/why use Allocator::construct()? Pin
Stuart Dootson13-Nov-07 5:01
professionalStuart Dootson13-Nov-07 5:01 
AnswerRe: when to/why use Allocator::construct()? Pin
led mike13-Nov-07 4:53
led mike13-Nov-07 4:53 
GeneralRe: when to/why use Allocator::construct()? Pin
Stuart Dootson13-Nov-07 5:12
professionalStuart Dootson13-Nov-07 5:12 
GeneralRe: when to/why use Allocator::construct()? Pin
led mike13-Nov-07 6:11
led mike13-Nov-07 6:11 
JokeRe: when to/why use Allocator::construct()? Pin
George L. Jackson13-Nov-07 11:09
George L. Jackson13-Nov-07 11:09 
JokeRe: when to/why use Allocator::construct()? Pin
led mike14-Nov-07 4:46
led mike14-Nov-07 4:46 
QuestionPush File into STL list Pin
Jeffrey Walton9-Nov-07 9:36
Jeffrey Walton9-Nov-07 9:36 
AnswerRe: Push File into STL list [modified] Pin
Rajasekharan Vengalil10-Nov-07 12:51
Rajasekharan Vengalil10-Nov-07 12:51 
GeneralRe: Push File into STL list Pin
Jeffrey Walton10-Nov-07 13:21
Jeffrey Walton10-Nov-07 13: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.