For Programmers: Free Programming Magazines  


Home > Archive > ASP > June 2005 > VB6 Activex .DLL for IIS









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VB6 Activex .DLL for IIS
Al

2005-06-02, 3:55 pm

Does any one know a way how to use a visual basic 6 written activex .DLL
without registering it with classic .ASP?

Reason why my hosting is charging me for registering .DLL.

TIA.



Curt_C [MVP]

2005-06-02, 3:55 pm

dont believe you can

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com


"Al" <jodizco@msn.com> wrote in message
news:O5BbSo5ZFHA.3808@TK2MSFTNGP09.phx.gbl...
> Does any one know a way how to use a visual basic 6 written activex .DLL
> without registering it with classic .ASP?
>
> Reason why my hosting is charging me for registering .DLL.
>
> TIA.
>
>
>



McKirahan

2005-06-02, 3:55 pm

"Al" <jodizco@msn.com> wrote in message
news:O5BbSo5ZFHA.3808@TK2MSFTNGP09.phx.gbl...
> Does any one know a way how to use a visual basic 6 written activex .DLL
> without registering it with classic .ASP?
>
> Reason why my hosting is charging me for registering .DLL.
>
> TIA.


Here's an idea that I haven't tested ...

Try GetObject() instead of Server.CreateObject().

If the component is registered then you will instantiate it as a regular
component :
<%
Dim objDLL
Set objDLL = Server.CreateObject("xxx.dll")
%>

If not, then you can use the Server.MapPath method :
<%
Dim objDLL
Set objDLL = GetObject(Server.MapPath("xxx.dll"))
%>

Adapted from:
Using the component with ASP/VBScript
http://www.mylittletools.net/scripts/en/mlw/methods.asp


Using Components and Objects in ASP
http://www.developerfusion.co.uk/sc...nt.aspx?id=1725


Al

2005-06-02, 8:55 pm

Thank you much but GetObject() did not work.


"McKirahan" <News@McKirahan.com> wrote in message
news:l9adncpljpRI2gLfRVn-1A@comcast.com...
> "Al" <jodizco@msn.com> wrote in message
> news:O5BbSo5ZFHA.3808@TK2MSFTNGP09.phx.gbl...
>
> Here's an idea that I haven't tested ...
>
> Try GetObject() instead of Server.CreateObject().
>
> If the component is registered then you will instantiate it as a regular
> component :
> <%
> Dim objDLL
> Set objDLL = Server.CreateObject("xxx.dll")
> %>
>
> If not, then you can use the Server.MapPath method :
> <%
> Dim objDLL
> Set objDLL = GetObject(Server.MapPath("xxx.dll"))
> %>
>
> Adapted from:
> Using the component with ASP/VBScript
> http://www.mylittletools.net/scripts/en/mlw/methods.asp
>
>
> Using Components and Objects in ASP
> http://www.developerfusion.co.uk/sc...nt.aspx?id=1725
>
>



McKirahan

2005-06-02, 8:55 pm

"Al" <jodizco@msn.com> wrote in message
news:#s1XsK7ZFHA.1088@TK2MSFTNGP14.phx.gbl...
> Thank you much but GetObject() did not work.


Not that it will make a difference, but:

Was it in the same folder as the ASP page?

Otherwise, the following line needs a change:

Set objDLL = GetObject(Server.MapPath("xxx.dll"))


Tim Slattery

2005-06-03, 3:55 pm

"Al" <jodizco@msn.com> wrote:

>Does any one know a way how to use a visual basic 6 written activex .DLL
>without registering it with classic .ASP?


I don't think so. An ActiveX Server DLL (which is what you invoke in a
server.CreateObject call) is found by searching the registry. If
there's no entry for it in the registry it can't be found. So it must
be registered.

>Reason why my hosting is charging me for registering .DLL.


Because it's a way they can get a few more dollars out of you?
Registering the library takes a small amount of time for one of their
employees. If you haven't written the library properly, it might be
more than a little bit of time. And there's some risk on their part in
running a program on their system that they know nothing about.

--
Tim Slattery
MS MVP(DTS)
Slattery_T@bls.gov
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com