com

VMware VIX API FindItems() method never returns when querying for registered VMs

Hi, I am using VMware Workstation 6.5 on Windows Vista x64. I am trying to write some C# code that uses VMware Vix v1.6.1 COM API to get a list of registered virtual machines. The code I am using is as follows: using System; using VixCOM; namespace ConsoleApplication48 { internal class Program { private static void Main(...

Does ironpython have libraries that replace the pywin32 extensions?

I have some old python code that uses the pywin32 extensions. Starting out with .net, I would like to port it to ironpython. The old python code uses things like pythoncom.com_error, pywintypes.Time and interfaces a COM module that implements the IDispatch interface. Does the .net libraries of ironpython have all I need for communicat...

System.Runtime.InteropServices.ComTypes.IStream to System.IO.Stream

In a .NET 3.0 project, I need to make some calls via P/Invoke (specifically to the PrintTicket Provider functions like PTConvertPrintTicketToDevMode() ). The framework has a managed definition of the COM IStream interface: System.Runtime.InteropServices.ComTypes.IStream I need this as System.IO.Stream so that I can easily use .NET clas...

Receiving automatic notification from SQL Server when a table is non-empty

I would like to use an SQL Server table as an action queue. So whenever the table is non-empty, I'd like some sort of notification to my VDF application, in order to avoid constantly polling the database. VDF relies on using stdcall, the standard calling convention for the Win 32 API, or COM/ActiveX. Another solution that could work for ...

Unload COM dll from .Net program

We have a .Net application from which a C++ COM component is being instantiated. We load the COM component from a child form window. There is a common resource that is being edited by the .Net application, which inturn is being used by the COM dll to start up. When the following sequence of steps are performed: 1. Instantiate COM com...

Usage of CoTaskMemAlloc?

When is it appropriate to use CoTaskMemAlloc? Can someone give an example? ...

.NET / COM events interoperability

I have an interop assembly generated by TlbImp.exe, the generated classes are heavily evented and the performance is very important. But there's a problem, the events seem to be registered/unregistered/invoked in such a manner that even empty event handlers are counted in. Given a set of 1..N events, when you register a handler to an ev...

Using 32-bit COM object from C# or VBS on Vista 64-bit and getting error 80004005

I need some mind reading here, since I am trying to do what I do not completely understand. There is a 32-bit application (electronic trading application called CQG) which provides a COM API for external access. I have sample programs and scripts which access this API from Excel, .NET (C++, VB and C#) and shell VBScript. I have these ...

sending commands to an application from Excel? COM?

I wrote a device controller (rs232) and it is being used successfully, however users want to view data and control the device (or perhaps communicate through my program) from Excel. I dismissed DDE as an option and found that RTD (IRtdServer) is probably a good start (though no way to send data back to the "server" from the real time da...

InvalidCastException: RPC_E_CANTCALLOUT_ININPUTSYNCCALL

I'm building an application in C# that has a static class which initiate a COM class and handles some event handlers of another class that hooks keyboard. When I call a method of the COM class from a button event handler in my WPF window, the method works without any problems but when I call it in one of the event callbacks within my sta...

What is the best book to learn COM?

I 've managed to somehow avoid learning COM so far, although I 've been programming C++ under Windows for several years now. At this point there are lots of bits and pieces related to COM and how it works in a big ball of mud in my head. So I decided that it's time to bite and do some learning... which will be helped greatly by a good b...

Office XP Shared Addin VS 2008

I'm trying to create a Shared Addin using VS 2008 for Office XP (Excel to be precise). However, after creating the project in Visual studio and changing the references to Office XP (apart from Extensibility which I don't seem to be able to find a copy for office xp) and adding excel.exe to the references as well. I now don't seem to be a...

COM object to create a "Open File" dialog under Vista?

I would like to use the Windows Common Dialog "Open File", to get a file from the user under JScript. This used to be possible using "ShowOpen()" on MSCOMDLG.commondialog object but, I can't find an equivalent way to do this that works under Vista. ...

How to use Office from Visual Studio C#?

The technique for adding a reference to the COM interop of Office in Visual Studio is to go to: References Add Reference Select the COM tab Select Microsoft Office 11.0 Object Library And magically named reference appears: Microsoft.Office.Core The Project.csproj file shows the details of the reference: <COMReference Include="Mic...

.NET: If my .NET automates Office, does the customer have to have Office installed?

If i create a program, which in one small out of the way area, uses Excel automation: will the application fail when Excel is needed or will the application fail to start? Update Let me ask the same question, but in a more drawn out way: Will the application be usable by >99.9% of the users who never use the feature that require...

C# Visual Studio: How to have mulitple developers on a solution that references Office?

When i add a reference to Office COM Library, i to go: References Add Reference Select the COM tab Select Microsoft Office 12.0 Object Library And magically named reference appears: Microsoft.Office.Core The Project.csproj file shows the details of the reference: <COMReference Include="Microsoft.Office.Core"> <Guid>{2DF8D04...

ActiveX component can not create object

We changed the function name “aaa” into bbb in vbexample.dll, and registered into VB application. After registering it is getting executed in my local PC. After that when I generated a build of that VB application and tested it in another PC, it is not working. The Message I get is: "ActiveX component can not create object". ...

Python Outlook 2007 COM primer

I've been inspired by Modifying Microsoft Outlook contacts from Python -- I'm looking to try scripting some of my more annoying Outlook uses with the win32com package. I'm a Linux user trapped in a Windows users' cubicle, so I don't know much about COM. I'm looking for information on whether COM allows for reflection via win32com or whe...

Accessing COM interface from C or C++ in Windows environment

I'm relatively new to the Component Object Model specification - I have a simple question: How can I access a COM interface from a C or C++ application For instance, accessing Microsoft Excel COM interface to perform basic operations, without user intervention. Kind regards ...

Accessing an application's COM interface using C++ or C

In response to question, how can I (or find more information to) automate certain functionality without user intervention, from a C++ (or C) using: ATL Or Automation code directly in C/C++ Regards ...