Search code examples
c++commidlvisual-c++-2008-express

How do I write a COM dll?


To better myself I am attempting to make my dll's COM compliant, I thought I'd just need to extend/implement a few interfaces and job done but now I am at a cross roads,

1) Should I learn MIDL?

2) Should I install the ATL (I am running VC++Express)?

3) Carry on reading the C++ tutorials (http://progtutorials.tripod.com/COM.htm) and hope my Express edition is too limited?


Solution

  • I was interested in transferring native C++ to Android and Java and read that the libraries would need to expose either static 'C' style functions or implement COM.

    Android is Linux based operating system... It does not support DLLs and COM.

    So no you can't go via COM. You need to learn how to use JNI.