PDA

Click to See Complete Forum and Search --> : Use dll from asp


Dec 13th, 1999, 06:44 AM
Because ASP didn't support Format in VB, thus I build a active x dll so that ASP can use to call it. But after i build the dll I can't call it, can someone help it.

Thank first!

Serge
Dec 13th, 1999, 10:20 AM
In order for ASP create an instance of your DLL, it has to reside on the server side.

------------------

Serge

Software Developer
Serge_Dymkov@vertexinc.com
Access8484@aol.com
ICQ#: 51055819 (http://www.icq.com/51055819)

Clunietp
Dec 13th, 1999, 10:28 AM
register the DLL on the server, then use

dim objMyDLL
dim varReturnVal

set objMyDLL = Server.CreateObject("MyDLL.MyClass")

varReturnVal=objMyDLL.DoSomething(Param1, Param2)

Response.Write varReturnVal

[This message has been edited by Clunietp (edited 12-13-1999).]

Bart
Dec 13th, 1999, 06:51 PM
I have the same problem. How do I register the dll on the server? I'm using a server that's not mine (thunder.prohosting.com).

Dec 14th, 1999, 11:03 AM
Q1
I can register the using regsvr32 in my pc but how can the dll can be used in the client side when the client open the page with the browser?
Q2
when I package the vb project and transfer to client pc, why it can't run. It only run when I install vb on the client pc. Wat dll need to include beside the dll for the project?

Thanks first and also for the answer.

Clunietp
Dec 14th, 1999, 11:12 AM
Bart -- regsvr32.exe \\ComputerName\ShareName\FileName.dll

Dany --
Client will also need the VB Runtimes along with any dependancies that your DLL has otherwise

[This message has been edited by Clunietp (edited 12-14-1999).]