Click here to Skip to main content
15,892,537 members
Everything / COM+

COM+

COM+

Great Reads

by simonp_ca
Use Excel worksheet's cells as pixels to render real image (for fun and experiment)
by Jose Maria Estrade
ExcelCommunicator allows to pass and retrieve data to/from Excel as datasource/calculation-engine
by gmaran23
Query the properties, or download a file present on a Unix server to a Windows server via SFTP connection
by Sharjith
This article shows how to instantiate a COM object in Tcl/Tk and use its methods and properties.

Latest Articles

by Alexander Yumashev
The code compacts and repairs an MS Access database from C# code using a JRO.JetEngine COM-object. Binding occurs at runtime, no references, no interops. Pure System.Reflection.
by Pragmateek
Using an Access, MySQL, PostgreSQL or SQLite Database from VBA
by simonp_ca
Use Excel worksheet's cells as pixels to render real image (for fun and experiment)
by Md. Faroque Hossain
Sending Faxes with fax-modem and telephone line in C#

All Articles

Sort by Updated

COM+ 

19 Oct 2010 by "Fish" (David B. Trout)
Simple parsing of VS_VERSIONINFO version information strings displayed in an XP-style file-properties "Version" tab
26 Jul 2013 by 2006 Flauzer
I'm developing a C# assembly which is to be called via COM from an old vb6 (ie, "native" win32, not .net) application. I've installed VS2010 Premium in a W7 x64 and simply my goal is to use Visual Studio to debug the C# code...Other hint: the C# assembly is compiled in "x86 mode" (.NET4)...
29 Jul 2013 by 2006 Flauzer
From menu Debug->"Attach to.." option, please point the correct process ie, dllhost.exe COM Surrogate. and not win32 client....
2 Oct 2008 by Abey Thomas
This is an article about adding footnotes to a Word document (MS Office 2007) programmatically.
6 Oct 2008 by Abey Thomas
This article is about the details of adding an image to a Word document programmatically.
10 Sep 2008 by akiran
This article details how to create, install and use side-by-side native assemblies from C# and MC++.
1 Jun 2005 by Alexander Shirshov
Emulate TransactionScope functionality coming in .NET 2.0 with .NET 1.1.
20 Apr 2021 by Alexander Yumashev
The code compacts and repairs an MS Access database from C# code using a JRO.JetEngine COM-object. Binding occurs at runtime, no references, no interops. Pure System.Reflection.
28 Aug 2012 by Alexandros Pappas
This article provides a program to demonstrate how to pass WCF transactions to COM+.
21 Jun 2016 by Alexandros Pappas
Measuring COM+ performance
12 Dec 2016 by Alexandros Pappas
I do not understand, how the transaction timeout works in COM+. I have the class ClassComPlus which inherits from ServicedComponent, has transaction timeout attribute set to 1 second, and has a method SubSleep, that sleeps 3 seconds. I expect, the client which calls the method SubSleep to get an...
12 Dec 2016 by Alexandros Pappas
With the help of Microsoft, I finally understood how the COM+ transaction timeout works. The COM+ transaction timeout, is a timeout on the transaction, not on the method call. The method will execute, as long as it has to execute. The moment the first transaction is enlisted, the transaction...
25 May 2011 by amarasat
Hello everyone,I am trying to connect to a remote machine OPC server:Remote Machine:Windows Vista Business2007 copyright, Service Pack 2Client Machine:Windows XP professionalVersion 2002 Service Pack 3Error:The Stub received Bad DataFailed to get plug-in types. ...
3 Dec 2016 by Amr.Mohammad87
I read article(s) about COM, and one of those article(s) was here within CodeProject. I need to emphasize on certain points which are not mentioned in each of those article(s) even the one posted here and they causing me big confusion in understanding COM. 1- I know that an interface is...
22 Feb 2010 by Aric Wang
The article will give you an idea on how to design a source filter.The source filter creates samples and outputs it from its output pin.
6 Jun 2012 by barneyman
here's some code comments, I've referred to a LOT in recent years ;)/*If you are reading this because you're trying to get a DCOM component working, and you're trying to establish why THIS oneworks, and yours doesn't, you've come to the right place ...Fundamentally, DCOM works thru...
27 Jun 2012 by barneyman
you certainly can, as long as you're not using the Express editionAny COM object can be made DCOM'able with ATL - use APPIDs to configure thatSecurity will be your biggest problem - DCOM Security Enhancments[^]AppID Info - C# COM Interop, try to access remote server gets access...
7 May 2010 by Ben.Regaya.Hedi
Hi AllIm developping a COM Object to be used from NAVISION. I succeed to create it and call it from the code unit of Navision. but im able just to use the simple type variables like string,int bool, float...I want to know haw can I define a COM Object that return complexe data object as...
12 Feb 2008 by BharadwajSonti
A tool to read the data from an Excel sheet into a C# string array
12 Sep 2010 by billbaxter
Using the posting title "How to handle TAB" date Apr. 26, 2006, (article "Embed an HTML control in your own window using plain C") in my application's message loop, I've added this code:if (msg.message == WM_KEYDOWN && msg.wParam == VK_TAB){ // NOTE the msg gives msg.hwnd not hWeb ...
11 Oct 2015 by Bismark Appah
31 Aug 2005 by cagatay.yildir.im
Showing floating text message on the MSN Messenger as a personal message
22 Sep 2006 by Casper Leon Nielsen
We can easily start Excel and open a given workbook - however, it takes some trickery to open a text file without using the commandline.
18 Sep 2015 by chandrayog.2
Hi,I am facing a weird issue for my one of my application. I have a wcf service hosted on a server. I access this service via a windows application from my system.This service was working fine few days back but somehow returning a com component error now when ever i try to...
9 Jan 2009 by chihuase
It's easy to create a wrapper for .NET classes that you can use in VB6, but there are some difficulties with the types, specially Generic lists
7 Jul 2011 by Christian Graus
The point of COM is that you shouldn't need to do anything different, regardless of the language used. So any tuturial on using COM+ from C++ should work fine.
3 Aug 2012 by Christian Graus
Instead of trawling the web for random code, start from the top. A simple chat program, via the web, is probably going to be in a browser. Therefore, you'd write it using a back end like ASP.NET, and with lots of javascript/AJAX to handle the chatting.
31 Jan 2012 by Christine_Irene
Hi,I have a COM dll with a class in it.I have an app with a UAC level of asInvoker. This app creates a COM object as administrator.Everything works fine running as administrator, and even logged in as standard user, right->click runas administrator.However, when I log in as...
1 May 2013 by Coder Block
I spend whole night to find out single example to convert DATE datatype of c++ to string in COMM. My interface function returns following values and i want show that values in human redable format. Like,DATE JobStartTime;CurrentJob->get_StartTime(&JobStartTime);And it return valules like,...
8 Jul 2013 by Coder Block
This is may be very old problem but i really fustrating with same due to some API issues.I am using some Desktop application API who's version changes each and every month with new feature. Lets consider following scenario, A Company ABC LTD introduce one window application ABCPRO now when...
2 May 2016 by CPallini
Unless I misunderstood the documentation, you cannot do that. See Process Interoperability (Windows)[^]:On 64-bit Windows, a 64-bit process cannot load a 32-bit dynamic-link library (DLL). Additionally, a 32-bit process cannot load a 64-bit DLL.
7 Jul 2009 by CS Rocks
This article demonstrates how to manually create a COM DLL with VS 2005.
2 Jul 2008 by CurtD
Assertions are a very effective debugging tool for C/C++ code. But, a very subtle problem exists with assertions that can cause you to waste a lot of debugging time chasing the wrong problem.
11 Jul 2013 by Dattatraya Mengudale
Please refer..http://www.gfi.com/blog/32bit-object-64bit-environment/It will really solve your problem...
27 Jul 2011 by DaveAuld
Why don't you compare the two product editions on the Adobe website and see which one fits your needs;Indesign[^]Indesign Server[^]Or hop over to the Indesign SDK[^] pages for more on the API and tools.(You also asked this question at the foot of the article, which was the...
8 May 2008 by Davidwu
A Cool Vista Sidebar Gadget Style CPUInfo Animate Control! (Fixed)
28 Jan 2011 by Debojyoti Majumder
Have you updated the .idl file?If not then update it.Use the midl tool to compile your .idl file.Add the changed files (stub and client) in your project.Then use your COM object.Hope this have helped you. ;P
9 Jun 2008 by Deepak.M
This article describes on building a Database from scratch using Batch File from the existing Database
22 Apr 2012 by dieforwhat
Hi everyone,I have probelm with ole classes or I assume so.All of may applications stop working after one restart and says 'Class not registered'.I thouhgt it is about ole classes and wonder if there is centeral app to control this classes or this system that starting or switching that app may...
24 Jul 2010 by Dragonfly_Lee
Hi guys,I met an issue when I am trying to register the COM component, which is created by C#. Here is the scenario:1.Create a strong name assembly using C# with two version, such as A.dll(1.0.0.0) and (2.0.0.0)2.Since a COM client need to use these two .net assemblies, then I tried to...
2 Feb 2006 by Dustin Metzgar
Shows how to use NHibernate in a COM+ distributed transaction.
4 Apr 2006 by Dustin Metzgar
Shows how to use TIP to communicate with web services in a COM+ distributed transaction.
6 Jun 2012 by El_Codero
Hi,please have a look at my hints a few weeks ago, maybe it works for you.Retrieve Operating system details of a remote computer using IP address[^]Regards
21 Mar 2012 by enamur
How to create a simple BHO using C#.
29 Oct 2012 by enhzflep
I'm still(hopefully will remain?) pretty wet-behind-the-ears with respect to COM work. Though I do note that the behaviour you report is the same as that which I observe when starting a 32bit COM server under either windows xp or 7.That is to say CLSIDFromProgId does just that - it returns...
9 Oct 2003 by Faisal Haroon
Web-based Active Directory Login
30 Jul 2013 by Farrell187
Hi AllI received a couple of dll's from our client. These i should register as COM components and consome in my simple console test application.Now. These dll's is being used to SIGN or VERIFY a string according to whatever algorithm they use.The 1 DLL that i consume... i can...
14 Nov 2007 by Filipe Pereira
This article presents a simple calculator component example by using COM Interoperability basics.
7 Jul 2011 by fjdiewornncalwe
These tutorials may help you along the way.Interoperability Overview[^]http://blogs.msdn.com/b/jigarme/archive/2008/04/28/com-interop-sample-using-c-dll-from-c-application.aspx[^]
7 Sep 2009 by Foolomon
Describes the implementation of a key registration, installation, and validation methodology for Windows applications.
10 Sep 2009 by Foolomon
Describes the implementation of a key registration, installation, and validation methodology for Windows applications.
16 Sep 2009 by Foolomon
Describes the implementation of a key registration, installation, and validation methodology for Windows applications
21 Sep 2009 by Foolomon
Describes the implementation of a key registration, installation, and validation methodology for Windows applications
28 Apr 2011 by Fred van Lieshout
OLE container implementation for hosting a Flash Player control using C++, with support for calls and callbacks between C++ and Flash ActionScript.
27 Jan 2011 by Ganesamoorthy.S
Hi All,I have tried to use QueryInterface by using the following code segment. the com component had been created by me and which has two interfaces. But the "queryinterface" returns E_NOINTERFACE.Kindlly help me, to come out of this issue.Thanks,Ganesamoorthy HRESULT...
27 Jan 2011 by Ganesamoorthy.S
Hi,I have created a COM DLL Server Project and accessed it by creating a clinet having CoCreateInstance().Then i have modified the COM server project by adding one more interface. In order to obtain the object for the second interface, i have called the QueryInterface function....
28 Jan 2011 by Ganesamoorthy.S
I have completed this on my own.Adding interface to a COM, is as usual but if we suppose to use QUERYINTERFACE then it has to be implemented.I did it and got the expected result.
20 Apr 2016 by Gayle123
I have a query regarding communicating 64 bit exe or dll with 32 bit components.is there any way to dll or we have to write a wrapper or directly we can have acces changing the registry settings.What I have tried:communicating 64 bit exe or dll with 32 bit components
2 May 2016 by Gayle123
I Created a 64 bit exe and 32 bit com dll ... i did neccesary changes in registry as suggested by some site .. now CoCreateInstance is returning :HRESULT_FROM_WIN32(ERROR_BAD_EXE_FORMAT) : %1 is not a valid Win32 application. HRESULTCould you please let me know why the error...
2 May 2016 by George Jonsson
How did you register your COM dll?By default the 64-bit version of RegSvr32 is used and you need to use the 32-bit version.See https://support.microsoft.com/en-us/kb/249873[^]And here is some general information: Process Interoperability (Windows)[^]
21 Apr 2009 by Gindi Bar Yahav
Creating mini media player using Windows Media Player COM
18 Feb 2013 by gmaran23
Query the properties, or download a file present on a Unix server to a Windows server via SFTP connection
12 Aug 2005 by hadhmy
Implementation of .NET COM+ Transactions
12 Jul 2010 by hamityildirim
Add-in - add-on programming and an example for Outlook add-in regions, views, rules, and reports.
23 Oct 2004 by Hing
An article on how to create an ActiveX control for Excel, and the technique to create an arrow using GDI+, some secondary school mathematics here, and some technique to link cell with Excel.
13 May 2009 by HotSoftG
Automation framework application development, realize the software functions and software frame separation. Support plug-in support theme
5 Nov 2015 by HRVP
Hi Friends, I want to register com+ in component services.i followed these steps:Opened Component Services->Computer->My Computer->Com+ Application Right Click Com+ Application->New->ApplicationIn the Wizard i given next->Create an Empty Application->Enter New Application...
1 Nov 2009 by hussain.attiya
Just sharing my experience from six years ago, in 2003, when I was working as a developer.
26 Jun 2010 by imagiro
How to create JavasSript arrays and other objects from C++ code and pass them to the script.
25 Apr 2013 by In the Face of God
Unmanaged code application accessing data in a database via Web Services without a database provider.
5 Dec 2001 by Ivo Ivanov
A reusable object-oriented framework for preserving state of stateless components.
27 Jun 2013 by Jeneesh K. Velayudhan
I have one Initialize() in my class and I am calling a delegate wrapper method from this function as follows (the call back method will call around 20 times in a sec),public Initialize(){ CX_OUTPUT_CALLBACK cb = new CX_OUTPUT_CALLBACK(OutDelegateCb); ...
28 Jun 2013 by Jeneesh K. Velayudhan
31 May 2000 by Jeremiah Talkar
An introduction to the COM+ Object Pooling service
6 Feb 2013 by jesuraj.pradeep
How to define a CATID and also which header file to include in order to define a CATID?HRESULT RegisterClassReqCategory(const CLSID* rclsid, CATID rgcatid,BOOL bRegister = TRUE);I am getting the below error if I define a CATIDerror C2061: syntax error : identifier 'CATID'Kindly...
10 Oct 2007 by Jia.Chen
This article uses a simple example to show how to build a Firefox component intercepting/operating DOM
6 Feb 2013 by Jochen Arndt
Take a look on the MSDN page for the function RegisterClassReqCategory[^]. At the bottom of the page is the Requirements table which states the header files that should be included. In your case it is ComCat.h. When opening that file, you will find the definition.
1 May 2013 by Jochen Arndt
You tagged MFC. So you can use the COleDateTime class which uses DATE internally and provides the Format()[^] function to convert it to a string:COleDateTime dt(JobStartTime);CString strJobStartTime = dt.Format(_T("%d/%m/%Y %H.%M.%S"));The above formats the string like the example from...
9 May 2010 by Jonathan Davies
Ben.Regaya.Hed...
13 Mar 2009 by Jose Maria Estrade
ExcelCommunicator allows to pass and retrieve data to/from Excel as datasource/calculation-engine
8 Dec 2008 by Joseph Armbruster
How to embed the Google Earth scene in a C# application.
3 Apr 2004 by jqd2001
Improve COM+ LCE reliabilty and scalability using MSMQ.
18 Oct 2010 by Karsten
This Question handles COM-Elevation. The mechanism ist discribed in various articls. The base work ist done with the funktion CoCreateInstanceAsAdmin. A Moniker is feeded with following string Elevation:Administrator!new:"clsid" and the COM-Server is connected via CoGetObject.When my client...
23 Aug 2014 by KarstenK
The truths is: COM error are errors. (sounds nonsense but its true)If you cant find the string in the registry than it isnt registered!!! :-OFix it! => Run the register as admin and check the error code. It must be NULL.You better write: HRESULT hr =...
6 Feb 2014 by kbrj
I am working on a legacy application which was built on Classic ASP.This is a reporting application which quries the database and using COM objects it write the output to excel files by referencing Microsoft Office 2003 Web Components and Excel work book is displayed in front of the users....
29 Mar 2010 by Krasnikov, Eugene
Getting Started in Visio Add-On creation (VSL project)
5 Apr 2009 by Ladislav Nevery
One very simple way to add scripting support to your app without need to install or distribute anything
23 Dec 2013 by LamYongXian
This is an alternative for "C# - Optical Marks Recognition (OMR) Engine 1.0"
30 Aug 2007 by LeeBear
This is just a VB.NET class wrapper for the Lotus Notes interfaces.
28 Jul 2005 by M_Rizwan
Monitoring COM+ running applications.
15 Jan 2016 by Maciej Los
I have no idea about ColorTranslator.On the other side msoCTrue is not supported. Please see: MsoTriState enumeration (Microsoft.Office.Core)[^]This should works:Dim oDoc As Document = Nothing'lateroDoc = ActiveDocument With oDoc .Background.Fill.ForeColor.RGB =...
1 Aug 2011 by Mahdi Mansouri
Surpass Omron OCX OPC Component and use a user friendly .NET based class to interface Omron PLC Series
24 Jul 2011 by Mahdi Mansouri
Easily Surpass any OPC Component and use a user friendly .NET based class to interface Fatek and Facon PLC Series
6 Dec 2010 by Manfred Rudolf Bihy
Hi Kanade,will work the same for internet. Of course the host addresses will either be IPs or something like myhost.mydomain.com. If you're going to do DCOM over the internet you might be interested in this little piece...
1 Nov 2012 by Md Kamruzzaman Sarker
Bookmark extraction from PDF files and showing it in a treeview.
11 Dec 2016 by Md. Faroque Hossain
Sending Faxes with fax-modem and telephone line in C#
15 Jun 2009 by Md. Marufuzzaman
This article will demonstrate how we can integrate T-SQL with an external application.
21 Jun 2017 by Mel Padden
So the setup is as follows: 1. I have an Access VBA project which I have to maintain until we move everything over onto a new shiny platform. 2. This VBA project contains numerous reports, which use a .OCX charting component. This component was written about 15 years ago in C++. I have access...
15 Dec 2014 by Member 11303910
I am wanting to automate my server installations. Part of this includes Creating COM+ packages (which I do currently with PS). I then need to add components to these empty application packages. The DLLs have been pre-registered with RegASM. At the moment I am adding the components in...