18.12.2012 Views

Embedding R Tutorial

Embedding R Tutorial

Embedding R Tutorial

SHOW MORE
SHOW LESS

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

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!