Click here to Skip to main content
15,892,643 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 Title

COM+ 

8 Nov 2020 by rajesh482
I've implimented a ATL single thread apartment based project . class ATL_NO_VTABLE CMySrv : public CComObjectRootEx, public CComCoClass, public IMySrv In the method, I'm creating multiple worker...
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)[^]
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.
25 Sep 2008 by tomcat1
Call a .NET COM+ Interop component with Classic ASP.
12 Aug 2005 by hadhmy
Implementation of .NET COM+ Transactions
11 Oct 2015 by Bismark Appah
29 Oct 2012 by Virendra_ec10
Hello C++ Gurus,I created a 64-bit COM DLL by compiling a 32-bit application in visual studio 2010(Mode-Release, Platform-x64) and registered it successfully using Regsvr32.exe tool.I am trying to create the instance of the dll but, I am getting "Class Not registered " error in the below...
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...
11 Jul 2013 by Dattatraya Mengudale
Please refer..http://www.gfi.com/blog/32bit-object-64bit-environment/It will really solve your problem...
12 Jul 2013 by PrafullaVedante
If you are trying to create a COM object from a 32 bit dll/exe , then your 64 bit com object cannot be instantiated . Because Windows maintain separate entries for 32 bit and 64 bit COM objects. Hence make sure that your COM object and your container application belongs to same architecture...
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.
10 Oct 2007 by Jia.Chen
This article uses a simple example to show how to build a Firefox component intercepting/operating DOM
25 Jan 2008 by Tomer Doron
In a mixed .NET/COM COM+ based environment, one may find a need for a command line tool to deploy COM components in COM+.
8 May 2008 by Davidwu
A Cool Vista Sidebar Gadget Style CPUInfo Animate Control! (Fixed)
5 Dec 2001 by Ivo Ivanov
A reusable object-oriented framework for preserving state of stateless components.
8 Sep 2008 by Victuar
Shows how to kill unwanted windows on the user desktop on Vista, using COM+ to allow a Windows service to interact with user applications.
12 Jul 2010 by hamityildirim
Add-in - add-on programming and an example for Outlook add-in regions, views, rules, and reports.
6 Oct 2008 by Abey Thomas
This article is about the details of adding an image to a Word document programmatically.
2 Oct 2008 by Abey Thomas
This is an article about adding footnotes to a Word document (MS Office 2007) programmatically.
5 Apr 2009 by Ladislav Nevery
One very simple way to add scripting support to your app without need to install or distribute anything
26 Jul 2011 by RajaSrirangan
Hi,I have developed indesign to pdf generation using adobe indesign COM. please see below link for reference.http://www.codeproject.com/KB/COM/Adobe_s_Indesign_COM_obje.aspxI want to know is it enough standalone version of adobe indesign SDK? or do we need to purchage server edition?...
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...
17 Jun 2008 by Nelson Kosta Souto
Application configuration settings .NET & VB 6 with XML
28 Feb 2007 by Naveed Bajwa
Describes Application Integration and discusses Different Microsoft technologies Related to Application integration
19 Mar 2001 by New Riders
COM+ holds the promise of greater efficiency and more diverse capabilities for developers who are creating applications - either enterprise or commercial software - to run on a Windows 2000 system.
9 Sep 2005 by SoftWidgets
In just a few minutes, predefined templates, containing formatted sheets and charts, can be generated from any database using simple SQL statements, macros and/or custom C# or VB.NET snap-ins. Generated files can be distributed to a file server or as an email attachment. Usually, no coding is needed
21 Mar 2012 by enamur
How to create a simple BHO using C#.
16 Jul 2009 by Wisam E. Mohammed
Time to advance your symbology skills and label your map
9 Mar 2015 by umar.techBOY
An API that reads OMR sheets from camera taken/ scanner scanned images.
23 Dec 2013 by LamYongXian
This is an alternative for "C# - Optical Marks Recognition (OMR) Engine 1.0"
6 Jun 2012 by nairnishitha
Hi,I have a WPFApplication coded in c# that access a COM component. My machine(client) and the COM Server machine have Windows 7 OS. And both on same domain. I tried to create an instance of the com component with below code and it gave me no errorIPDSIntf test; string clsId =...
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
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...
21 Apr 2010 by yincekara
This article is a guide to building a .NET component, using it in a VB6 project at runtime using late binding, attaching its events and get a callback.
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...
8 Jul 2013 by Richard MacCutchan
In COM you should use QueryInterface[^] to ensure a method is available before you try to use it.
5 Nov 2015 by shankha2010
Below is the *.idl content[uuid(C3BBAEE5-DC4A-4873-963B-EFDAC87FC443)]typedef enum{eVal1 =1,eVal2 =2}EData1;[uuid(1B790A2A-9F6F-4F03-A54F-993B52D507A6)]struct STData1{ EData1 ed1; float ...
6 Nov 2015 by Richard Deeming
Have a look at Default Marshaling for Arrays[^] on MSDN - there's an example of what you're trying to do at the bottom:[Serializable][SuppressUnmanagedCodeSecurity][Guid("AA612D65-AE0E-4C51-9A35-79A76FF20747")]public struct STData2{ public long tTimeStamp; ...
29 Jul 2010 by Member 4391335
I developped OPC client in XPE, but i can not get the item value. The same project, it can run in professional XP. // Instantiate a new IKDataSink20: m_pIDataSink20 = new IKDataSink20 (); // Add ourselves to its reference...
29 Jul 2010 by Richard MacCutchan
Check the value of hr on return, that should tell you what is wrong. Unfortunately we cannot guess what it might be.
27 Jun 2012 by Pranit Kothari
Hi,I wated to create DCOM server using Visual Studio 2010. Is it possilbe? This question I am asking because when I use ATL Project in new project wizard, ServerModule class does not have methods like, Install,Init etc.. nor it is inherited from 'CComModule'. Can I achive using ATL wizard or...
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...
15 May 2008 by Surajit Paul
This is a cool chat application created in DotNet using web services having all the functionalities.
5 Jul 2015 by Member 11405963
Hi All,Now i'm investigate COM( Component Object Model) and DCOM( Distribute COM) in Visual Basic 6. But I do not know where to start ?I searched on the internet but most of the visual basic.net. So if anyone can help me directions that I should learn from and find the relevant documents...
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...
18 Sep 2015 by vagelis1
If you are using a com .dll object then you must register it in your system usingregsvr32 thenameofdll using console cmd.
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...
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...
9 May 2010 by Jonathan Davies
Ben.Regaya.Hed...
23 Nov 2012 by ZabaaZul
Hi,When i usestring computerName;string applicationName;catalog = new COMAdminCatalog();if (computerName != "."){ catalog.Connect(computerName);}catalog.StartApplication(applicationName);the com+ application is running but when I check component's status in...
31 May 2000 by Jeremiah Talkar
An introduction to the COM+ Object Pooling service
28 Jul 2005 by M_Rizwan
Monitoring COM+ running applications.
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...
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
20 Apr 2016 by OriginalGriff
A 64 bit EXE can't call 32 bit assemblies.See here: 64 bit app calling 32 bit dll?[^] for suggestions.And as far as the registry goes, access is restricted in the same way to both 64 and 32 bit assemblies - and is likely to be more strict rather than less. Unless you need to change...
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.
13 Mar 2009 by Jose Maria Estrade
ExcelCommunicator allows to pass and retrieve data to/from Excel as datasource/calculation-engine
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...
3 Dec 2016 by Richard MacCutchan
See Introduction to COM - What It Is and How to Use It.[^].
15 Aug 2015 by Richard MacCutchan
Introduction to COM - What It Is and How to Use It.[^].
15 Aug 2015 by Sergey Alexandrovich Kryukov
You cannot find such tutorial, because COM is not "Component Object Module". There is no such thing.—SA
6 Jul 2011 by Ryan Zahra
Hi All,I have created a COM+ in C#. I have managed to use this COM+ object from another C# project successfully.Now I would like to access this COM+ object from C++. Does anyone have any ideas on how I should do this? Maybe you could point me to some useful articles with...
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 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.
6 Apr 2012 by nitintfs
Dear All,I am looking for API / DLL / Component which will convert any format (doc, docx. rtf, pdf...) into HTML format. Component should support web based ASP.net (Vb.net).I am ready to pay for the component.Thanks in advance.Regards,Nitin
6 Apr 2012 by OriginalGriff
There is no one component that can convert "any format" to HTML.There are various components that can convert .DOC files, others for .XLS, others for .PDF and so on.Google is your friend here: work out what formats you want to convert, and search for them.
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,...
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...
28 Jul 2012 by pottwalblog
Convert Word-Documents to PDF-Files using Word 2007 on a Server
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
23 Aug 2014 by Subrat 4708266
Visual Studio 2010 ULTIMATE - To create both server and client.OS: VISTAModule name : ServerComponent Name: MathsI'm trying the following to use the com component.CoInitialize(NULL);IMathsPtr ptr;HRESULT hr = ptr.CreateInstance("Server.Maths"); // To create the co...
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 =...
23 Aug 2014 by Subrat 4708266
Without runing register as admin, it'll never run:(Already I have done that. I ran VS in admin mode while creating COM server. Else it'll throw error:)Can you tell e where exactly to search the string? /ROOT/CLSID???? or anything else.i already did a entire search.
12 Sep 2014 by Subrat 4708266
SOln is simple. I used COM in VC 6.0. Where progID would be created atoatically by the wizard, by saying modulename.component name. But in VS2010, it's not the case. During creation of Component, we need to manually provide the progID. This solves the problem.
7 Jul 2009 by CS Rocks
This article demonstrates how to manually create a COM DLL with VS 2005.
26 Jun 2010 by imagiro
How to create JavasSript arrays and other objects from C++ code and pass them to the script.
21 Apr 2009 by Gindi Bar Yahav
Creating mini media player using Windows Media Player COM
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...
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)...
26 Jul 2013 by Sergey Alexandrovich Kryukov
You can do what you tried to do, it works. Probably, you did not show some detail where you screw up this method of debugging.But it can be much simpler. 1) Load the solution with your assembly with Visual Studio. 2) Make your assembly project a startup project ("Set a StartUp Project" in...
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....
3 Apr 2004 by jqd2001
Improve COM+ LCE reliabilty and scalability using MSMQ.
8 Dec 2008 by Joseph Armbruster
How to embed the Google Earth scene in a C# application.
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 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); ...
27 Jun 2013 by Ron Beyer
public Initialize(){ CX_OUTPUT_CALLBACK cb = new CX_OUTPUT_CALLBACK(OutDelegateCb); AureusSDK_Wrapper_VideoCallbackFunSetup.CX_SetOuputCallBack(cb, cnt); GC.KeepAlive(cb);} public static void OutDelegateCb(IntPtr p_aureus_video_output,...
28 Jun 2013 by Jeneesh K. Velayudhan
30 Aug 2017 by simonp_ca
Use Excel worksheet's cells as pixels to render real image (for fun and experiment)
12 Feb 2008 by BharadwajSonti
A tool to read the data from an Excel sheet into a C# string array
1 Nov 2012 by Md Kamruzzaman Sarker
Bookmark extraction from PDF files and showing it in a treeview.
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
15 Jan 2016 by Vinod Kc
Hi all,I am trying to change the background color of a page in word document. But i am getting error. This is my code.Try oWord = GetObject(, "Word.Application") oDoc = oWord.ActiveDocument Dim ttl As String = oDoc.Name Label1.Text =...
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 =...
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...
23 Dec 2014 by Member 11303910
$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog;$comAdmin.InstallComponent("ApplicationName", [DLL containing components]);