×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Need help building an .exe

Need help building an .exe

Need help building an .exe

(OP)
When I build an .exe I get an error saying file does not exist on the read events line.  Can anyone help?  Here's my code in my main:

set default to f:\pro50\custom\coinconnection

do form testformexecute.scx
read events
quit



Thank you in advance.

RE: Need help building an .exe

VFP is probaby not able to find testformexecute.scx when you are building your exe.

If testformexecute.scx is in the directory f:\pro50\custom\coinconnection, you should issue the following before you build your exe:

SET PATH TO SET('PATH') + ", f:\pro50\custom\coinconnection"

and then build your exe.

HTH,

Weedz (Wietze Veld)
My private project:www.crowncap.demon.nl\info\crwnbase
Download the CrownBase source code !!

RE: Need help building an .exe

HI

1. If the error is while running the executable...
   Probably, the data files referred in the forms DataEnvironment is not in the same directory. So you have to set path for that data tables to be made available.

2. If the error is while you are compiling...
   do form testformexecute
   read events   
   ** Note I have removed the .scx. Once the comiplation is done, the executable holds what it wants and you dont specify the .extension.

3. In your main.prg, it is always advisable to set the path in the following way.
****************************************
PUBLIC gcHomeDirectory, gcDataPath

gcHomeDirectory = JUSTPATH(SYS(16,0))
SET DEFAULT TO (gcHomeDirectory)

** If DATA is the directory which holds the DATA tables
** within your default directory... then...
gcDataPath = "DATA\"
SET PATH TO SET("PATH")+";"+gcDataPath
****************************************
The above steps will be helpful when you shift the application to a different directory and then work on a later date.

Hope this is helpful.




ramani
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK

RE: Need help building an .exe

(OP)
Thank you very much.  Taking the .scx off worked.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close