>>>Hi,
>>>I used the following code with VFP6 SP3 on W95/W98.
>>>I changed my OS for Windows 2000 and the CREATEOBJECT does not work.
>>> PUBLIC oInterConnect
>>> oInterConnect = GETOBJECT(, 'VisualFoxpro.Application')
>>> IF ISNULL(oInterConnect)
>>> oInterConnect = CREATEOBJECT('VisualFoxpro.Application')
>>> ENDIF
>>>
>>
>>What does it do?
>
>I'm sorry, after the CREATEOBJECT() oInterConnect is allways .NULL.
Sounds like a setup problem. Use the registry editor and try to locate the following key:
HKEY_CLASSES_ROOT\VisualFoxPro.Appplication.6\Shell
Beneath it, there should be information regarding the location of VFP. If it isn't there, you might have to re-install.
George
Ubi caritas et amor, deus ibi est