Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ani and wav file

Status
Not open for further replies.

danb1961

Technical User
Dec 10, 2002
9
RO
I included in a project a file with extension ani or wav, but when I make an exe file those files doesn't work , I must distribute them separetly.(I don't use mocrosubstition)
 
When I've used wav files etc... I have always distributed them seperately.
 
Only native VFP commands can see files included in your .EXE - not external controls. So you can either distribute them separately or include them, check for existance externally, and extract them if necessary.

There are threads that have discussed at least two methods for extracting files from an .EXE - just do a search above.

Rick
 
Thanks,but..:
To rgbean:
1. What mean "...or include them, check for existance externally, and extract them if necessary" and how do I do this ?'-??chr(7) isn't a native command ?
2.I can't locate threads you told me about
Thanks again
 
1. If you use the FILE() function, it will return .T. if the file exists in the .APP, .EXE or anywhere in the current path. If you use ADIR(), it will only return a found file if it's external - i.e. on disk.

1a. While chr(7) is a native command, it still requires any file selected with SET BELL TO <.wav> to physical exist on disk - it can't be included in the .APP / .EXE.

2. thread184-298687 discusses two techniques for extracting included files.

Rick
 
1.I don't think that file() function can tell me that I have a file included in an exe.(I have checked the help)
2. I don't understand the algoritm you told me about &quot;or include them, check for existance externally, and extract them if necessary&quot;
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top