Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to call updated prg/frx/scx that is outside applicat
Message
From
10/12/2009 13:25:47
Walter Meester
HoogkarspelNetherlands
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01438358
Message ID:
01438456
Views:
72
>>That is not entirely true. It depends on whether the resource has been loaded before in the instance of the application. If the application has accessed the resource before, it is in a cache and therefore any outside program/form can see it
>
>I don't think so.

Well try it out... instantiate a class within the exe and then call a FXP that creates a new isntance of the same class. It will do this without a problem. Omit the instatiation within the EXE, then the FXP will crash as it cannot find the class lib.

Anyways there are tricks out there to overcome much of the problem of not seeing the resources inside the EXE. One of them is using a factory created within the EXE to create objects.

And as long as a called function is somewhere in the stack(level) of PRGs a call from an outside FXP will find it.


We've done some extensive work on this principle to extend our applications on an ad-hoc basis.

Walter,
Previous
Reply
Map
View

Click here to load this message in the networking platform