I got it, thanks for the clarification. But then that I prefer to build OCX files because they are more easy to instantiate from VFP. But this works fine, and the parameter statement does what I want.
>DLLs created with VB are OLE Automation DLL (not librairies).
>
>You need to declare an instance of the object in order to work with it (in VB Dim x AS New DLLName.ClassName). You can't declare it like API DLL (using the DECLARE statement in VB).
Christian Isberner
Software Consultant