Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning and accepting values from a FoxPro.exe
Message
De
14/06/1999 13:47:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00229033
Message ID:
00229572
Vues:
17
>Using C, you could use the "POST" action form method you can call a program directly.
>
>FORM METHOD="POST" ACTION="http://dcummings/cStuff/POST_QUERY.exe"

You are actually posting these variables to the web server. The server (IIS, whatever) is then responsible for calling the exe in the URL. Rick wc.dll is an ISAPI extension that follows a set of standards set forth by IIS to receive the POSTed request information and return the HTML output. If you were writing your own program to do this in C, you were probably exposing the specified required functions so that your dll would qualify as an ISAPI extension.

>I was looking for a way to do that directly with FoxPro. Rick Strahl in WestWind, uses a DLL. I believe it's written in C. It processes the information and creates an ascii file. Meanwhile, a foxpro app, running in the background has a timer which keeps checking for the existence of a specific file. Once the file is found, the FoxPro app reads in the information and generates a new page.
>
>I was hoping there was a way to bypass this middle step using the DLL.

I don't think you'll be able to do this using VFP. Since the dlls that VFP creates are COM servers, and not C libraries, IIS wouldn't know how to use one.

This is what FoxISAPI.DLL does for VFP programmers. It itself is the ISAPI application that knows how to pass parameters to a VFP COM server. What Rick did was write his own ISAPI app (wc.dll) that handles parameters and return output differently.

If you still want to write an ISAPI app, I suggest you stick with C. For details on the ISAPI spec, check out this MIND article:

http://www.microsoft.com/Mind/0197/ISAPI.htm

Hope I didn't confuse you too much...
Erik Moore
Clientelligence
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform