Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
C/C++: Basics<br />
� C and C++ should use the custom interface<br />
– for C++ programmers like a pointer to a C++ object<br />
– for C programmers like a struct with function pointers<br />
� standard COM mechanisms<br />
– reference counting (AddRef(), Release())<br />
– multiple inheritance (QueryInterface())<br />
– object creation (CoCreateInstance())<br />
– IDispatch functions (normally not used in C++)<br />
� interface defined in IDL<br />
– StatConnectorSrv.idl<br />
– IID, CLSID and LIBID in StatConnectorSrv_i.c