Hi all,
I'm trying to figure out a way to reliable cause external files to be included into a project, but without having any control over the project (ie. can't use project hooks). The idea is that if somebody wants to use a class the associated resources get loaded into the project automatically just by including the class.
I've found some ways to make this happen but it's all ugly as sin <g>. Basically I can add code like this:
SET PROCEDURE TO MyJavaScriptResource.js
SET PROCEDURE TO WebImage.gif
and then never call this code.
This actually works - the resources get included BUT the VFP compiler throws warning exceptions and creates a .ERR file at least for the JS file (oddly the compile completes though and the BUILD EXE reports 0 errors which seems strange - apparently the compile errors in non PRG files are ignored).
Does anybody know of other ways that the VFP compiler will include external files explicitly?