1 <!DOCTYPE HTML PUBLIC 
"-//W3C//DTD HTML 4.0 Transitional//EN"> 
   2 <html><head><meta http-equiv=
"Content-Type" content=
"text/html;charset=iso-8859-1"> 
   3 <title> TemplatewxAutoOleInterface
< I 
> class Reference
</title> 
   4 <link href=
"doxygen.css" rel=
"stylesheet" type=
"text/css"> 
   6 <!-- Generated by Doxygen 1.3-rc3 --> 
   8 <a class=
"qindex" href=
"index.html">Main Page
</a>   <a class=
"qindex" href=
"namespaces.html">Namespace List
</a>   <a class=
"qindex" href=
"hierarchy.html">Class Hierarchy
</a>   <a class=
"qindex" href=
"classes.html">Alphabetical List
</a>   <a class=
"qindex" href=
"annotated.html">Data Structures
</a>   <a class=
"qindex" href=
"files.html">File List
</a>   <a class=
"qindex" href=
"functions.html">Data Fields
</a>   <a class=
"qindex" href=
"globals.html">Globals
</a>   </center> 
   9 <hr><h1>wxAutoOleInterface
< I 
> Class Template Reference
</h1><code>#include 
<<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>></code> 
  11 <hr><a name=
"_details"></a><h2>Detailed Description
</h2> 
  12 <h3>template
<class I
><br> 
  13  class wxAutoOleInterface
< I 
></h3> 
  15 Template class for smart interface handling.
 
  18 <li>Automatically dereferences ole interfaces
</li><li>Smart Copy Semantics
</li><li>Can Create Interfaces
</li><li>Can query for other interfaces 
</li></ul> 
  23 Definition at line 
<a class=
"el" href=
"wxactivex_8h-source.html#l00045">45</a> of file 
<a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a>.
<table border=
0 cellpadding=
0 cellspacing=
0> 
  25 <tr><td colspan=
2><br><h2>Public Member Functions
</h2></td></tr> 
  26 <tr><td nowrap align=right valign=top
><a name=
"a0" doxytag=
"wxAutoOleInterface::wxAutoOleInterface"></a> 
  27  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a0">wxAutoOleInterface
</a> (I *pInterface=NULL)
</td></tr> 
  28 <tr><td> </td><td><font size=-
1><em>takes ownership of an existing interface Assumed to already have a AddRef() applied
</em></font><br><br></td></tr> 
  29 <tr><td nowrap align=right valign=top
><a name=
"a1" doxytag=
"wxAutoOleInterface::wxAutoOleInterface"></a> 
  30  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a1">wxAutoOleInterface
</a> (REFIID riid, IUnknown *pUnk)
</td></tr> 
  31 <tr><td> </td><td><font size=-
1><em>queries for an interface
</em></font><br><br></td></tr> 
  32 <tr><td nowrap align=right valign=top
><a name=
"a2" doxytag=
"wxAutoOleInterface::wxAutoOleInterface"></a> 
  33  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a2">wxAutoOleInterface
</a> (REFIID riid, IDispatch *pDispatch)
</td></tr> 
  34 <tr><td> </td><td><font size=-
1><em>queries for an interface
</em></font><br><br></td></tr> 
  35 <tr><td nowrap align=right valign=top
><a name=
"a3" doxytag=
"wxAutoOleInterface::wxAutoOleInterface"></a> 
  36  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a3">wxAutoOleInterface
</a> (REFCLSID clsid, REFIID riid)
</td></tr> 
  37 <tr><td> </td><td><font size=-
1><em>Creates an Interface.
</em></font><br><br></td></tr> 
  38 <tr><td nowrap align=right valign=top
><a name=
"a4" doxytag=
"wxAutoOleInterface::wxAutoOleInterface"></a> 
  39  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a4">wxAutoOleInterface
</a> (const wxAutoOleInterface
< I 
> &ti)
</td></tr> 
  40 <tr><td> </td><td><font size=-
1><em>copy constructor
</em></font><br><br></td></tr> 
  41 <tr><td nowrap align=right valign=top
><a name=
"a5" doxytag=
"wxAutoOleInterface::operator="></a> 
  42 wxAutoOleInterface
< I 
> & </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a5">operator=
</a> (const wxAutoOleInterface
< I 
> &ti)
</td></tr> 
  43 <tr><td> </td><td><font size=-
1><em>assignment operator
</em></font><br><br></td></tr> 
  44 <tr><td nowrap align=right valign=top
><a name=
"a6" doxytag=
"wxAutoOleInterface::operator="></a> 
  45 wxAutoOleInterface
< I 
> & </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a6">operator=
</a> (I *
&ti)
</td></tr> 
  46 <tr><td> </td><td><font size=-
1><em>takes ownership of an existing interface Assumed to already have a AddRef() applied
</em></font><br><br></td></tr> 
  47 <tr><td nowrap align=right valign=top
><a name=
"a7" doxytag=
"wxAutoOleInterface::~wxAutoOleInterface"></a> 
  48  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a7">~wxAutoOleInterface
</a> ()
</td></tr> 
  49 <tr><td> </td><td><font size=-
1><em>invokes 
<a class=
"el" href=
"classwxAutoOleInterface.html#a8">Free()
</a></em></font><br><br></td></tr> 
  50 <tr><td nowrap align=right valign=top
><a name=
"a8" doxytag=
"wxAutoOleInterface::Free"></a> 
  51 void
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a8">Free
</a> ()
</td></tr> 
  52 <tr><td> </td><td><font size=-
1><em>Releases interface (i.e decrements refCount).
</em></font><br><br></td></tr> 
  53 <tr><td nowrap align=right valign=top
><a name=
"a9" doxytag=
"wxAutoOleInterface::QueryInterface"></a> 
  54 HRESULT
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a9">QueryInterface
</a> (REFIID riid, IUnknown *pUnk)
</td></tr> 
  55 <tr><td> </td><td><font size=-
1><em>queries for an interface
</em></font><br><br></td></tr> 
  56 <tr><td nowrap align=right valign=top
><a name=
"a10" doxytag=
"wxAutoOleInterface::CreateInstance"></a> 
  57 HRESULT
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a10">CreateInstance
</a> (REFCLSID clsid, REFIID riid)
</td></tr> 
  58 <tr><td> </td><td><font size=-
1><em>Create a Interface instance.
</em></font><br><br></td></tr> 
  59 <tr><td nowrap align=right valign=top
><a name=
"a11" doxytag=
"wxAutoOleInterface::operator I *"></a> 
  60  </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a11">operator I *
</a> () const
</td></tr> 
  61 <tr><td> </td><td><font size=-
1><em>returns the interface pointer
</em></font><br><br></td></tr> 
  62 <tr><td nowrap align=right valign=top
><a name=
"a12" doxytag=
"wxAutoOleInterface::operator->"></a> 
  63 I *
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a12">operator-
></a> ()
</td></tr> 
  64 <tr><td> </td><td><font size=-
1><em>returns the dereferenced interface pointer
</em></font><br><br></td></tr> 
  65 <tr><td nowrap align=right valign=top
><a name=
"a13" doxytag=
"wxAutoOleInterface::GetRef"></a> 
  66 I **
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a13">GetRef
</a> ()
</td></tr> 
  67 <tr><td> </td><td><font size=-
1><em>returns a pointer to the interface pointer
</em></font><br><br></td></tr> 
  68 <tr><td nowrap align=right valign=top
><a name=
"a14" doxytag=
"wxAutoOleInterface::Ok"></a> 
  69 bool
 </td><td valign=bottom
><a class=
"el" href=
"classwxAutoOleInterface.html#a14">Ok
</a> () const
</td></tr> 
  70 <tr><td> </td><td><font size=-
1><em>returns true if we have a valid interface pointer
</em></font><br><br></td></tr> 
  72 <hr>The documentation for this class was generated from the following file:
<ul> 
  73 <li><a class=
"el" href=
"wxactivex_8h-source.html">wxactivex.h
</a></ul> 
  74 <hr><address style=
"align: right;"><small>Generated on Tue Apr 
1 14:
51:
12 2003 for wxActiveX by
 
  75 <a href=
"http://www.doxygen.org/index.html"> 
  76 <img src=
"doxygen.png" alt=
"doxygen" align=
"middle" border=
0  
  77 width=
110 height=
53></a>1.3-rc3 
</small></address>