Anil,
It really only takes setting the class as OLEPUBLIC
define class MyComServer as custom olepublic
procedure HiThere
return 123
enddef
Build the project as mycom.DLL or mycom.EXE, then instantiate it like any other COM server:
ox = createobject( "mycom.MyComServer" )
? ox.HiThere()
>Sorry, If I am asking a basic question. How can we make a VFP app a COM
>object. Please bear with me as I am new to Wiindows world....