Click here to Skip to main content
15,884,388 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stuart Dootson26-Mar-09 8:06
professionalStuart Dootson26-Mar-09 8:06 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stone Free8-Apr-09 6:18
Stone Free8-Apr-09 6:18 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stuart Dootson8-Apr-09 8:13
professionalStuart Dootson8-Apr-09 8:13 
Questiona problem in coding modeless dialog with atl Pin
ernst2002053026-Mar-09 4:08
ernst2002053026-Mar-09 4:08 
AnswerRe: a problem in coding modeless dialog with atl Pin
Stuart Dootson26-Mar-09 4:24
professionalStuart Dootson26-Mar-09 4:24 
QuestionC++ client for ATL web service without Soap? Pin
ERLN25-Mar-09 19:07
ERLN25-Mar-09 19:07 
AnswerRe: C++ client for ATL web service without Soap? Pin
Stuart Dootson25-Mar-09 23:25
professionalStuart Dootson25-Mar-09 23:25 
QuestionSTL vector of pointers question Pin
mjackson1125-Mar-09 17:57
mjackson1125-Mar-09 17:57 
I have two vectors holding different classes. The first class contains only data of integer/double type. I can create a vector of the first class, access it, manipulate it, no problems.

The second class contains a combination of data and several pointers to allocated storage space. The space is allocated on the fly as needed. The destructor of the class frees the space. The problem arises when adding new instances of the class to the vector. If there isn't enough space in the vector, the vector class clones itself, adds space, and the erases the old vector. Unfortunately in erasing "old" vector, it frees the storage space and the program crashes because the storage pointers are invalid.

Creating a vector of pointers to the class solves the problem but would involve a massive re-write of code.

Anyone have any suggestions how to handle this? Is there a graceful way to handle pointers inside the class when you don't know when the class will be destroyed by the container?
AnswerRe: STL vector of pointers question Pin
«_Superman_»25-Mar-09 21:27
professional«_Superman_»25-Mar-09 21:27 
AnswerRe: STL vector of pointers question Pin
Stuart Dootson25-Mar-09 23:34
professionalStuart Dootson25-Mar-09 23:34 
QuestionRe: STL vector of pointers question Pin
«_Superman_»26-Mar-09 2:20
professional«_Superman_»26-Mar-09 2:20 
AnswerRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 3:00
professionalStuart Dootson26-Mar-09 3:00 
GeneralRe: STL vector of pointers question Pin
mjackson1126-Mar-09 7:40
mjackson1126-Mar-09 7:40 
GeneralRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 8:01
professionalStuart Dootson26-Mar-09 8:01 
GeneralRe: STL vector of pointers question Pin
«_Superman_»26-Mar-09 18:27
professional«_Superman_»26-Mar-09 18:27 
GeneralRe: STL vector of pointers question Pin
Stuart Dootson26-Mar-09 21:20
professionalStuart Dootson26-Mar-09 21:20 
GeneralRe: STL vector of pointers question Pin
«_Superman_»28-Mar-09 18:25
professional«_Superman_»28-Mar-09 18:25 
Questionproblem facing in updationg images dynamically at runutime using IWebBroser2 and IHTMLElement in custome browser Pin
Abhijit A22-Mar-09 21:18
Abhijit A22-Mar-09 21:18 
QuestionRe: problem facing in updationg images dynamically at runutime using IWebBroser2 and IHTMLElement in custome browser Pin
led mike25-Mar-09 5:03
led mike25-Mar-09 5:03 
Questionhow to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
Hemant kulkarni22-Mar-09 17:21
Hemant kulkarni22-Mar-09 17:21 
AnswerRe: how to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
Stuart Dootson22-Mar-09 23:15
professionalStuart Dootson22-Mar-09 23:15 
AnswerRe: how to fix error C2993: 'float' : illegal type for non-type template parameter ' Pin
John R. Shaw29-Mar-09 20:16
John R. Shaw29-Mar-09 20:16 
QuestionAccess Denied Error from OpenStream Pin
Ankush12319-Mar-09 4:49
Ankush12319-Mar-09 4:49 
AnswerRe: Access Denied Error from OpenStream Pin
Jonathan Davies19-Mar-09 7:25
Jonathan Davies19-Mar-09 7:25 
GeneralRe: Access Denied Error from OpenStream Pin
Ankush12319-Mar-09 19:22
Ankush12319-Mar-09 19:22 

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.