Click here to Skip to main content
15,905,971 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: CoCreateInstanceAsAdmin Pin
Jörgen Sigvardsson1-May-08 0:19
Jörgen Sigvardsson1-May-08 0:19 
QuestionVB Client Crashes while using ATL COM build in C++ Pin
garammasala13-Apr-08 22:56
garammasala13-Apr-08 22:56 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM16-Apr-08 11:35
Nathan Holt at EMOM16-Apr-08 11:35 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
garammasala21-Apr-08 18:15
garammasala21-Apr-08 18:15 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM22-Apr-08 6:27
Nathan Holt at EMOM22-Apr-08 6:27 
GeneralRe: VB Client Crashes while using ATL COM build in C++ [modified] Pin
garammasala28-Apr-08 2:49
garammasala28-Apr-08 2:49 
GeneralConverting MFC code to WTL [modified] Pin
Rune Andersen11-Apr-08 3:18
Rune Andersen11-Apr-08 3:18 
GeneralDoubt in templates Pin
C.P.Rajesh11-Apr-08 1:57
C.P.Rajesh11-Apr-08 1:57 
We have a template class as below

template <class T>
class EXP_IMP_CTPERF CTPERFPtr
/*] END Class */
{
public:
// constructors
CTPERFPtr();
CTPERFPtr(const CTPERFPtr<T>& in_CTPERFPtr);
CTPERFPtr(CTPERFObject *in_Object);
CTPERFPtr(const CTPERFPointer& in_Ptr);

// destructor
virtual ~CTPERFPtr();

// assignment operators
const CTPERFPtr<T> &operator=(const CTPERFPtr<T>& in_CTPERFPtr);
const CTPERFPtr<T> &operator=(T *in_Object);
const CTPERFPtr<T> &operator=(const CTPERFPointer &in_Pointer);

// == operator
bool operator==(T *in_Object);
bool operator==(const CTPERFPtr<T>& in_CTPERFPtr);
bool operator==(const CTPERFPointer &in_Pointer);
bool operator!=(T *in_Object);
bool operator!=(const CTPERFPtr<T>& in_CTPERFPtr);
bool operator!=(const CTPERFPointer &in_Pointer);

operator CTPERFPointer&();
operator T*() const;

// returns true if the pointer really points to an object of that class
static bool isClassOf(CTPERFPointer& in_Object);
static bool baseObject(T &in_Pointer);

// to get the object T
T *operator->() const;

T *getPtr() const;
};

Now i have two classes say Base and derived.
class Base {};
class Derived: public Base {};

Now a function gets CTPERFPtr<base /> as one of its input parameter.
void Func(CTPERFPtr<base />& base_in)
{
}

The function call is done like

CTPERFPtr<derived> derive;
Func(derive);

Can somebody explain how this works?
GeneralRe: Doubt in templates Pin
Johann Gerell14-May-08 21:34
Johann Gerell14-May-08 21:34 
QuestionHow to use multi byte character set in vs2008 ATL Pin
Robe10-Apr-08 18:16
Robe10-Apr-08 18:16 
AnswerRe: How to use multi byte character set in vs2008 ATL Pin
Nathan Holt at EMOM16-Apr-08 11:41
Nathan Holt at EMOM16-Apr-08 11:41 
GeneralRe: How to use multi byte character set in vs2008 ATL Pin
dlocarnini9-Jun-08 3:57
dlocarnini9-Jun-08 3:57 
Generalconversion from char* to string Pin
gReaen9-Apr-08 3:35
gReaen9-Apr-08 3:35 
GeneralRe: conversion from char* to string Pin
Hamid_RT14-Apr-08 21:49
Hamid_RT14-Apr-08 21:49 
GeneralRe: conversion from char* to string Pin
Johann Gerell14-May-08 21:47
Johann Gerell14-May-08 21:47 
GeneralUsing WTL/ATL in a static library Pin
mateuscb3-Apr-08 3:42
mateuscb3-Apr-08 3:42 
GeneralRe: Using WTL/ATL in a static library Pin
mateuscb3-Apr-08 7:24
mateuscb3-Apr-08 7:24 
QuestionCan u hand over CStrings from MFC to a WTL DLL? [modified] Pin
DaveB229-Mar-08 1:51
DaveB229-Mar-08 1:51 
AnswerRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
Stuart Dootson29-Mar-08 16:25
professionalStuart Dootson29-Mar-08 16:25 
GeneralRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
DaveB229-Mar-08 23:41
DaveB229-Mar-08 23:41 
GeneralRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
Stuart Dootson30-Mar-08 2:25
professionalStuart Dootson30-Mar-08 2:25 
GeneralRe: Can u hand over CStrings from MFC to a WTL DLL? Pin
DaveB231-Mar-08 0:10
DaveB231-Mar-08 0:10 
QuestionATL service: Call to LoadLibrary Fails. Pin
abhijitr28-Mar-08 5:53
abhijitr28-Mar-08 5:53 
GeneralRe: ATL service: Call to LoadLibrary Fails. Pin
Stuart Dootson29-Mar-08 16:33
professionalStuart Dootson29-Mar-08 16:33 
Questionwhy WTL ListViewCtrl's LVN_GETDISPINFO notification is not getting fired? Pin
Ram-Murthi28-Mar-08 1:43
Ram-Murthi28-Mar-08 1:43 

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.