>>Hi, I am trying to find out it a DLL exists on another machine but when
>>build this code into an vfp EXE and try to run it on a machine that does not
>>have VFP installed I get this message "Can not load 32 bit c:\page0\vfpOpubTest.dll"
>>Is there a way around this?
>>Thanks
>>
>>IF FILE("VfpOpubTest.DLL")
>> TRY
>> oData = Createobject("VfpOpubTest.TestClass")
>> CATCH TO oErr
>> IF oErr.Errorno = 1733
>> DECLARE INTEGER DllRegisterServer IN VfpOpubTest.TestClass
>> DllRegisterServer()
>> ENDIF
>> ENDTRY
>>endif
>>
>
>Steve,
>
>DECLARE INTEGER DllRegisterServer IN VfpOpubTest.TestClass
>
>Wouldn't it be :
>DECLARE INTEGER DllRegisterServer IN Win32API
>
>Ooops. It wouldn't. Sounds I totally forgot the syntax
>
>Cetin
Steve,
Copy VFP runtime files + VfpOpubTest.dll, VfpOpubTest.vbr there and register with regsvr32.
Cetin