ActiveX EXE vs. DLL

Question:
I have an ActiveX dll into which I can pass an existing ImageList containing a set of images. This works fine and means that I only have to maintain the code / images in one place.However, I have now written an ActiveX exe into which I also wish to pass the ImageList, but this doesn’t work. I get a ‘Type Mismatch’ error.

A similar problem occurs when I try to pass a public class from the dll through to the exe, but this manifests itself with an ‘Automation error (-2147023174)’.

This works fine when the public class is passed through to a dll.

Why does it work with dll’s but not ActiveX exe’s?

Answer:
It would seem to me the reason is that a dll runs in the same process of the client app while an exe runs in a different process space.

Share the Post:
Share on facebook
Share on twitter
Share on linkedin

Overview

The Latest

microsoft careers

Top Careers at Microsoft

Microsoft has gained its position as one of the top companies in the world, and Microsoft careers are flourishing. This multinational company is efficiently developing popular software and computers with other consumer electronics. It is a dream come true for so many people to acquire a high paid, high-prestige job

your company's audio

4 Areas of Your Company Where Your Audio Really Matters

Your company probably relies on audio more than you realize. Whether you’re creating a spoken text message to a colleague or giving a speech, you want your audio to shine. Otherwise, you could cause avoidable friction points and potentially hurt your brand reputation. For example, let’s say you create a

chrome os developer mode

How to Turn on Chrome OS Developer Mode

Google’s Chrome OS is a popular operating system that is widely used on Chromebooks and other devices. While it is designed to be simple and user-friendly, there are times when users may want to access additional features and functionality. One way to do this is by turning on Chrome OS