Writing an ActiveX Control in .NET
Learn to create ActiveX controls with .NET: expose interfaces, embed controls in web pages, transfer data from forms, and handle security.
Learn it from developers who built it.
Tutorials, how-tos and deep dives on AI, .NET, C#, cloud and developer tools, written by the community.
Learn to create ActiveX controls with .NET: expose interfaces, embed controls in web pages, transfer data from forms, and handle security.
In this article, we review the concepts & walk through an example that demonstrates COM interoperability in the .NET framework. Learn about the Component Object Model (COM) and the Runtime Callable Wrapper (RCW). Discover the two types of bindings - Early and Late.
The System.Runtime.InteropServices namespace defines classes where some of which define methods that enable managed code to call native code. This is accomplished via an internal call and is called the Platform Invoke service
This article shows how to show a PDF file in a Windows application with the help of the Adobe ActiveX COM.
Here, you will see the steps for using a simple C++ DLL in a C# application.
One significant task for developers (including myself) is doing some kind of automation of Microsoft Office. So, I will concentrate on the opposing side of the problem - how to use managed assembly from MS Office or VB script. In this article, I will discuss how to call managed code from unmanaged code.
Learn how to expose a .NET component to Visual Basic 6 using COM visibility, type libraries, Regasm registration, and VB6 references.
This program will create a very simple window that just says Hello but it does using just the Windows GUI API in C#.
In this article , I will expose another way to generate a COM component and I will give also a trick of how to consume this generated COM from within VC++ 6.0 application.
In this article, we will see how to create a simple COM application in Visual Studio 2008 and how to consume it from a VB6 client application.
This is a brief introduction to the COM component object model.
Learn how to expose an ATL COM component through an ASP.NET web service and call it from a VB6 client using SOAP and a generated interop assembly.
Learn how to use the COM+ Shared Property Manager from .NET to share transient state between serviced components in the same process.
This article and attached source code shows you how to create MMC Snapin using C#.
In the current Internet scenario, various classic applications run on multiple networks. These applications could have been written using different languages like Visual Basic, Visual C++. For example, a retail organization would have different systems, such as an inventory management system, a bill of material systems, and a general ledger system, all implemented using various technologies available for application development. These systems need to be integrated to form a higher-level enterprise information system for an organization.
In this article, we will see what interoperability is all about, comparison between Java and .NET interoperability, the benefits of and challenges faced in interoperability and the role of WS-I in this overall scenario.
The important goals of .NET during its development was to promote interoperability with existing technologies.
This article gives you a solution for generating a client side validation script in a component model that you can reuse in an ASP.NET project.
Using this program you can map Excel columns programmatically and generate an XML file containing the cell values that you had in your Excel document. After generating the XML file we can read it into a dataset.
During last year I wrote an article about DTS and how to use it in C#. In that article I stated that I didn’t manage to solve the problem related to CustomTask. Today I finally forced myself to tackle that problem again and here is the result. Writing simple CustomTask in C# is the easiest part.
This article will cover the details of Platform Invocation Services provided in .Net Framework. Platform Invoke Services acts as a bridge between the managed and unmanaged code. This service enables managed code to call unmanaged functions which are being exposed by any dynamic link libraries (DLL’s) such as Win32 API’s or any custom DLLs.
Here is some code to help you to deploy a COM component from C#. I needed to programmatically deploy a project that would be registered as COM object (not COM+) and be installed into GAC. The following two classes will help in this objective.
When a COM client calls a DotNet object, the DotNet framework will create a COM callable wrapper (CCW). COM clients use the CCW as a proxy for the managed object.
Learn how to use a COM component from a .NET client, generate an interop assembly with TlbImp.exe, and handle COM events through a runtime callable wrapper.
The Interoperability services make it very easy to work with COM Capable Applications such as Word and Excel. This article reveals using Excel from a managed application. Excel is the spreadsheet component of Microsoft Office 2000.
As you know with Visual Basic 6.0, it is possible develop a COM server and implement them in a Visual Basic client program. But this is being done by using Visual Basic. You may wonder about the idea of calling this DLL in a C# Application. Well, C# language provides us a way to call this COM server in a program. When we compile a C# program an Intermediate Language is generated and it is called as Managed Code.
First of all, COM+ does revolutionize COM; it is not only a superior new version of the COM programming model it is also a new platform to design and develop components. In addition, COM+ Services in XP does have some differences from Windows 2000; also XP and COM+ 1.5 offer a richer set of services than was available in COM+ 1.0. This article will describe the basic component services on the XP.
Explores the evolution of COM from DLLs, OLE, and ActiveX controls, its approach to functionality reuse, and key limitations of COM and COM+.
This article covers the subject regarding Language Independence. This term Language Independent means one can create an application using various languages. This Language independent starts from past COM (OLE & ActiveX) to present .Net.Let us see in detail.
Component is nothing but the reusable piece of software in binary form that can be plugged into other components from other vendors.
Everything on COM Interop, not only its articles: the COM Interop page →
Write an article and earn +1,000 SHARP when it is approved.
Write an article