Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Exclude a library?
Message
 
To
08/07/2004 14:40:27
Koos Veel
Gamma Research
Aruba
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00922154
Message ID:
00922211
Views:
21
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform