All-In-One COM Code Samples - Microsoft All-In-One Code Framework - Site Home - MSDN Blogs
Microsoft All-In-One Code Framework - Developers' Pain Killer

All-In-One COM Code Samples

Rate This
  • Comments 2

All-In-One COM Code Samples

 

Introduction: What is COM?

Microsoft COM (Component Object Model) technology in the Microsoft Windows-family of Operating Systems enables software components to communicate. COM is used by developers to create re-usable software components, link components together to build applications, and take advantage of Windows services. COM objects can be created with a variety of programming languages. Object-oriented languages, such as C++, provide programming mechanisms that simplify the implementation of COM objects. The family of COM technologies includes COM+, Distributed COM (DCOM) and ActiveX® Controls.

Code Sample Graph

 

Visual Studio 2008 Code Samples

Sample Description Download ReadMe
ATLActiveX The sample demonstrates an ActiveX control written in Active Template Library (ATL) Download ReadMe.txt
ATLCOMClient The sample demonstrates invoking COM objects in an application that enables ATL Download ReadMe.txt
ATLCOMService The sample demonstrates how to use Acitve Template Library (ATL) wizards in Visual Studio 2008 to create an out-of-process COM service. Download ReadMe.txt
ATLDllCOMServer The code sample demonstrates how to use Acitve Template Library (ATL) wizards in Visual Studio 2008 to create an in-process COM server. Download ReadMe.txt
ATLExeCOMServer The code sample demonstrates how to use Acitve Template Library (ATL) wizards in Visual Studio 2008 to create an out-of-process COM server. Download ReadMe.txt
CppCOMClient The code sample demonstrates the different ways to invoke COM objects from native VC++ Download ReadMe.txt
CppDllCOMServer This sample demonstrates how to create an in-process COM component by the raw interfaces from Win32 DLL project Download ReadMe.txt
CppRegFreeCOMClient This sample demonstrates how to create a registration-free COM from the native VC++ based client, so that the client can consume existing COM server as if the COM server is Registration-free Download ReadMe.txt
CppRegisterTypeLib This sample shows how to register Type Libraries Download ReadMe.txt
CSActiveX The code sample demonstrates creating an ActiveX control in VC# Download ReadMe.txt
CSCOMClient The sample demonstrates the different ways to invoke COM objects from VC# Download ReadMe.txt
CSCOMService The sample demonstrates an out-of-process COM/DCOM service in the form of Windows Service (EXE), which is implemented entirely in Visual C#. Download ReadMe.txt
CSDllCOMServer This VC# code sample focuses on exposing .NET Framework components to COM, which allows us to write a .NET type and consuming that type from unmanaged code with distinct activities for COM developers Download ReadMe.txt
CSExeCOMServer The sample demonstrates an out-of-process COM server in the form of local server (EXE), which is implemented entirely in Visual C#. Download ReadMe.txt
CSRegFreeCOMClient This sample demonstrates how to create a registration-free COM from the aspect of .NET Framework based client, so that the client can consume existing COM server as if the COM server is Registration-free Download ReadMe.txt
CSRegFreeCOMServer The sample demonstrates a .NET Framework-based component which is ready for registration-free activation. Download ReadMe.txt
CSServicedComponent The sample demonstrates a serviced component written in Visua C#. Download ReadMe.txt
HTMLEmbedActiveX The code sample demonstrates embedding ActiveX controls in HTML pages Download ReadMe.txt
MFCActiveX The code sample demonstrates creating an ActiveX control in MFC Download ReadMe.txt
MFCCOMClient The code sample demonstrates invoking COM objects and hosting ActiveX controls in an MFC application Download ReadMe.txt
MFCSafeActiveX The code sample demonstrates creating an ActiveX control that is safe for scripting and initialization in MFC Download ReadMe.txt
VBActiveX The code sample demonstrates creating an ActiveX control in VB Download ReadMe.txt
VBCOMClient The sample demonstrates the different ways to invoke COM objects from VB Download ReadMe.txt
VBDllCOMServer This Visual Basic sample focuses on exposing .NET Framework components to COM, which allows us to write a .NET type and consuming that type from unmanaged code with distinct activities for COM developers Download ReadMe.txt
VBExeCOMServer The sample demonstrates an out-of-process COM server in the form of local server (EXE), which is implemented entirely in Visual Basic. Download ReadMe.txt
VBRegFreeCOMServer The sample demonstrates a .NET Framework-based component which is ready for registration-free activation. Download ReadMe.txt
VBServicedComponent The sample demonstrates a serviced component written in Visua Basic. Download ReadMe.txt

Visual Studio 2010 Code Samples

Sample Description Download ReadMe
CSSL4COMInterop This project demonstrates how to inter-operate with COM components in Silverlight 4. Download ReadMe.txt
VBSL4COMInterop This project demonstrates how to inter-operate with COM components in Silverlight 4. Download ReadMe.txt

Download all code samples: http://1code.codeplex.com/releases

 

Request more COM code samples from Microsoft All-In-One Code Framework (Guidance)

Leave a Comment
  • Please add 4 and 8 and type the answer here:
  • Post
  • I need some more indepth com code in DCOM, Connection Point. Can you please send me some......... Thanks

  • I have created a ATLCOMService using Visual Studio 2012 and a Console client to use it. But I was not able to create a new object. Can you please help me to do that?

Page 1 of 1 (2 items)