Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Any good tutorials on using COM from C#? [closed]

Tags:

c#

com

For one of a side-projects i need to write a C# app that required to use a third-party INPROC COM object. Unfortunately, C# is not my primary programming language, so my knowledge is a bit limited. Is it any good tutorials available on how to access COM object from C#? The usage of this third-party COM object requires me to create implementation of specified COM interface and supply that implementation into COM object in order for it to function.

like image 849
grigoryvp Avatar asked Oct 27 '09 12:10

grigoryvp


People also ask

Which website is best for learning C language?

These are the best online courses to learn C programming for beginners from Udemy, Pluralsight, Coursera, and Educative website. Hello guys, if you are interested in learning C programming in 2022 and looking for the best C Programming courses, then you have come to the right place.

Can I learn C language in 10 days?

Likewise, the educational program isn't excessively intricate or tedious to follow, as all you require is to experience a few subjects every day and you'll cover the whole schedule in basically 10 days. Along these lines, plunge into the C language world and improve your programming abilities for new job openings!


1 Answers

I have quite a large .NET <-> COM bookmark collection that I'm dumping below.

The problem is that no one tutorial/article covers all the basics and gotacha's. So you need to go through a couple of them and mix and match, depending on what you want to do.

Here's the best of what I've found so far...

General .NET COM Articles/Tutorials

  • .NET - COM Interoperability.
  • COM Interoperability in .NET Framework: Part I.
  • Understanding Classic COM Interoperability With .NET Applications.
  • Exposing .NET Components to COM.
  • Building COM Objects in C#.
  • Calling Managed .NET C# COM Objects from Unmanaged C++ Code.
  • Native & Managed Interop Made Simple.
  • Using .NET Assembly with COM Client.
  • Moserware: Using Obscure Windows COM APIs in .NET
  • COM Interoperability in .NET Part 1 Part 2 Part 3
  • COM Interop Part 1: C# Client Tutorial Part 2: C# Server Tutorial
  • Calling a COM Component From C# (Late Binding)
  • Building COM Objects in C#

MSDN on .NET & COM

  • COM Interop Tutorials (C#)
  • Exposing .NET Framework Components to COM
  • Interop Marshaling
  • Advanced COM Interoperability
  • How to: Register a Component for COM Interop

ActiveX in .NET

  • Internet Explorer ActiveX Control C# Class Library
  • Create ActiveX in .NET Step by Step.
  • Dynamically adding ActiveX controls in managed code.
  • Exposing Windows Forms Controls as ActiveX controls.
  • Importing and Extending ActiveX Controls in .NET.
  • C# Tutorials - ActiveX With C#
  • CodeGuru: Extensible OLE Property Pages in .NET
  • Writing an ActiveX Control in .NET
  • Hosting ActiveX Controls in the .NET Compact Framework 2.0
  • Hosting Windows Forms Controls in COM Control Containers - O'Reilly Media
like image 64
ParmesanCodice Avatar answered Sep 25 '22 01:09

ParmesanCodice