After coding to create a form with hundreds of lines of source code , the last step is build our application project into an EXE file . The EXE file will be executed if you want to distribute the programs that have been created without Visual FoxPro application installed on PC.
In other programming languages such as Visual Basic or Delphi , build an EXE file is a very simple thing , because just click a menu only, EXE will be formed and can be run automatically . It is different with Visual FoxPro , although it also provides the function of making an EXE , by simply running the Build button on the project manager . But the resulting EXE will not automatically be executed , if not do some prior arrangement . Problems that occur in the manufacture of EXE in Visual FoxPro , especially for beginners usually are as follows :
- EXE file is executed successfully, but it does not run anything , or main form are expected to appear first time when EXE or run programs , can not be performed .
- EXE file can be run when the main form displays but apparently behind him , followed by a window display annoying FoxPro editor .
Here's how to do when the problem occurred :
1. Cretae a file Program and Set Main.
2. Fill in coding in file program
DO FORM "login.scx" &&Your Main Form
_screen.WindowState= 2
_screen.visible=.f.
READ EVENTS
_screen.WindowState= 2
_screen.visible=.f.
READ EVENTS
3. On the Other tab in the Project Manager, add Text Files. Later in the Text Files type the syntax
SCREEN = OFF
After that save the Text Files with name 'CONFIG.FPW', when saving in the " Save As Type" select " All Files" and in the "Save Document" type CONFIG.FPW .
4. Copy Microsoft Visual Foxpro file library inlclude in one folder with your exe file. Usually it is consist of 3 file :
After all you can distribute the application that you created on another computer without Visual Foxpro installed.
Download
Microsoft Visual Foxpro 9 file library
Download
Microsoft Visual Foxpro 9 file library
0 Response to "Make an EXE File in Easy Way"
Post a Comment