Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FoxPro DLL's with IIS
Message
 
 
À
29/03/2001 15:11:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00490042
Message ID:
00490053
Vues:
10
>Is there a trick to using FoxPro DLL's with IIS?
>
>
>Here is a synopsis of the problem I am having.
>
>I have created a DLL using Visual FoxPro that creates an extract file and
>then calls Crystal Reports to print a report from that extract.
>
>I have created an ASP that calls the Visual FoxPro DLL. The ASP code looks
>like this:
>
>dim objPara3B
>set objPara3B = Server.CreateObject("BPAReports.Para3B")
>objPara3B.FileLocation = "E:\kwik\bpa\Para3B.HTM"
>objPara3B.ExtractReport
>objPara3B.PrintReport
>
>When the ASP is ran it fails on the Server.CreateObject. The error received
>is:
>
>Server object error 'ASP 0177 : 800401f3'
>Server.CreateObject Failed
>/BPA/PARA3B.asp, line 5
>Invalid class string
>
>
>
>I also created a VB DLL that simply send "Hello World" to the browser. This
>DLL works just fine. The ASP code looks like this:
>
>dim objVBTest
>set objVBTest = Server.CreateObject("VBTest.VBTestClass")
>Response.write objVBTest.HelloWorld
>
>
>
>I have searched Microsofts web site but cannot find any reference to this
>exact problem.
>
>
>If I create the extract file on my PC (not with ASP) and then run the report
>from the web using ASP the report printing works fine. So it appears to be
>a problem calling a Visual FoxPro DLL from ASP.

First thing is to make sure that the foxpro runtime is installed on the web server. After ensuring the runtime is installed, try building a Hello World DLL in Foxpro and use the same asp code to call it.

Jake
Wine is sunlight, held together by water - Galileo Galilei
Un jour sans vin est comme un jour sans soleil - Louis Pasteur
Water separates the people of the world; wine unites them - anonymous
Wine is the most civilized thing in the world - Ernest Hemingway
Wine makes daily living easier, less hurried, with fewer tensions and more tolerance - Benjamin Franklin
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform