com

IIS7 can't find COM Object as registered Cassini can what am I missing?

I have changed my Visual Studio 2010 to use my local IIS7 instead of Cassini for my WCF service. When I test in debug mode in Cassini I have no problems instantiating Redemption.dll. When I switch Visual Studio on the project properties to use IIS7 virtual directory I start debugging and stepping through my code and finally try to inst...

Pass Array From C# COM object to JavaScript?

Similar to this http://stackoverflow.com/questions/45169/how-do-i-return-an-array-of-strings-from-an-activex-object-to-jscript but in C#. I have an COM control that passes back an array of strings to javascript. It seems like javascript cant understand what it is I am passing back and the array in javascript is always undefined. Java...

ParamArray Not Working With COM

I have a Class Library that is exposed to COM like this: <ComClass(SomeClass.ClassId, SomeClass.InterfaceId, SomeClass.EventsId)> Public Class SomeClass Public Const ClassId As String = "GUID1" Public Const InterfaceId As String = "GUID2" Public Const EventsId As String = "GUID3" Public Sub SomeMethod(ByVal ParamArray ...

Having trouble registering assembly for COM

I have created a simple class library project in visual studio 2008 that has one class as shown below. I am trying to get this class to register for COM interop so that I can use in via unmanaged scripts like vbscript or jscript. In my project build properties I have checked the box that says "Register for COM Interop". In the Assembly...

Property/Method Descriptions for COM Libraries

If you create a COMClass, I've noticed that the values in the XML Summary tag do not show in the object browser of VB6/VBA when you reference the resulting tlb file. Is there a way to have these values show up? ...

Problem with WMI ConnectServer in a SQL Server Agent job

I'm having trouble using WMI in an ActiveX script within SQL Server Agent (2005). When I run this code inside a job, it hangs at line 6 (ConnectServer). Note: I'm using a file for logging, as SQLActiveScriptHost.Print doesn't work as advertised. Set fso = CreateObject("Scripting.FileSystemObject") Set txt = fso.OpenTextFile("c:\log.tx...

Trapping COM exception in F#

I have some F# code that calls a method on a COM Automation object. Sometimes that COM object throws an exception. I tried wrapping the calls to the COM object in a try...with block: try do some COM stuff with _ -> Printf.printf "got an exn\r\n" But the exception-handling code isn't called at all, the application just d...

simple tutorial for DCOM

Hi, Can someone suggest me beginners learning resources for DCOM technology using vc++ Those with Sample codes would be very helpful. Thanks ...

How do I Create an ActiveX (COM) in C#?

Hello, I am trying to create an ActiveX controller. I using VS2010 (.Net4) I need to create a COM object (in C#) and have no Idea how to get started (what type of project to use ect.) Thanks ...

Call javascript functions in IE with Python/Com

http://win32com.goermezer.de/content/view/170/291/ Tried the above. I am able to call Javascript functions declared in the html file. However, for javascript functions in external js files included in the html, I am not able to call those functions using the above method. Any work arounds for this ? ...

How can I capture the key pressing from a external equipment ?

I have a hardware which connect with my computer via com interface, I want to implement such a feature: When the button on the hardware is clicked, My application can capture this event and then write something on my application. So How can I listen to a specific COM interface and capture the event ? How can I get what command the hardw...

Is it possible to automate a Click-to-run application?

I have a small application which automates Microsoft Word via COM/OLE Automation. Unfortunately this doesn't work with the virtualized Click-to-run editions of Word, because they don't have the required keys in the registry. (At least not where they are exptected to be) In other words: CreateObject fails because the necessary COM classe...

Python and Excel: Overwriting an existing file always prompts, despite XlSaveConflictResolution value

I'm using the Excel.Application COM object from a Python program to open a CSV file and save it as an Excel workbook. If the target file already exists, then I am prompted with this message: "A file named '...' already exists in this location. Do you want to replace it?" That message comes up despite the fact that I have set the XlSav...

Register COM reference to 64-bit Windows 7 machine.

I am writing a C# program that interface with COM object through COM interop. I have a third-party program that register itself as the COM server when I execute the Application. This works fine in 32-bit Windows Vista and I can interface with the interop just fine. (The reference show up in "COM" tab from Visual Studio when you click "A...

Debugging VB6 in VS2008 with non-VB6 objects

Hi there, I have an exe in Csharp that references a C++ dll and a VB6 dll. I can successfully step into the C++ from the Csharp in Visual Studio 2008 when I open the corresponding files. I achieved the same ability to step into the VB6 from the Csharp by generating a pdb file along with the VB6 dll. The only issue I have is that when ...

Purpose of GUIDs in COM

What is the purpose of GUIDs in COM? Is it only to avoid name conflicts? ...

Add COM 32 to VB.NET

How can I add a COM DLL to A VB.NET project? ...

Using DirectShow in Python

I'd like to call this method inside a Python script, with as few extra dependencies as possible. How can I do it? I've tried DirectPython, but it's installer installs only for 32-bit architectures, it seems. I've tried comtypes, but the installer can't find my Python installation. ...

Packaging IDispatch Invoke with Parameters in C# (with DISPPARAMS)

Hi, I'm using Invoke for late binding on a legacy COM objects that supports IDispatch. This seems necessary as .NET's Type.GetMethod Type.InvokeMember do not seem to work on these objects. The following code works fine for getting a property from an object, the caller passes in the property name as a string for getting the property va...

Issues Using Midl to create a .tlb from .idl "expecting a type specification"

Hi all, I have been having a prolonged encounter with the beast known as COM Interop... I am currently trying to generate a .tlb from a .idl file generated by the OLE/COM Object Viewer. However when trying to run Midl.exe to compile it I get an error: .\Sim.API.IDL(236) : error MIDL2025 : syntax error : expecting a type s pecificatio...