com

Event on Item Marked as Read in Outlook - Delphi COM Add-in

I have a Delphi COM Add-in for Outlook (2000-2007) and am trying to find a way to register an event when an MailItem in Outlook is marked as read. I want to add an additional property to the item as/just after it is marked as read. Does anyone have any idea how to do this using the Outlook Object Model? I am also using Add-In-Express ...

What tools are available for creating in process COM servers in Java?

What tools are available for creating in process COM servers in Java? ...

COM from x86 assembly?

Is it possible to call into COM objects via x86 assembly language? If so, how? Why would I want to do this? Let's say I've got two programs that I don't have source for - all I've got are the binaries. One of them implements a COM interface, the other doesn't. I want to inject code into the first program to call into the second using th...

Which is "better": COM DLL or Standard DLL with a Typelib?

I put "better" in quotes because it's a qualitative question. I've been writing COM DLLs for a couple of years now and have only recently come upon, and successfully used, the standard DLL with Typelib concept. Are there any compelling reasons to use COM DLLs instead of DLL+Typelib? Granted, you can't do DCOM with a DLL+Typelib, but is...

How do I access IMetaDataEmit and other MetaData COM interfaces from C# or F#?

I am writing a compiler in F# and I want to be able to access the unmanaged metadata COM interfaces in the .net runtime. Before anybody mentions it, Reflection.Emit is not suitable for my purposes, nor do I want to use any other method than the metadata COM interfaces. I've imported mscoree.tlb but it doesn't seem to include the interfa...

How to obtain a list of available COM interfaces in Windows

Is there any way of obtaining a list of registered COM interfaces on a windows machine, with GUIDs? Before anybody thinks this isn't related to programming, I need this data in order to reference a COM interface in F# (or C#) for interfaces that tlbimp isn't exposing. ...

Deriving COM interfaces in .NET

This is complicated, at least for me, so please bare with me. I'll also preface with I've spent a day searching, to no avail. Due to company constraints out of my control, I have the following scenario: A COM library that defines the following interface (no CoClass, just the interface): [ object, uuid(xxxxxxxx-xxxx-xxxx-xxxx-...

Is there a tool which lists exported methods from a DLL?

As the question states - is there a good tool out there which lists methods an unmanaged DLL exports? I would like it to list COM methods and interfaces too. ...

How do read/interact with an old ActiveX SSUltraGrid using UIAutomation

I am investigating automated testing of an old Win32 application that used ActiveX controls. I am spiking use White (from Thougthworks) that uses Microsoft UIAutomation. I can find the AutomationElement related to the control, but how do I interact with it? Spy++ sees the grid control as a single window, so I can't talk to rows, column...

Can I create a single VB6 OCX with multiple controls?

Hi, I have inherited a load of VB6 code which has tons of individual OCX files, each of which contain a single control. I have two questions: Firstly, Is it possible to refactor them so that I can have a single OCX file with all the OCX's in it? Secondly, if it is possible, how do I do this? TIA ...

IDL declaration (in C++) for a function that will take a C-style array from C#

I am working with an existing code base made up of some COM interfaces written in C++ with a C# front end. There is some new functionality that needs to be added, so I'm having to modify the COM portions. In one particular case, I need to pass an array (allocated from C#) to the component to be filled. What I would like to do is to be ...

What is the equivalent of Thread.SetApartmentState in C++?

In C# there is a method SetApartmentState in the class Thread. How do I do the same thing in C++? ...

COM: calling from other thread causes crashes, how to make it run on the same thread?

I am doing a BHO (extension for IE) that receives events on other thread. When I access the DOM from that other thread, IE crashes. Is it possible to make the DOM accessed from the same thread as the main BHO thread so that it does not crash? It seems like a general COM multithreading problem, which I don't understand much. ...

Tools for documenting a COM API written in C++

We are in the process of documenting a newly minted API for our applications. The API has been written in C++ as a set of COM objects. We would like a tool that generates CHM documentation based on the comments attributed to each COM object method. I know of doxygen but don't really feel like the output is all that professional lookin...

"Object variable or With block variable not set" when attempting to create COM object

I have a VB6 dll that is trying to create a COM object using the following line of code: Set CreateObj = CreateObject("OPSValuer.OPSValue") However this fails with the error "Object variable or With block variable not set". I can see OPSValuer.OPSValue in dcomcnfg and it appears to be registered fine. Does anyone have any ideas about...

InstallShield: Darwin descriptors

My InstallShield installer doesn't appear to register several of its COM DLLs correctly, even though I have refreshed the COM information for them in the installer. If I manually run regsvr32 after installation, everything is fine. I notice that after installation, I have InprocServer32 values in the registry for my components containi...

How does COM registration work in Windows

I'm an application packager trying to make sense of how the COM registry keys (SelfReg) interrelate to the given .dll in Windows. ProgID's, AppID's, TypeLibs, Extensions & Verbs are all tied around the CLSID right? Do CLSID's always use Prog/App IDs or could you just have a file extension class? Which bits are optional? Some of it see...

Behaviour of exceptions within delegates in C# 2 hosted by MS Excel and COM

Morning all, Bit of a language theory question here... I've found some references online suggesting that exception handling and delegates in C# have some different behaviour in some cases but I cannot find any concrete documentation on the matter. We recently had some big problems with exceptions inside delegates for a Microsoft Excel ...

How to Create an Outlook Plugin using Delphi?

Hi, I'm working on a database project and I need to create Outlook 2007 plugin that saves the current previewed message into my database. Can someone give me a step-by-step guide on how to create an Outlook plugin in Delphi, and how to deploy it? Thanks ...

What's the difference in these ways of creating the static instance for a singleton?

I have had a bug recently that only manifested itself when the library was built as a release build rather than a debug build. The library is a .NET dll with a COM wrapper and I am using CoCreateInstance to create a class from the dll in an unmanaged c++ app. When I finally tracked the bug down it was caused by accessing a singleton ob...