.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
david stephan
Gaurav Pal
Post New Web Links

.NET Interop: Get Ready for Microsoft .NET by Using Wrappers to Interact with COM-based Applications

Posted By:      Posted Date: August 21, 2010    Points: 0   Category :ASP.Net

Very soon, the development of Microsoft .NET applications will require interaction between those apps and existing COM components on both the client and the server. The .NET Framework has made provisions for this interaction by implementing various wrappers for COM objects to allow exposure of their properties and methods to .NET components. These wrappers will make it easy to make the connection between COM and .NET. After discussing wrappers, this article discusses other ways for .NET components to take part in COM+ transactions. To top off the tutorial on the interoperation of COM and .NET, the article discusses how ActiveX containers can host .NET controls, and how .NET containers can host ActiveX controls.

David S. Platt

MSDN Magazine August 2001

View Complete Post

More Related Resource Links

Building Layered Web Applications with Microsoft ASP.NET 2.0 - Part 1

"Building Layered Web Applications" that shows you how to build N-Layer applications with Microsoft ASP.NET 2.0. These articles teach you how to design, build and use custom business objects in your web application. The target audience for this series are developers that are ready to make the switch from using SqlDataSource controls to ObjectDataSource controls with custom business objects. Experience with ASP.NET 2 and C# is necessary while some knowledge about object oriented design certainly helps. The design I am going to show you in these articles is a simplified version of a design you would use in a real world application. It doesn't feature all the necessary functionality your application needs, but instead focuses on the underlying concepts.

Parallel Debugging: Debugging Task-Based Parallel Applications in Visual Studio 2010


In Visual C++ 10 and the Microsoft .NET Framework 4, Microsoft is introducing new libraries and runtimes to significantly ease the process of expressing parallelism in your code base, together with new tool support for performance analysis and debugging of parallel applications. In this article, you will learn about debugging support in Visual Studio 2010, much of which is focused on task-based programming models.

Stephen Toub, Daniel Moth

MSDN Magazine September 2009

Inside Microsoft patterns & practices: Building WPF and Silverlight Applications with a Single Code


This article discusses the Project Linker tool and other techniques to create applications that target both WPF and Silverlight from a single code base.

Erwin van der Valk

MSDN Magazine August 2009

"Oslo" Basics: Build Metadata-Based Applications With The "Oslo" Platform


We introduce you to "Oslo" and demonstrate how MSchema and MGraph enable you to build metadata-driven apps. We'll define types and values in "M" and deploy them to the repository.

Chris Sells

MSDN Magazine February 2009

World Ready: Around the World with ASP.NET AJAX Applications


The .NET Framework has excellent internationalization support, but JavaScript does not. If you're using ASP.NET AJAX, learn what you need to do to adapt.

Guy Smith-Ferrier

MSDN Magazine January 2008

DCOM Interop: Generate Custom Managed C++ Wrappers for Easier COM Interoperation Using DCOMSuds


Now that you're writing managed code, you'll certainly want to use your existing COM components, but you can't simply call them directly. Instead, you have to wrap the COM component in a runtime-callable wrapper that acts as a proxy between the component and your managed code. While the CLR provides wrapper classes for this purpose, there will be times when you'll want custom objects to wrap your COM components. One way to get the low-level access you need to precisely control resource cleanup, pass security information, and get access to CLR features is to write your own wrapper class in managed C++. This article shows you how.

Vishwas Lele

MSDN Magazine August 2003

Editor's Note: Get Ready For Microsoft Office 2003


Over the years, we've celebrated a lot of anniversaries in this column. Who can forget our "Ten Years of ENIAC!" Editor's Note back in June 1957? Or the "How Far We've Come: Five Years of the Altair 8800" issue back in January 1980? Or even the "Macintosh Interface: 15 Years Without an Update" Editor's Note page just four years ago?.

MSDN Magazine May 2003

MSLU: Develop Unicode Applications for Windows 9x Platforms with the Microsoft Layer for Unicode


The Microsoft Layer for Unicode (MSLU) provides Unicode support on Windows platforms that don't provide their own support, including Windows 98, Windows 95, and Windows Me. With MSLU you can write Unicode applications easily for these platforms. MSLU is simple to install, small (even though it wraps more than 400 APIs), and easy on system resources. This article explains the design criteria behind MSLU and how to put the layer to work for you.

Michael Kaplan and Cathy Wissink

MSDN Magazine October 2001

WinInet: Enable HTTP Communication in Windows-Based Client Applications


The Internet provides the infrastructure for applications to communicate, and that can include non-UI communication between Win32-based applications. If you think beyond the standard browser usage of HTTP, you can use this protocol to retrieve information from Win32-based applications and save it to a Web server. After explaining how HTTP can be used in this way, this article shows how to use Microsoft SQL Server, ASP, IIS, WinInet, and Visual Basic to implement two examples. The first reports usage data-how often an application is used and by whom. The second monitors application errors and reports error details for use by helpdesk staff or engineers in the debugging process.

Todd Meister

MSDN Magazine June 2001

Creating Tracking Applications in Microsoft Office 2010 and Publishing Them to Microsoft SharePoint

Resources to help you develop manageable solutions for your organization to create, share, and collaborate on team databases; be more productive with Microsoft Access 2010 developer enhancements, and get started faster with one-click community templates.

Video: Deploying Microsoft Office 2010 Applications

Video: Deploying Microsoft Office 2010 Applications Deploying Office Add-ins and SharePoint applications is the topic of this video. It touches on the issues that can slow adoption and the characteristics needed for enabling good deployment scenarios. It also provides an overview of SharePoint Solution (WSP) file and ClickOnce deployments. (Length: 6:14)

How to use Microsoft.office interop.word in website

Hi, I have a page which creates a word doc from templet string location = Server.MapPath("~/temp/" + filename); Application app = new Application(); Document doc = app.Documents.Add(location); if(doc != null) { //Some code here } it works fine when i run from visual studio, but when i deploy it as a website in local IIS, its not working.I gave the permissions needed to access the folders in the website. What should i do to make it work. Thanks

saving docx as pdf with Microsoft.Office.Interop.Word in sharepoint

Hi!Im trying to export my docx file to PDF with Microsoft.Office.Interop.Word but im stuck. Anyone with some great ideas that could save my day.The code that im running is working fine localy but i can´t get it to work in sharepoint.The most commin exception is file not found (the same path is working fine localy)...Pls give me a hint!

Using Microsoft.Office.Interop.PowerPoint

Hi, Im writing a web application  that uses Microsoft.Office.Interop.PowerPoint. When I execute the application from VS 2008 it works fine. I have a .pptx template, I create an instance of PowerPoint, then I open the Presentation, add a Slide and finally I add an excel file as an OLE Object. The code that I'am using is something like this:Imports Microsoft.Office.Interop.PowerPoint Imports PowerPoint = Microsoft.Office.Interop.PowerPoint Dim objPowerPoint As PowerPoint.Application Dim objPresentacion As PowerPoint.Presentation Dim objDiapositiva As PowerPoint.Slide objPowerPoint = New PowerPoint.Application objPowerPoint.Visible = Microsoft.Office.Core.MsoTriState.msoCTrue objPresentacion = objPowerPoint.Presentations.Open("File.pptx") objDiapositiva = objPresentacion.Slides.Add(1, PowerPoint.PpSlideLayout.ppLayoutBlank) objDiapositiva.Shapes.AddOLEObject(10, 10, , , , "ExcelFile.xlsx") objDiapositiva = Nothing But when I want to execute the application from my localhost I get an error in the AddOLEObject method, the error is something like: HRESULT E_FAIL of a COM component call I don't know what is the problem because from VS 2008 it works fine but from localhost it does not work, all in the same computer. Can anyone help me? Thanks!    

About Microsoft.Office.Interop.Outlook ?

My Winforms application need to send email using Outlook Express, since not all client has Ms. Off. Outlook. I only can launch Outlook using System.Diagnostics.Process, which the problem is I can't write HTML message. My question is Microsoft.Office.Interop.Outlook used to handle Ms. Office Outlook only or also can be used to handle Outlook Express ? Is there any API to handle Outlook Express directly ?It's hard to be advanced programmer

About Microsoft.Office.Interop.Outlook ?

My Winforms application need to send email using Outlook Express, since not all client has Ms. Off. Outlook. I only can launch Outlook using System.Diagnostics.Process, which the problem is I can't write HTML message. My question is Microsoft.Office.Interop.Outlook used to handle Ms. Office Outlook only or also can be used to handle Outlook Express ? Is there any API to handle Outlook Express directly ?It's hard to be advanced programmer
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend