Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
From VFP, what exactly is a Collection from a COM object
Message
De
28/02/2000 16:34:18
 
 
À
28/02/2000 16:04:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Divers
Thread ID:
00338642
Message ID:
00338700
Vues:
11
Bill,

>So I either need a way, from a VFP test program to create the request object, and populate it (the subject of my other thread), or emulate it(the subject of this thread). I can't see any way to test from a real ASP page, and still have access to my code, since I can't call my COM server from ASP except from its .dll (and so I can't use the debug environment).

You might get a jump start on this with Web Connection. Rick changed the objects and properties in version 3 to more closely match ASP-style syntax. Inside the WC Process class, which acts on a web hit, you have a Response and Request object, which are visible to programs called from there, and you're totally in a VFP environment for debugging purposes.

For example, look at:

http://www.west-wind.com/webconnection/docs/wwrequestform.htm
http://www.west-wind.com/webconnection/docs/wwrequestquerystring.htm
http://www.west-wind.com/webconnection/docs/wwrequestservervariables.htm
http://www.west-wind.com/webconnection/docs/wwresponsewrite.htm

From the WC docs:

Active Server Object Naming Conventions
Objects in the framework have been renamed and methods adjusted to reflect Active Server object names. So now you have Request, Server, Session and Response objects with methods that somewhat match the ASP equivalents. Web Connection of course provides much more functionality ontop of the base features that ASP provides. Server Variable names now also use the same names as ISAPI/CGI and ASP values. All of this should make it easier to switch between Web Connection and ASP applications as well as providing additional reference material in standard Microsoft documentation about what server variables return.

Direct support for Active Server Pages
You can now use an ASP page to call a Web Connection component. Although this is less efficient than using the Web Connection ISAPI DLL directly it does provide better integration with ASP. New wwASPRequest class handles access for the ASP Request object in WWWC.
In addition many object names have been renamed to match Active Server Page objects and method/property names.
David Stevenson, MCSD, 2-time VFP MVP / St. Petersburg, FL USA / david@topstrategies.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform