↧
+++ Rick ---
You should never modify the base classes as they WILL get overwritten in updates. Whenever possible subclass any Web COnnection classes and they use those sub-classes instead. Most Web Connection classes are defined in WCONNECT.h as #DEFINE statements. For example:
#DEFINE WWC_RESPONSE wwResponse #DEFINE WWC_RESPONSEFILE wwResponseFile #DEFINE WWC_RESPONSESTRING wwResponseStringNoBuffer #DEFINE WWC_RESPONSEASP wwASPResponse
To change any of those classes create your subclass and then add the following into WCONNECT_OVERRIDE.H:
#UNDEFINE WWC_REQUEST #DEFINE WWC_REQUEST myRequest #UNDEFINE WWC_WWPDF #DEFINE WWC_WWPDF wwXFRX
Then if you need to explicitly instantiate these classes use:
loPdf = CREATEOBJECT([WWC_WWPDF])
The #DEFINEs are important because they are used internally in Web Connection to instantiate objects used inside of the frameowrk where you can control the object creation. In MOST (but not all) places Web Connection uses the above syntax to create objects.
+++ Rick ---