In the KBArticle say you can't use AddObject. Use NewObject instead.
"Add the control you want to use into a class that is saved in a Visual Class library or into a class created with the DEFINE CLASS command. Next, add an instance of the class at run-time instead of adding the control. Please see the MORE INFORMATION section for details."
HTH.
>Thank you for your reply
>that did not do the trick. i just test it by creating a class of winsock, then instantiating the class with ThisForm.AddObject().
>i still get the same error.
>BUG: License Error with ActiveX Control Added at Run-Time
>
>http://support.microsoft.com/?scid=192693
>
>
>Hope this helps
>
>>hello everybody
>
>>i know i have seen this beeing discussed here at Universal Thread before - just can't remember where it was.
>
>>when trying to send e-mail via winsock i get the following error:
>
>>OLE error code 0x80040112: Class is not licensed for use.
>
>>it works fine on my developer machine but on another winXP it does not. if i remember correctly it was an install problem, right?
>
>>i have my own homemade install routine which registers/proccesses ocx/dlls. i gues it does not do it correctly. what should i be looking for, and what 'testing' routine could i include in my install to ensure correct installment?
>
>thanks for all your help as always!