Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Works as an *.app not as an *.exe
Message
From
15/11/2002 13:32:25
 
 
To
15/11/2002 12:02:51
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
00722936
Message ID:
00723323
Views:
10
>>Basically the class definition file is compiled when when you make a instance of it.
>
>I don't think thats true. Thats what I was trying to say in my original message.
>
>Running this program does not work as an EXE but does work as an APP:
>
>
* 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()
>
>The following, works regardless of where it's running from:
>
>
* 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.

Thank you
Best Regards
Don Simpson
Previous
Reply
Map
View

Click here to load this message in the networking platform