Click here to Skip to main content
16,004,587 members
Articles / Programming Languages / C++

Extending CComPtr for remote activation

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
5 Aug 2024MIT4 min read 3.1K   2  
Extending CComPtr for remote activation of DCOM objects on a remote server, in a convenient matter
In this article I extend the existing CComPtr smart pointer class that is a part of the ATL framework. CComPtr is a reference counting smart pointer which has a method for conveniently creating a new instance in a 1 step process. However, it has no option for activating a COM object on a remote system. Since this is a common scenario and every implementation contains the same boilerplate code, abstracting it away is useful.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The MIT License


Written By
Software Developer
Belgium Belgium
I am a former professional software developer (now a system admin) with an interest in everything that is about making hardware work. In the course of my work, I have programmed device drivers and services on Windows and linux.

I have written firmware for embedded devices in C and assembly language, and have designed and implemented real-time applications for testing of satellite payload equipment.

Generally, finding out how to interface hardware with software is my hobby and job.

Comments and Discussions