If you have VFP classlib called MyDll, is loaded into the memory at the time of CREATEOBJECT, VFP will try to create MyClass from the classlib and not from the DLL. See if that is the case...I can't think of any other reason of this error.....
>DLL's that I have created in VFP7/8 work fine with other applications (as they were origionally intended), but when I try to instantiate them in VFP with "ox = CreateObject("MyDll.MyClass") I get a "ClassFactory cannot supply the requested class" error. I have confirmed the "MyDll.MyClass" is the ProgID for this DLL in the system registry. I haven't been able to locate any helpful info concerning this error.
>
>Thanks,
>Joe
- Jayesh