Click here to Skip to main content
15,891,951 members
Everything / COM

COM

COM

Great Reads

by Maxim Kartavenkov
Article describes how to make H.264 Video Encoder DirectShow Filter using NVIDIA encoder API in C#
by Michael Dunn
A tutorial on using owner-drawn menus in a context menu shell extensions, and on making a context menu extension that responds to a right-click in a directory background.
by Arik Poznanski
Complete Library for using the Windows 7 Ribbon from C#, including 18 samples and 21 blog posts documenting the Ribbon features
by CMalcheski
How to Create a Complete DirectX Game in Assembly Language

Latest Articles

by Michael Chourdakis
DirectX hardware screen capture and encoding with audio mixing capabilities. H264/H265/VP80/VP90/FLAC/MP3. HDR supported.
by flyhigh
By implementing a UI library and exporting its necessary components to lua script, we can create a beautiful UI and implement relevant logic in Lua script completely.
by Andrea Simonassi
The first and simplest of the multiplication algorithms, fast enough to multiply not too large numbers
by Excel-lent
This article shows how to compile and execute OpenCL code from VBA.

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
7 Nov 2010 by #andy
Sample code to get you started
3 Oct 2010 by #realJSOP
You're better off using google. It's free
29 Nov 2010 by #realJSOP
You have to install (and/or register) the COM component on that computer.
29 Nov 2010 by #realJSOP
Maybe something else is wrong...
17 Feb 2011 by #realJSOP
It's called a tooltip, and its presence for a given language is based more on your chosen framework that the chosen language. Implementation is language specific. I suggest you google "java create tooltips" or "C++ create tooltips", and see what's returned.
6 Apr 2011 by #realJSOP
CString str = "The string";_bstr_t bstrTest( str );//or_bstr_t bstrTest = _bstr_t( str );
27 May 2011 by #realJSOP
I found this on the first page of over 2.1 million results with a google search for "asp.net class not registered":http://forums.asp.net/p/1046003/1467497.aspx[^]
29 Nov 2011 by #realJSOP
I think I remember hearing something about having to install versions of .Net in the proper order. Maybe the new server was installed from a newer disc, and had .Net 3.5 on it, and .Net 20 was installed as an afterthought? You might want tto try uninstalling both versions, and then reinstalling...
24 Dec 2020 by #realJSOP
The most correct answer is, don't use activex... It's a known security risk and is to be avoided at all costs. EDIT 2020.12.24 ======================= I can tell by the number of reputation points I lost (2) as a result of the recent down-vote,...
24 May 2006 by --==## Andy74 ##==--
How to detect network connections using the SENS Network Events component.
3 Aug 2000 by .Shoaib
A step by step guide to write a COM server using C++ without MFC or ATL.
18 Dec 2005 by .Suchit
COM/OLE based technology for Process Control - An Overview.
20 Oct 2011 by 01.mandar
i have 2 Bluetooth1. PC dongle and 2. Mobile Bluetooth Device of same make in normal installation we goto Control Panel and do add device ,this device directly gets added in the system and pair with each other without using any key.i want to automate this by getting event from the OS...
3 Apr 2012 by 01.mandar
i want to create an application(UI) like Windows Media Center (one with good glossy feel). In same MDI application i want to embed some .exe(opengl demo) to browse in and play selected in full screenmy question is, is it possible to build such thing? if yes, how it could be built in...
28 May 2012 by 01.mandar
i want to integrate an iframe in win32 application(plain c++) which will display an simple web page located on local drivecurrently i am using this methodHow to Integrate C# Window in C++ Project[^]i want to know if is there any component i can use more efficiently with vc++
9 Aug 2022 by 0x01AA
If you register your 'COM Visible .NET Assembly' with regasm.exe you can place it (and it's dependencies) wherever you want. At least this works for me until today. "C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\RegAsm.exe"...
16 Apr 2015 by 1Future
Hi All,I am having a weird error in my project which i have been trying to solve for weeks now and i wonder if you guys can help out.In my project I am references COM class (Dymo label library ) that prints labels from a label printer. Now .. Everything works well on my dev machine BUT...
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....
4 Jul 2008 by 2b|!2b==?
A command-line program that backs up folders and files specified in a text file to CD-W
15 Oct 2010 by 401unauthorized
Allows working with most .NET classes in any COM-aware programming or scripting language
24 Sep 2012 by 77Jeff
How can I use Excel COM C# to copy non contiguous ranges and paste those ranges to another WorkBook? The Sheets cannot have other cells outside of the defined ranges affected. Some of my Destination Ranges will be different than the Source Ranges. Here is some of my code. It gives compiler...
11 Oct 2011 by @BangIndia
i am using msdev editor for my c++ programing..i have one vb script.. But i want to do same operation using my c++ program..if any one explain me how..Set objFSO = CreateObject("Scripting.FileSystemObject")objFSO.DeleteFile("c:\dmmm\df\*")how to write the same coding in c++
5 Dec 2013 by @BangIndia
I have create the wmi provider .Its working fine. i have two classes in that name as cObject1, cObject2.This is entry of my dll, if i create the object for cObject1 then cObject1 funcaiton are callingThat time i need to query the cObject1 object alone.if want to call both...
9 Dec 2013 by @BangIndia
I have created the wmi provider in c++.its working poperly in windows xp.when i was using in window server 2008 its not calling DllGetClassObject method itself. I have refered this link . almost same code ..http://msdn.microsoft.com/en-us/library/cc512238%28v=vs.85%29.aspx[^]Can...
9 Dec 2013 by @BangIndia
This issue due the the dll dependices..
9 Dec 2013 by @BangIndia
I have tried to register in dll windows 7.it througing followin error.The module "c:\windows\system32\**.dll" failed to load.make sure the binary is stored at the specified path or debug it to check the problems with th binary or depenedt .dll files.but its working properly...
31 Jul 2001 by @deel@bbas
A simple COM server that is based on multiple inheritance
7 Nov 2012 by __John_
Sounds like you are not closing the COM port, before trying to open it again.
28 Jun 2014 by _Sahar
I am using the Microsoft Ax Framer Control to view the word document in the Visual C# Form.After Hosting(Open) the Word Document in the Ax Framer Control.While Right Click on the Word Document, Ms word Context Menu is Appearing.I Want to Hide this Pop up Menu.Can any One Help me...
17 Jun 2004 by Aamir Butt
An article on how to put and get information to an OLE Structured Document.
13 Jan 2004 by Abbas_Riazi
Employing COM features of MATLAB to host an ActiveX control.
27 Feb 2004 by Abbas_Riazi
Building COM components that can be called from any IDEs that support COM with MATLAB COMBuilder toolbox
2 Mar 2004 by Abbas_Riazi
Building COM components that can be called from any IDE that supports COM with MATLAB COMBuilder toolbox.
5 Jul 2004 by Abdul Hye
An understanding of ActiveX controls.
8 Sep 2015 by abdulwahid
My problem and the solutionI have a 32 bit third party dll which i have installed in 2008 R2 machine which is 64 bit.I have a wcf service created in .net 4.5 framework which calls the 32 bit third party dll for process. Now i have build property set to target 'any' cpu and deployed it to...
20 Jul 2010 by Abhijit Jana
A Solution Navigator features in VS 2010 Productivity Power Tools
1 Mar 2016 by abhilashmfc
Hi,Is there any way a Method inside my COM server can call method inside MFC Client ?Please suggest...Thanks,AbhiWhat I have tried:Tried with Connection points,, Is there any other way ?
20 Jun 2011 by Abhinav S
COM Interface Basics[^] could help.
22 Jun 2011 by Abhinav S
Nope there is not. There is no way to pass this through any "legal" code.
28 Jun 2014 by Abhinav S
This might help - http://social.msdn.microsoft.com/Forums/en-US/ee4d70a9-827e-4c53-b788-e7128009442d/vb-2005-office-framer-control-dsoframer-how-do-i-disable-the-rightclick-menus-or-replace-with?forum=vblanguage[^].
27 Sep 2011 by abhinav_soni
The ATL COM DLL that captures requests from individual Webbrowser Control
24 May 2007 by Abhishek Joshi
When we use COM components in our application sometimes an error occurs stating that the API failed, which is from the COM component. This article will help solve this problem.
3 Apr 2009 by abhishek pareek2009
This article contains a DLL with sample code which is used as a reference in a C# Windows application to import FOB to Navision.
14 Dec 2010 by abhishek pareek2009
This article will demonstrate that after sending the data from Axapta to Temperature conversion application, how we can post back the converted temperature to Axapta.
13 May 2010 by achal3754
Hi, I am trying to execute the saveAll command from C++ code using DTE object. I have written a sample C++ (Win32 Console application). HRESULT hret=CoInitialize(NULL); CLSID clsid; hret = CLSIDFromProgID(L"VisualStudio.DTE.8.0",&clsid); ...
29 Sep 2011 by adagio62
I am debugging connectivity with a legacy vb6 activex dcom application using windows 7 pro 32 bit as the client.The client has been running under 2000 and xp with no issues for years, and am now attempting to use windows 7 pro before replacing our remaining xp pro machines. Client and server...
13 Jun 2013 by Adam Tibi
Exposing .NET functions to be consumed as Excel functions, otherwise known in Excel as "User Defined Functions" . Those .NET exposed functions can be easily used from Excel's cells. This article presents two ways to achieve this and the pros and cons of each.
6 Dec 2013 by Adam Zgagacz
Do not use Excel to do any significant work in it. InterOp is slow. There is no way around it.As suggested by Sergey in the comment bring data to your app, do whatever math is needed and then save it back in Excel format.If you are using new excel spreadsheet saved in xlsx/xlsm data...
18 Dec 2011 by Addy Tas
Hi, I keep running into a nasty compiler error telling me that I am doing something seriously wrong.The error I get is: error MIDL2025 : syntax error : expecting a type specification near "tagDevice". The following struct is defined in the IDL which definitely has something to do with it as...
11 Feb 2010 by Adeel Mirza
So what would you suggest, I have resolved the ambuguity errors by making slight modification. For examplePreviously it was.. CEdit m_ctlUsedDuration;I changed it to WTL::CEdit m_ctlUsedDuration;Now the compiler is able to recognize that these classes belong to ATL not...
16 Feb 2010 by Adeel Mirza
Hi Allen,I am using an existing MS Office Addin developed in ATL COM.I want to provide this kind of print and print preview functionality to it. Now MFC Extension DLL can't be used in an ATL COM Application, so is it possible to create an MFC Regular DLL and then call it from my ATL COM...
18 Feb 2010 by Adeel Mirza
This project already has 100s of files, resources. Creating a new ATL Project and adding all these files is not gonna be fun. These erroes comes if my active build is Debug mode, In Release mode I just receive 2 errors1>uafxcw.lib(dllmodul.obj) : error LNK2005: _DllMain@12 already defined...
5 Sep 2011 by AditSheth
Hi,Try with this http://community.spiceworks.com/education/projects/Setting_The_Default_DCOM_Properties_And_Security
3 Apr 2012 by adityarao31
I have a makefile secondsps.mk, How to make proxy stub dll from it.I used nmake.exe from run menu,from command prompt,but it does nothing.I tried VC++ wizard utility to create dll,but it seems it can only create exeswhen I typed output file as dll,it gives error.Can any one tell me...
5 Aug 2014 by Adnan Shaheen
I want to make a context menu item entry on disk management console in mmc.How to do it? Does any one have some sample that'd be great.
5 Jan 2011 by adocas
It's possible that the problem comes because you may send data in byte arrays instead of char.Anyway, this can help you: CLICKOr this: CLICK
19 May 2002 by Adrian Bacaianu
This module is designed to solve the old problem of directory replication.
28 Jun 2002 by Adrian Bacaianu
This article will demonstrate how to build and use a COM Add-In using Visual Basic. An useful sample is also provided.
18 Feb 2009 by Adrian Dorache
Component used to convert a numeric value into English/Romanian words in Excel
26 Feb 2009 by Adrian Dorache
Scripting the clipboard content in Windows Script Host.
2 Jun 2009 by Adrian Dorache
Let's see a short example using COM objects exposed by Internet Explorer. The code below changes the color of every link in an HTML document.
26 Jul 2010 by Aescleal
INetCfgCompone...
21 Oct 2010 by Aescleal
As well as some of the other responses I'd be tempted to clear the interface pointer before feeding it into CoCreateInstance. Most implementations of class factories check to see what's pointed to is non-null and fail if they find a valid (or non-zero at least) pointer.Probably not the cause...
6 Jun 2012 by Aescleal
You need something to catch errors transparently and do some recovery action, it sounds like a job for a proxy object.Bascially your current interface doesn't quite cut it as far as transparency of recovery goes. The idea here is that you implement you interface again in a containing (proxy)...
10 Feb 2016 by Aescleal
Your exported function doesn't look like a COM object to me. I'm not a great expert on C# but if all you've got is a C function can't you just call it directly after importing it:class urgle{ [DllImport("test.dll")] public static extern UINT Find();};is the sort of thing you need.
9 Jun 2010 by ah123ah
I am running the following code for deadlock detection but always I find the error inforing that RunTime and shim failed to start. Why is this issue occurring to me and how to solve this problem? I will be glad if someone could help me in this regard.int _tmain(int argc, _TCHAR*...
22 Jun 2011 by aidin Tajadod
Hi guys,I want to decompress zip files with shell32.dll ( I am trying not to use third party components).Every thing is working fine. But I could not find a way to decompress password protected zip files!! Shell32.ShellClass sc = new Shell32.ShellClass(); ...
13 May 2012 by ajaypanchwagh2
how to update status messages on IE using MFC and Com?
1 Aug 2018 by Ajcek84
Client-side music notation rendering in Blazor
29 Oct 2010 by AJThomas12
A project of mine requires that I call a dll using php via a COM object call:$obj = new COM("SimplAt1Com.SimpleObj") or die ( "Unable to instantiate the COM!");This call seems to work ok but the moment I try to call a function from the object using:$result = $obj->put_Name("A")...
29 Oct 2010 by AJThomas12
E,Thanks for the post.I tried what you suggested...I get the error:Fatal error: Call to undefined method com::put_Name()Do I have to 'define' method's?If so, is it done in the dll code or in my php script??hmmmmmmm....I think I may have just answered my own...
4 Dec 2009 by Akhil ....The Best
Com is used for Desktop Applications(not distributed).Dcom is used for distributed environment.Dcom includes following-> 1.Remoting 2.Web Service 3.Wcf ;)
3 Apr 2019 by Akhil Mittal
How to create Azure functions in Visual Studio 2017
10 Sep 2008 by akiran
This article details how to create, install and use side-by-side native assemblies from C# and MC++.
17 Apr 2011 by Akos Szabo
Hi,I have an issue. I have to detect a slow TTL sign and measure the time between to signs. I do not want to build a circuit for this. My idea would be to connect the source of the sign to a COM port (USB/RS232). Change on any of the control line (DTR, RTS) causes an interrupt. Hooking the...
17 Jun 2011 by Albert Holguin
There are a number of ways to share information between applications.One common implementation is a server-client based model (at the heart of the web service schema as well). In a server-client model, an interface is defined between the two applications (transport method, messages, data...
19 Dec 2011 by Albert Holguin
It's generally a good idea not to have a constructor on a structure anyway and treat it like plain old data. I do believe COM expects C-style structs which do not support constructors, so that may explain the error you're seeing.
27 Nov 2012 by Albert Holguin
As already suggested, the biggest issues are usually dealing with the new UAC. I wouldn't suggest turning them off at all, just try to install and deal with the issues as they come along. Remember to follow the guidelines set by MS as to where you can read/write to/from, a lot of us where used...
29 Jun 2010 by aleksey_m_t
MSVS Add-in for Doxygen documentation system
16 Dec 2017 by aleksey_m_t
MSVS2015 chart view trace extension
28 Aug 2009 by Alex Blekhman
A simple Calendar utility that demonstrates basic Shell extensibility techniques: desk band, tray notification icon, locales.
14 Oct 2009 by Alex Blekhman
Example of handling real-life challenges when hosting WebBrowser control: separate creation of hosting window and the control, keyboard shortcuts, control's dimensions, etc.
21 Jan 2003 by Alex C. Punnen
This article is intended to explain the concept behind connection points with a clear practical example, which will demonstrate an in-process COM server and an MFC client that uses the server.
12 Aug 2012 by Alex Fotios
How to enumerate and mute all audio capture endpoints using Core Audio API
12 Aug 2012 by Alex Fotios
How to enumerate and mute all microphone components under all mixer devices using the Audio Mixer API
15 Jul 2003 by Alex Hazanov
A library that allows you to embed scripting functionality to your C++ MFC application.
23 Sep 2003 by Alex Hazanov
How to propogate non COM properties to COM client through custom interface
19 Jan 2010 by alex turner
VBScript may be old and ugly, but there are some quick and dirty tricks for which it is still really handy.
9 Feb 2011 by alex_zero
A solution that can extract various file contents using an IFilter implementation. Special thanks to Eyal Post and his article 'Using IFilter in C# '.
7 Nov 2013 by Alexander Chernosvitov
ActiveX component for 3D visualization, embedded in different client applications.
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.
9 Sep 2008 by Alexandr Golovanov
The article describes the work principles and ways of use of IEToolbarEngine. This is a toolbar for Internet Explorer, which has a reusable architecture.
13 Apr 2008 by Alexandre GRANVAUD
Automate your data classes initialization from an XML file.
25 Jan 2011 by Alexey Merson
This article demonstrates how to get the Excel Range object from the Clipboard using the CF_LINKSOURCE Clipboard format.
6 Oct 2010 by alexvw
Hi there,I have written a COM-Exposed dll using Framwork 2.0 which implements MS Excel. The dll saves the provided data (usually a datasource that populates a grid) splinted in as many xls files as needed with x rows per sheet and y sheets per file (both user-provided params) using a given...
16 Sep 2012 by Ali_100
what is location of COM file in project, i am using classic asp, and the system creating the object ,but i could n;t able to trace the file.itis writter like.I want to find the location,where is the file?set LSDU =server.creatobject("LSDU.DUfile.1")
19 Jun 2013 by AlphaDeltaTheta
CreateFile to COM port, sometimes requires admin access (not always).SerialPort is the preferred way since it allows you to cotrol various other niche options too, that isn't easily available in CreateFileSee MSDN[^] for details.
14 Jul 2011 by alttaf
I am using c# with wpf to create a class library, I am exporting this as COM interface. I am trying to call this com object from plain C. I have managed to get it working in C++ but am struggling to get it working in plain C. so I am using the follwing code in c# to create the com...