Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Call DLL from ASP page
Message
From
25/07/2001 06:24:14
 
 
To
25/07/2001 02:11:04
General information
Forum:
Visual FoxPro
Category:
COM/DCOM and OLE Automation
Miscellaneous
Thread ID:
00534820
Message ID:
00534864
Views:
17
Hi!

What about following:

SET PRINTER TO FILE c:\temp\a.tmp
SET PRINTER ON
?\Running on:
?\\<>
SET PRINTER OFF
SET PRINTER TO

In addition, for COM objects I usually make a routine called 'WriteToLog' and use FILE/FOPEN/FCREATE/FWRITE/FCLOSE functions to manage log files.

HTH.

>I am learning how to build a DLL that will be called by ASP pages.
>For that purpose I created a very simple class with its Init method contains:
> set safe off
> set text to c:\temp\a.tmp
> set text on
> \Running on:
> \\<>
> set text off
> set text to
>
>Then I build DLL with "Single threaded COM server (dll)" option. I'm using VFP 6 SP3.
>I also created an ASP page like this:
> ...
> dim oMyDLL
> set oMyDLL=server.CreateObject("testdll.testclss")
> ...
> set oMyDLL=nothing
> ...
>After registering the DLL on the web server, I called the ASP page from my PC but no page displayed. All I got is that there was a BEEP sound from the server PC (nothing on the screen though) and that the progress bar on the bottom of my IE browser moving slowly (but nothing showed up). I also noticed a new process seen on Windows Task Manager (dllhost.exe). Also, the contain of c:\temp\a.tmp didn't seem to be changed.
>But if I try it directly through VFP (Command window) installed on the server everything goes as I expect. Can anybody please tell me what I miss here?
Vlad Grynchyshyn, Project Manager, MCP
vgryn@yahoo.com
ICQ #10709245
The professional level of programmer could be determined by level of stupidity of his/her bugs

It is not appropriate to say that question is "foolish". There could be only foolish answers. Everybody passed period of time when knows nothing about something.
Previous
Reply
Map
View

Click here to load this message in the networking platform