Tim,
>I expected it to print "test" but it didn't happen.
>It just said "entry point in DLL not found."
>
>Must I always call DLL's using
>o=createobject("GetOFile.GetOFile")
As you figured out, VFP dll's are COM automation servers, which you call with CREATEOBJECT (or NEWOBJECT), not DECLARE.
>Should the DLL work for other systems i.e. vb, oracle or just with foxpro.
Yes for other systems, as long as you use their syntax for COM automation servers.