Click here to Skip to main content
15,883,814 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: Can CAxWindow's subclass implement in a dll, and create in exe program? Pin
SearchDream31-Mar-09 18:25
SearchDream31-Mar-09 18:25 
QuestionIs there anyway to authenticate the COM client? Pin
lucyh3h30-Mar-09 6:05
lucyh3h30-Mar-09 6:05 
AnswerRe: Is there anyway to authenticate the COM client? Pin
Stuart Dootson30-Mar-09 6:57
professionalStuart Dootson30-Mar-09 6:57 
GeneralRe: Is there anyway to authenticate the COM client? Pin
lucyh3h30-Mar-09 10:37
lucyh3h30-Mar-09 10:37 
GeneralRe: Is there anyway to authenticate the COM client? Pin
Stuart Dootson30-Mar-09 11:28
professionalStuart Dootson30-Mar-09 11:28 
GeneralRe: Is there anyway to authenticate the COM client? Pin
lucyh3h31-Mar-09 4:19
lucyh3h31-Mar-09 4:19 
GeneralRe: Is there anyway to authenticate the COM client? Pin
Stuart Dootson31-Mar-09 6:43
professionalStuart Dootson31-Mar-09 6:43 
QuestionIs forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stone Free26-Mar-09 4:17
Stone Free26-Mar-09 4:17 
In normal C++ when a class header only contains a reference or a pointer to a class it is better to not #include the definition but wait until the .cpp file to avoid coupling/avoid recompilation.

In our of our class headers the reference concerned is to a smart pointer generated from a #import, in other words a smart pointer of the form _COM_SMARTPTR_TYPEDEF(IComInterface, &__uuidof(IComInterface))

Which expands to typedef _com_ptr_t<_com_IIID<icominterface,> > IComInterface;

I think the problem is that the __declspec(uuid("GUID VALUE")) which is attached to the forward declaration of the IComInterface struct like __stdcall and __fastcall is part of the declaration and so will produce different types depending on the contents of uuid. The problem however is that the uuid contents will be autogenerated by the #import line, and so it won't be possible know ahead of time to know what to put in the typedef.

I also think that the $(InputName)_i.c file generated when building the COM component won't help because although it contains the correct GUID it won't be in the correct form for __uuidof
AnswerRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stuart Dootson26-Mar-09 4:37
professionalStuart Dootson26-Mar-09 4:37 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stone Free26-Mar-09 5:34
Stone Free26-Mar-09 5:34 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stuart Dootson26-Mar-09 5:49
professionalStuart Dootson26-Mar-09 5:49 
GeneralRe: Is forward declaration of ATL autogenerated _com_ptr_t possible? Pin
Stone Free26-Mar-09 6:57
Stone Free26-Mar-09 6:57 
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 
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 

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.