>We have some classes and add in stuff as well as some include (.h) files incorporated in our program. We noticed yesterday that the exe created depends on finding some of these files at certain locations and if you delete or move one of the classes, the part of the exe that uses it no longer works. We were under the impression that the code from the classes would be compiled in with the exe and not dependent on them as seperate files in a certain location. Is there a way to tell VFP to do this? (Make the classes, include files, etc. part of the executable file itself)
There are runtime files that are often installed to specific locations. They support the exe. They are not classes or include files. Classes are supposed to be in the exe, but VFP keeps track of the location of the classes on the develoment machine. These locations can be removed by hacking the classes. You don't need these locations once compiled into the exe. Put the runtimes where the exe resides and you'll be fine. Move the exe independent of the runtimes and you'll have to install them in the regular locations.
http://fox.wikis.com/wc.dll?Wiki~VFP9RuntimeFiles~VFP