>Thanks Larry for the info. So VFP only does late binding. I also have a copy of VFP 7 and tried using createobjectex and got the same error message. I guess that means it won't work.
>
>From: Ed Johnson
The 3rd parameter of CreateObjectEx gives you the ability to specify an interface. If you don't specify anything, IDispatch is used.
What is the COM object you are working with? If you have the OLE Viewer that comes with Visual Studio 6 or the Object Browser in VFP 7, you can open the type library and see what interfaces the object supports.
Larry Miller
MCSD
LWMiller3@verizon.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao