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)
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.
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.
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 "or include them, check for existance externally, and extract them if necessary"
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.