Define Class TopLevel As Custom OLEPublic Function TestMethod This.AddObject("Test","ChildClass") EndFunc EndDefine Define Class ChildClass As Custom OLEPublic EndDefineAttempting to access this child object gives an error.
loCOMServer = CreateObject("ComServer.TopLevel") loCOMServer.TestMethod() loCOMServer.Test && Gives errorFrom searching google groups this seems to be because there is not an interface defined for the child object. However I thought as the COM .DLL created by VFP uses IDispatch (is this the same as late-binding?) rather than the TLB this wouldn't matter.