Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
R calls C# (1/5)<br />
� create "Class Library" project<br />
– in project properties, category "Build" check "Register for COM<br />
interop"<br />
� create interface and class<br />
– interface needs Guid and InterfaceType attributes<br />
– class needs Guid and ComVisible attributes, must inherit from<br />
interface<br />
– ProgId is ProjectName.ClassName<br />
� prepare for callbacks to R<br />
– add a reference to RCOM 1.0 Type Library<br />
– define a public property “Connector“ of type<br />
RCOMServerLib.InternalConnector<br />
� define methods and functions<br />
� compile & deploy