OWLNext    7.0
Borland's Object Windows Library for the modern age
Loading...
Searching...
No Matches
ocf::TAutoProxy Class Reference

client C access proxy, base class More...

#include <ocf/autodefs.h>

Public Member Functions

 ~TAutoProxy ()
 
void Bind (IUnknown *obj)
 
void Bind (IUnknown &obj)
 
void Bind (const GUID &guid)
 
void Bind (LPCTSTR progid)
 
void Bind (TAutoVal &val)
 
void Bind (IDispatch *obj)
 
void Bind (IDispatch &obj)
 
void Unbind (bool release=true)
 
void MustBeBound ()
 
bool IsBound ()
 
void SetLang (owl::TLangId lang)
 
 operator IDispatch * ()
 
 operator IDispatch & ()
 
long Lookup (const long id)
 
long Lookup (LPCTSTR name)
 
void Lookup (LPCTSTR names, long *ids, unsigned count)
 

Static Public Member Functions

static IDispatchGetObject (LPCTSTR progid)
 

Protected Member Functions

 TAutoProxy (owl::TLangId lang)
 
TAutoValInvoke (owl::uint16 attr, TAutoProxyArgs &args, long *ids, unsigned named=0)
 

Protected Attributes

IDispatchThat
 
owl::TLangId Lang
 

Detailed Description

client C access proxy, base class

Definition at line 1280 of file autodefs.h.

Constructor & Destructor Documentation

◆ ~TAutoProxy()

ocf::TAutoProxy::~TAutoProxy ( )
inline

Definition at line 1424 of file autodefs.h.

References Unbind().

◆ TAutoProxy()

ocf::TAutoProxy::TAutoProxy ( owl::TLangId lang)
inlineprotected

Definition at line 1320 of file autodefs.h.

Member Function Documentation

◆ Bind() [1/7]

void ocf::TAutoProxy::Bind ( const GUID & guid)

Definition at line 31 of file autocli.cpp.

References _tcscpy, Bind(), ocf::TXOle::Check(), and HR_NOERROR.

◆ Bind() [2/7]

void ocf::TAutoProxy::Bind ( IDispatch & obj)

Definition at line 76 of file autocli.cpp.

References That, and Unbind().

◆ Bind() [3/7]

void ocf::TAutoProxy::Bind ( IDispatch * obj)

Definition at line 59 of file autocli.cpp.

References That, and Unbind().

◆ Bind() [4/7]

void ocf::TAutoProxy::Bind ( IUnknown & obj)

Definition at line 67 of file autocli.cpp.

References _T, Bind(), and ocf::TXOle::Check().

◆ Bind() [5/7]

void ocf::TAutoProxy::Bind ( IUnknown * obj)

Definition at line 46 of file autocli.cpp.

References _T, Bind(), and ocf::TXOle::Check().

◆ Bind() [6/7]

void ocf::TAutoProxy::Bind ( LPCTSTR progid)

Definition at line 20 of file autocli.cpp.

References Bind(), ocf::TXOle::Check(), OleStr, and PRECONDITION.

◆ Bind() [7/7]

void ocf::TAutoProxy::Bind ( TAutoVal & val)

Definition at line 85 of file autocli.cpp.

References ocf::atVoid, Bind(), and That.

◆ GetObject()

IDispatch * ocf::TAutoProxy::GetObject ( LPCTSTR progid)
static

Definition at line 105 of file autocli.cpp.

References ocf::TXOle::Check(), and OleStr.

◆ Invoke()

TAutoVal & ocf::TAutoProxy::Invoke ( owl::uint16 attr,
TAutoProxyArgs & args,
long * ids,
unsigned named = 0 )
protected

◆ IsBound()

bool ocf::TAutoProxy::IsBound ( )
inline

Definition at line 1298 of file autodefs.h.

References owl::ToBool().

◆ Lookup() [1/3]

long ocf::TAutoProxy::Lookup ( const long id)
inline

Definition at line 1315 of file autodefs.h.

◆ Lookup() [2/3]

long ocf::TAutoProxy::Lookup ( LPCTSTR name)

Definition at line 123 of file autocli.cpp.

References _T, ocf::TXOle::Check(), Lang, MustBeBound(), and That.

◆ Lookup() [3/3]

void ocf::TAutoProxy::Lookup ( LPCTSTR names,
long * ids,
unsigned count )

◆ MustBeBound()

void ocf::TAutoProxy::MustBeBound ( )

Definition at line 97 of file autocli.cpp.

References ocf::TXAuto::Raise(), That, and ocf::TXAuto::xNotIDispatch.

◆ operator IDispatch &()

ocf::TAutoProxy::operator IDispatch & ( )
inline

Definition at line 1394 of file autodefs.h.

◆ operator IDispatch *()

ocf::TAutoProxy::operator IDispatch * ( )
inline

Definition at line 1406 of file autodefs.h.

◆ SetLang()

void ocf::TAutoProxy::SetLang ( owl::TLangId lang)
inline

Definition at line 1306 of file autodefs.h.

◆ Unbind()

void ocf::TAutoProxy::Unbind ( bool release = true)
inline

Definition at line 1415 of file autodefs.h.

References That.

Member Data Documentation

◆ Lang

owl::TLangId ocf::TAutoProxy::Lang
protected

Definition at line 1327 of file autodefs.h.

◆ That

IDispatch* ocf::TAutoProxy::That
protected

Definition at line 1326 of file autodefs.h.


The documentation for this class was generated from the following files: