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
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