You forgot to mention that the class must be marked as OLEPUBLIC under Class/Class Info menu or programmatically.
>1.- Create your new proyect.
>2.- Add your class
>3.- Compile, select DLL
>4.- At you program or via Command Window :
>
> myObjeto = CREATEOBJECT("MiDll.MyClass")
>
>
>That's it.
>>How can i build a dll in VFP8.0 ?
>>and how can i call it later ?
Nick Neklioudov
Universal Thread Consultant
3 times Microsoft MVP - Visual FoxPro
"I have not failed. I've just found 10,000 ways that don't work." - Thomas Edison