AllExperts > Experts 
Search      

Active X Programming

Volunteer
Answers to thousands of questions
 Home · More Questions · Answer Library  · Encyclopedia ·
More Active X Programming Answers
Question Library

Ask a question about Active X Programming
Volunteer
Experts of the Month
Expert Login

Awards

About Us
Tell friends
Link to Us
Disclaimer

 
 
 
 
About Ravinder Singh
Expertise
All Answer Relating To Create Active-X controls/Dll using Registering and the related.I can also answer relating to Other visual basic topics like database handling,Registry functions etc

Experience

Past/Present clients
e-earn-learn.com
onetwokafour.com
skynetmart.com
intekindia.com

 
   

You are here:  Experts > Computing/Technology > Basic > Active X Programming > Can you use an ActiveX Component in an ActiveX DLL

Topic: Active X Programming



Expert: Ravinder Singh
Date: 11/27/2001
Subject: Can you use an ActiveX Component in an ActiveX DLL

Question
1) Using WindowsNT/VB6
2) Trying to create an ActiveX DLL that utilizes the Microsoft Internet Transfer Control. In the DLL's Initialize Event I'm trying to create an instance of the Inet Control:
Dim objNew as (Object/InetCtlsObjects.Inet (tried both))
Set objNew = CreateObject("InetCtlsObjects.Inet")
3) When it gets to the Set line, I get Run-time error '429' - ActiveX component can't create object.

My question is, can you dynamically create ActiveX components in a DLL Class or do they need a container (i.e. Form, ActiveX Control)? I've checked MSDN, etc. but couldn't find a definitive answer.  

Answer
Hi there,as you know the purpose of the DLL, they are exactly like header file in C or C++.But they run in the background and gets called as their requirements comes.
They does not get attached into exe file so you cannot use active-x Control in DLL.
But you may use Active-x Exe instead

Thanks for asking question

Add to this Answer    Ask a Question



  Rate this Answer
   Was this answer helpful?
Not at allDefinitely              
   12345  

     
About Us | Advertise on This Site | User Agreement | Privacy Policy | Help
Copyright  © 2008 About, Inc. About and About.com are registered trademarks of About, Inc. The About logo is a trademark of About, Inc. All rights reserved.