&& Compile this as a exe com server in one project Local oRetrieval as retrieval SYS(2335,0) ON ERROR do errHandler(program(), message()) oRetrieval = CREATEOBJECT("DLLNAME.Retrieval") oRetrieval.ftsearch(lkeyWord, lPath, ltable) && Where ever these params came from ON ERROR Return FUNCTION errHandler(sProgram, sMessage) && Do something with params ENDFUNC
&& Compile as a MT Com Dll in another project DEFINE CLASS retrieval AS CUSTOM OLEPUBLIC ... FUNCTION ftsearch( lkeyword , lpath, ltable ) ON ERROR do errhandler ...Atleast this is the way I've used it many time with out a problem. I hope this help.