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

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.
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...
12 Aug 2019 by Member 14556881
Hey All, Im trying to remove a com+ Application via powershell using the following: $comCatalog = New-Object -ComObject COMAdmin.COMAdminCatalog $appColl = $comCatalog.GetCollection("Applications") $appColl.Populate() $app = $appColl | where {$_.Name -eq "ApplicationName"} $compColl =...
16 Jan 2018 by Pragmateek
Using an Access, MySQL, PostgreSQL or SQLite Database from VBA
30 Aug 2017 by simonp_ca
Use Excel worksheet's cells as pixels to render real image (for fun and experiment)
21 Jun 2017 by RickZeeland
The /I switch does not seem to be needed according to: [how-to-register-an-activex-control] If the .OCX file is not located in your windows/system32/ folder you must add the file path before the filename.ocx Oh, and don't forget to run with administrator rights ! You can also try: cd...
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...
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...
11 Dec 2016 by Md. Faroque Hossain
Sending Faxes with fax-modem and telephone line in C#
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.[^].
21 Jun 2016 by Alexandros Pappas
Measuring COM+ performance
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 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.
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)[^]
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...
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 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 =...
7 Jan 2016 by Vinod Kc
Hi all,I would like to make a script for displaying the size of a folder in windows explorer. I am using AutoIt for this. So i need to find some information about "shell.application" object. I searched in MSDN but didn't found what i need. I need to know how to get the currently selected...
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; ...
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 ...
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...
11 Oct 2015 by Bismark Appah
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 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...
5 Sep 2015 by Pragmateek
Introduction If you've already developed COM APIs with .Net, typically in C# with VBA as the consuming language, you've probably leveraged two powerful features: by-reference parameter passing that allows the API to change the input object itself, not only its ... Continue reading ...
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
15 Aug 2015 by Richard MacCutchan
Introduction to COM - What It Is and How to Use It.[^].
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...
4 Jun 2015 by Nagaprasad75
Am new to .Net technology and am facing an issue during migration of COM objects.We have recently migrated the COM objects from one server to another.My server details as follows : Server:windows 2003IIS : IIS 6.0After the migration,when we tried to open the application...
9 Mar 2015 by umar.techBOY
An API that reads OMR sheets from camera taken/ scanner scanned images.
6 Mar 2015 by Member 11504517
I had a vb6 dll installed in com+ applications in Windows 2003 server. This vb6 dll was called in asp application for a business logic. There was a change in the logic, so I had to create a new version of vb6 dll (the new version is to include a additional parameter to one of the methods in the...
23 Dec 2014 by Member 11303910
$comAdmin = New-Object -comobject COMAdmin.COMAdminCatalog;$comAdmin.InstallComponent("ApplicationName", [DLL containing components]);
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...
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.
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.
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
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...
1 Jun 2014 by thavaselvan
Hi,I'm developing COM component with many classes.whether i need to enable COM code for every class or single class is enough.Eg.Class Base{..........}[ComImport, Guid("E436EBB3-524F-11CE-9F53-0020AF0BA770")] Class Base2{Base obj = new Base();..........}
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....
23 Dec 2013 by LamYongXian
This is an alternative for "C# - Optical Marks Recognition (OMR) Engine 1.0"
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...
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....
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...
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)...
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...
11 Jul 2013 by Dattatraya Mengudale
Please refer..http://www.gfi.com/blog/32bit-object-64bit-environment/It will really solve your problem...
8 Jul 2013 by Richard MacCutchan
In COM you should use QueryInterface[^] to ensure a method is available before you try to use it.
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...
28 Jun 2013 by Jeneesh K. Velayudhan
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,...
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); ...
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...
25 Apr 2013 by In the Face of God
Unmanaged code application accessing data in a database via Web Services without a database provider.
18 Feb 2013 by gmaran23
Query the properties, or download a file present on a Unix server to a Windows server via SFTP connection
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...
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.
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...
1 Nov 2012 by Md Kamruzzaman Sarker
Bookmark extraction from PDF files and showing it in a treeview.
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...
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...
28 Aug 2012 by Alexandros Pappas
This article provides a program to demonstrate how to pass WCF transactions to COM+.
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.
3 Aug 2012 by skonliner
Hi,My question is simple, it just to make a simple chat program, via web instead of using server/clients. However, it could be using the following URL: http://www.sbox.ws/sbox_ws.php?name=Name&website=&shoutid=1b867wq7jorwwf4u0qwkI mean by this above, this site has button, named...
28 Jul 2012 by pottwalblog
Convert Word-Documents to PDF-Files using Word 2007 on a Server
7 Jul 2012 by String Sharp
Hi I am migrating my application from windows xp sp3 to windows 7 sp1 .after installation my program on 7 it works as well, but some time i get follow error , Usually after several other errors giving an error is found.However, until the program is not closed. After running this...
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...
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...
13 Jun 2012 by ♥…ЯҠ…♥
To test the scenarioI created a sample dll in Visual Basic 6.0 and register the same dll using regsvr command.Once registered i created an object in ASP classic page and i called the application. The application runs smoothly and returns the expected output.Then i created a sample...
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...
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
16 May 2012 by ♥…ЯҠ…♥
I have a DLL developed using VC++ ,it belongs to Project A which is in Asp classic language consider. My question is1) Can i use the same DLL for project B ? 2) If i want to migrate the front end of Project A from Asp classic project to Asp.net can i use the same DLL?will it be...
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...
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.
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
21 Mar 2012 by enamur
How to create a simple BHO using C#.
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 Aug 2011 by Mahdi Mansouri
Surpass Omron OCX OPC Component and use a user friendly .NET based class to interface Omron PLC Series
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...
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?...
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
14 Jul 2011 by Philippe Mori
See http://stackoverflow.com/questions/2152449/32-bit-activex-control-in-a-64-bit-net-app[^]Or also http://support.microsoft.com/kb/896457[^]The easy answer is that you cannot do that. A 64 application can only host 64 bit control. A 32 bit application can only host 32 bit...
14 Jul 2011 by Raptor81
I have an ActiveX dll which is 32bit. I have a C# user control project which wraps the ActiveX dll for use in a WPF application. Now the problem is we want to change the application to 64bit. We created a 64bit building target, but we were unable to use the ActiveX dll because it is 32bit. I am...
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.
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[^]
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...
22 Jun 2011 by ugavnholt
How to invoke foreign remoting interfaces in remote hosts.
12 Jun 2011 by Wanderley Caloni
Exception based error check that automates the FAILED() comparison.
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. ...
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.
9 Feb 2011 by Subhakshay
Hi, I have a COM+ package which is on the server. I have used the following code in one of the components of the package to get the server culture namestring serverCultureName = System.Threading.Thread.CurrentThread.CurrentCulture.Name;If the COM+ application is running under System...
8 Feb 2011 by steveb
Interface-based programming, Runtime class discovery, Dynamic class loading from DLL
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
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.
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....
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...