Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

VB6 Activex .DLL for IIS
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.




Report this thread to moderator Post Follow-up to this message
Old Post
Al
06-02-05 08:55 PM


Re: VB6 Activex .DLL for IIS
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.
>
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Curt_C [MVP]
06-02-05 08:55 PM


Re: VB6 Activex .DLL for IIS
"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



Report this thread to moderator Post Follow-up to this message
Old Post
McKirahan
06-02-05 08:55 PM


Re: VB6 Activex .DLL for IIS
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
>
>



Report this thread to moderator Post Follow-up to this message
Old Post
Al
06-03-05 01:55 AM


Re: VB6 Activex .DLL for IIS
"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"))



Report this thread to moderator Post Follow-up to this message
Old Post
McKirahan
06-03-05 01:55 AM


Re: VB6 Activex .DLL for IIS
"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

Report this thread to moderator Post Follow-up to this message
Old Post
Tim Slattery
06-03-05 08:55 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 06:44 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.