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


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

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