Hi Guillaume,
The second parameter should be the name of a class and the third - the name of DLL.
Newobject("method", "myclass.vcx", "DllName.dll"),
>I compiled a DLL from VFP which opens tables to use in my other apps.
>In those apps, if I use Newobject("method","DllName.dll"), I always get an error while building saying that the DllName visual class was not found.
>But, it works fine.
>
>If I use newobject("DllName.Method") I get no build errors but it doesn't work anymore.
>Same thing when i use CreateObject.
>
>Is there anyway to avoid the build error while still using the only syntax that works?
>
>Thanks
>
>Guillaume
--sb--