VFP only supports late binding (CREATEOBJECT()) while VB supports early binding (New) or which can be a lot faster.
+++ Rick ---
>I have a COM object that have a method
>
>next( [in, out] long* val, [in,out] BSTR* str )
>next do this
> *val++
> and assign some value to str.
>
>This object is implemented in a ATL DLL
>
>
>i executed this code in vfp
>
>obj = createobject("sample.sample.1")
>val = 0
>str = ""
>ahora = datetime()
>do while (val < 1000000)
> obj.next(@val,@str)
>enddo
>messagebox(ahora - datetime())
>
>The message is 79, the equivalent code in VB say 5.
>
>are there some problem in COM comunication with VFP ?