com >> ActiveX control registration

by Mark F. » Sun, 23 Oct 2005 07:43:35 GMT

Hello All,

I would like to learn how to create self-registering activex controls.
Can I convert existing controls I created into self-registering type?

Thanks.
Mark


com >> ActiveX control registration

by Ken Halter » Sun, 23 Oct 2005 16:14:56 GMT






All VB ActiveX controls/dlls are support Self Registration. That may not
mean what you think it does. All it means is that the dll/ocx exposes
DllRegisterServer and DllUnregisterServer methods and the contents of those
methods setup/remove information from the registry.

Self Registration for Controls
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/com/html/0fff07e5-10bb-4052-8eb1-021efcb66d6c.asp

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
DLL Hell problems? Try ComGuard - http://www.vbsight.com/ComGuard.htm
Please keep all discussions in the groups..





Similar Threads

1. ActiveX control registration issue

Hi,

I have a rather anoying problem with a ActiveX control. At times, which
seems to be at random, the control will not be created. Trying to load my
form the following message appear: "The Control ScanControl1 ... could not
be created".

I have searched the web for solutions. One solution indicated that the
control is not correctly registered on the device. So now I run a
registration rutine (DllRegisterServer) of that module every time the
program starts. However, the issue is not solved. I work with the device for
some time and the error message suddenly reappear.

Also, I have tried to make the registration through the eVB environment, but
with no better result than the reappearance of the dialog after X uses of
the control.

Any one have a clue of how to resolve this?

-- 
Frederik Jensen, Judex


2. Registration-Free ActiveX VB6 Control activation using manifest fi