shangrilla
Programmer
Ok this is really messed up. I can build my project, Build my exe and run it from within foxpro. After I click on the myApp.exe itself in my c:\myApp or its shortcut on the desktop it doesn't run. The hourglass comes up for a second and then disappears. If I try running it again it says that the app is already running. I press CTRL+ALT+DEL and I can see the myApp.exe under the processes tab and I have to kill it there before I can do anything. Whats wrong?
***The following code checks to see if theApp is already ***running.
*Turn off DDE error messages.
=ddesetoption( "SAFETY", .f.)
*Check to see if DDE service was already started.
achan = ddeinitiate( "pkf4", "System" )
If achan # -1
Wait WINDOW "App is already running"
Quit
Endif
*If we got here, the service was not started, so start it.
=ddesetservice( "pkf4", "DEFINE" )
*The last line of this program turns off the service.
*Clears settings that help control multiple instances
*At the end of the program, turn off the service,
*so we can get in next time.
=ddesetservice( "pkf4", "RELEASE" )
***The following code checks to see if theApp is already ***running.
*Turn off DDE error messages.
=ddesetoption( "SAFETY", .f.)
*Check to see if DDE service was already started.
achan = ddeinitiate( "pkf4", "System" )
If achan # -1
Wait WINDOW "App is already running"
Quit
Endif
*If we got here, the service was not started, so start it.
=ddesetservice( "pkf4", "DEFINE" )
*The last line of this program turns off the service.
*Clears settings that help control multiple instances
*At the end of the program, turn off the service,
*so we can get in next time.
=ddesetservice( "pkf4", "RELEASE" )