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(...
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...
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...
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 ...
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...
When is it appropriate to use CoTaskMemAlloc? Can someone give an example?
...
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...
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 ...
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...
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...
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...
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...
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.
...
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...
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...
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...
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".
...
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...
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
...
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
...