Board index » off-topic » ISAPI dll

ISAPI dll


2004-04-25 08:39:49 PM
off-topic4
Hi,
i want to load a delphi dll within an ISAPI dll.
when i use the code :
h : THandle;
h := LoadLibrary( name);
FreeLibrary ( h);
i cant pass the freelibrary line. even if both line are consecutive.
i managed to load the dll and use the function in it, but i cant seem to
free it.
when i used the same code for an EXE application i had no problems.
is it somthin in the IIS definitions or code related?
thnak you
Eran
 
 

Re:ISAPI dll

On 25/04/2004 14:39:49, Eran Gavriel wrote:
Quote
i want to load a delphi dll within an ISAPI dll.
Cross-posted and off-topic here. Please post your technical questions
to the single most appropriate technical group.
--
Yorai Aminov (TeamB)
(TeamB cannot answer questions received via email.)
Shorter Path - www.shorterpath.com
Yorai's Page - www.yoraispage.com
 

Re:ISAPI dll

Using Delphi 7, I have an ISAPI dll code snippet that does this:
If Service='displayCSV' then
Begin
Response.ContentType:='application/x-excel';
S:=ReturnEventCSV; // This returns a string of the csv file
End;
Response.Content:=S;
This code snippet is called by the following html template:
<a href="/scripts/oer.dll?service=displayCSV&sessionid=%SESSIONID%&oerid=%XMLNODEFIELDoerid%&e=.csv"><img src="/intouch/graphics/icon_excel.gif" border=0 width=16 height=16 alt="download the event in csv"></a>
My ISAPI dll program name is oer.dll and whenever I try to save the csv file with the previous code, the default name is oer.csv. Although I can change the ".csv" extention by editing the html, nothing I do seems to change the default base file name. How can I do this?
 

{smallsort}

Re:ISAPI dll

I figured it out. You have to do this:
Response.CustomHeaders.Add('Content-Disposition=; filename="MyFileName.csv"');