26.02.2015 Views

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

C#.Net Migration - A2Z Dotnet

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

.NET Interoperability with COM<br />

• In the real world you will also need to expose your .NET<br />

components to COM clients<br />

• TLBEXP.EXE can export .NET info to COM type libraries<br />

• REGASM.EXE will add .NET information to registry and generate<br />

COM type libraries<br />

interface IPatient {}<br />

interface IBillee {}<br />

struct ORGAN {}<br />

class American:<br />

IPatient, IBillee {}<br />

TLBEXP.EXE<br />

TLBIMP.EXE<br />

interface IPatient :<br />

IDispatch {}<br />

interface IBillee :<br />

IDispatch {}<br />

struct ORGAN {}<br />

interface _American :<br />

IDispatch {}<br />

coclass American {<br />

_American,<br />

IPatient, IBillee<br />

}<br />

mycsharpcode.dll<br />

mycsharpcode.tlb<br />

87

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

Saved successfully!

Ooh no, something went wrong!