>Dear all,
>
>We are using VFP 8.0 and we have to exclude a class library from an .EXE file and distribute it separately. The problem is that the classes in the library use many other classes in other libraries that are in the EXE and then the program gives an error "library not found". We cannot exclude all class libraries (too many). Anybody has a simple solution for the problem?
>
>Thanks,
>
>Koos Veel.
There's a trick that can get around this problem. It won't work in all situations, but it will work for most.
You can call a function in a PRG that's in the EXE from outside the EXE. Once you're back in the EXE, that function can call anything else in the EXE. So you want a function similar to this (untested code):
FUNCTION DoMyCommand(tcCommand as String, tcParameters)
LOCAL llReturn
llReturn = &tcCommand(&tcParameters)
return llReturn
ENDFUNC