dcsimg
Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX

By submitting your information, you agree that devx.com may send you DevX offers via email, phone and text message, as well as email offers about other products and services that DevX believes may be of interest to you. DevX will process your information in accordance with the Quinstreet Privacy Policy.


Tip of the Day
Language: Visual Basic
Expertise: Beginner
Jun 4, 1999

WEBINAR:

On-Demand

Building the Right Environment to Support AI, Machine Learning and Deep Learning


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.

DevX Pro
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date