* Create a PRG >TEXT TO lcPrg NOSHOW >DEFINE CLASS myNewClass AS Session > PROCEDURE Test > WAIT WINDOW 'Test!' > ENDPROC >ENDDEFINE >ENDTEXT > >STRTOFILE(lcPrg, 'custom\testdcx.prg') >oO = NEWOBJECT('myNewClass', 'custom\testdcx.prg') >oO.Test()>
* Create a PRG >TEXT TO lcPrg NOSHOW >DEFINE CLASS myNewClass AS Session > PROCEDURE Test > WAIT WINDOW 'Test!' > ENDPROC >ENDDEFINE >ENDTEXT > >STRTOFILE(lcPrg, 'custom\testdcx.prg') >COMPILE custom\testdcx.prg >oO = NEWOBJECT('myNewClass', 'custom\testdcx.prg') >oO.Test()You are absolutely right. My *.exe version was picking up the compiled version defination program left from running the *.app version. When I made a change the program ran the same - others could not run it.