如何使ASP与ACTIVEX DLL无缝连接?(150分)

  • 主题发起人 主题发起人 yaojian
  • 开始时间 开始时间
Y

yaojian

Unregistered / Unconfirmed
GUEST, unregistred user!
I have a lot of ActiveX Dlls to handle Application server.(developped bi Delphi.)
How to use them in ASP?
Would someone do me a favour send me a little sample that ASP call the ActivexDll(written by Delphi) to gain the content of a database? So I can learn a lot from it.
I lost my way on ASP to Delphi5...

Another question:
It is hard to join the sit for its speed. I have ever quoted a question and received good answer three weeks ago but now I found it is very hard to find it and give the score to everyone who answered the question? Will you show me a short-cut way?

 
hehe, I am very pleased to let u know it's easy!
if u have a ole automation dlls, u can use
Set varible = Server.CreateObject("OleServerName.SubObject")
to get the Olesubobject, and then just use varible.method(property)
to use them. i.e.:
Set FileObject = Server.CreateObject("Scripting.FileSystemObject")
can create a filesystemobject fileobject, and now u can use
FileObject.CreateTextFile FileObject.OpenTextFile ...
To develop ole automate server by delphi, I good suggest is u can goto
the http://164.76.13.241:8080/lgc/ see the 《用Delphi开发用于ASP的OLE
Automation Server》 text writen by yysun. It's a very good text for
deleloper.

 
Hi,Thanks cyTown. And Thank GOD For HE let me get in easily!
But,My Problam is that, you know, it is very difficult to Debug in ASP
(Restart the PC Often)/I have to write such a lot lines in ..text.response.write(...ASP Scipt), I will like to use WEBPageMaker to make it easy/ I need MTS to handle my Program as the Application did and I need MIADS support in Module Page,but it reduces the speed a lot/ I want to resue my old program / I do not know if it will work properly when everything works together/My project use ActicveForm for Intranet , not I want to immigrate it to Internet How to keep the flexibility as well as the speed?/ And some other questions just as above.
In a word, I know how to use ASP, But sometimes I got an idea that
ASP is a kind of ISAPI, maybe we should use ISAPI directly.
Thanks for deep talk.
 
看英文真费劲! :-(
 
hehe, first, to debug oleserver with asp, u can just restart the iis
to unregister the dlls, and recompile them, another good way is to
rename them as new server name, mean testdll1, testdll2.....
to use activeform over internet? i will never use this if possible:-)
try make them web pages from activeform.
re. isapi &amp
asp, the relation between them is asp using an isapi dll
to interpret the asp scripts.
delphi build isapi is just a piece of cake, so just do it.
 
(好是好,就是看不懂)
 
有几种方法可供选择:
1、如果服务器是NT,则可以编写一个批处理文件,内容如下:
net stop iisadmin /y
net start w3svc
net start iisadmin
当需要更新Dll的时候执行这一批处理程序。但运行若干次后,再次执行程序时,NT可
能不能正确响应你的请求,这时只好重启NT服务器了。

2、把不同的COM在MTS中注册,这是最简单的方法,在NT(NT+IIS4)和98(98+PWS)下
都可以实施,需要更新Dll时在MTS中选中相关的软件包,然后在下拉菜单中选择“关
机”,如果还不行,则返回到上层“我的计算机”,选择“关闭服务器进程”可,我
平常就是这样干的,屡试不爽。
 
多人接受答案了。
 
后退
顶部