Do you've classlib included into DLL? Did you try to reference this classlib w/o path just by name?
LPARAMETERS oContainer, cName
sClassLib = "cr_actx.vcx"
oContainer.NewObject(cName, "crControl", sClassLib)
>I'm adding a control to a container inside a DLL
>at runtime. The container is passed in, and the
>object is added to it.
>
>It was working, but I did something to mess it up.
>
>If the VCX with the object is in the same folder
>as my test, it works.
>
>When I build the DLL and run from another location,
>I get a classlib not found error.
--sb--