473,387 Members | 1,757 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

please advise about putting asp functions into a DLL

Please forgive me for reposting; last title didn't quite say it right.

I have an ASP application I wrote in vbScript so this is not .Net.
There are 20 nearly identical versions of this application running on my
2003 server.
It is a web content management system.
My idea is to drop some of the common functions into a DLL to increase
efficiency AND to protect the source code so I can start selling this thing
and letting others run it on their servers.

I'm wondering/hoping if the following benefit could be:
If I'm running identical version of this ASP application 20 times on my
server, I'm running 20 of certain identical functions. If I drop these
functions into ONE DLL and reference that ONE DLL from the 20 applications,
maybe less
overhead on server? Does it work that way?

I know I should just rebuild this entire thing in .Net but not ready yet
since I haven't learned .Net yet.

Thanks for any advice you can give!
--
Scotter
Jul 19 '05 #1
10 1558
Ask a COM group..?

"Scotter" <sp**@spam.com> wrote in message
news:wH*****************@fe2.texas.rr.com...
Please forgive me for reposting; last title didn't quite say it right.

I have an ASP application I wrote in vbScript so this is not .Net.
There are 20 nearly identical versions of this application running on my
2003 server.
It is a web content management system.
My idea is to drop some of the common functions into a DLL to increase
efficiency AND to protect the source code so I can start selling this thing and letting others run it on their servers.

I'm wondering/hoping if the following benefit could be:
If I'm running identical version of this ASP application 20 times on my
server, I'm running 20 of certain identical functions. If I drop these
functions into ONE DLL and reference that ONE DLL from the 20 applications, maybe less
overhead on server? Does it work that way?

I know I should just rebuild this entire thing in .Net but not ready yet
since I haven't learned .Net yet.

Thanks for any advice you can give!
--
Scotter

Jul 19 '05 #2
Unless it's a high traffic site where every millisecond matters I don't
think it will help much. And of course if you're selling it, having
components that have to be installed on servers could be considered a
complication (i.e. a drawback).

Best regards,
J. Paul Schmidt, Classic ASP Web Designer
http://www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Demo, ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Jul 19 '05 #3
Still, It's done all the time..

"Bullschmidt" <pa**@bullschmidt.com-nospam> wrote in message
news:eg**************@TK2MSFTNGP12.phx.gbl...
Unless it's a high traffic site where every millisecond matters I don't
think it will help much. And of course if you're selling it, having
components that have to be installed on servers could be considered a
complication (i.e. a drawback).

Best regards,
J. Paul Schmidt, Classic ASP Web Designer
http://www.Bullschmidt.com
Classic ASP Design Tips, ASP Web Database Demo, ASP Bar Chart Tool...
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Jul 19 '05 #4
Hi Scotter,

Since your original code is in VBscript, it will be easy to convert them
into VB ActiveX DLL project. This kind of code is compiled code and the
performance will be better than VBscript. I think your idea is great.

For .NET, you may need to upgrade the application to ASp .NET. The
performance will get improved depend on what work it do.

Luke

Jul 19 '05 #5
Thanks for the generous replies!
Yeah I understand how having to install components on a server can be a pain
compared to just copying asp text files into a folder. The thing is I need
to *protect* my code so that people don't take my application, make a few
changes, rename it, and sell it as theirs. I hate having to care about that
but I guess it is necessary in this world...
Jul 19 '05 #6
> My idea is to drop some of the common functions into a DLL to increase
efficiency AND to protect the source code so I can start selling this thing and letting others run it on their servers.


Well, despite what this article says (plenty of research since it was
written), the DLL will protect your code but is highly unlikely to increase
efficiency.

http://msdn.microsoft.com/library/en...l/404track.asp

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #7
Thanks, Aaron.
I guess increasing efficiency as far as pure performance, I'm not really as
interested in.
The kind of efficiency I'm looking for, besides protecting my code, is this:
Instead of having i_fn_dowhatever.asp existing in twenty different web sites
and called from many asp pages within each of those sites, I'm thinking it
would be cool to have one DLL on any given server and in that DLL I have
that function (as well as others) and each of the sites can call said
function(s). So does that idea make sense? Would it work that way?
Obviously, I haven't done any COM-based stuff like this so I'm very
appreciative of whatever advice you all are giving me.
Thanks!
Scott
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
My idea is to drop some of the common functions into a DLL to increase
efficiency AND to protect the source code so I can start selling this thing
and letting others run it on their servers.


Well, despite what this article says (plenty of research since it was
written), the DLL will protect your code but is highly unlikely to

increase efficiency.

http://msdn.microsoft.com/library/en...l/404track.asp

--
http://www.aspfaq.com/
(Reverse address to reply.)

Jul 19 '05 #8
Be advised that if you have code common to multiple sites in a com dll then
if you upgrade the application you have to upgrade all sites at the same
time unless you change the name of the dll with each release (that is what
we do, we now even keep the dll names in application variables so they only
have to be changed in global.asa).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Scotter" <sp**@spam.com> wrote in message
news:uB******************@fe2.texas.rr.com...
Thanks, Aaron.
I guess increasing efficiency as far as pure performance, I'm not really as interested in.
The kind of efficiency I'm looking for, besides protecting my code, is this: Instead of having i_fn_dowhatever.asp existing in twenty different web sites and called from many asp pages within each of those sites, I'm thinking it
would be cool to have one DLL on any given server and in that DLL I have
that function (as well as others) and each of the sites can call said
function(s). So does that idea make sense? Would it work that way?
Obviously, I haven't done any COM-based stuff like this so I'm very
appreciative of whatever advice you all are giving me.
Thanks!
Scott
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
My idea is to drop some of the common functions into a DLL to increase
efficiency AND to protect the source code so I can start selling this

thing
and letting others run it on their servers.


Well, despite what this article says (plenty of research since it was
written), the DLL will protect your code but is highly unlikely to

increase
efficiency.

http://msdn.microsoft.com/library/en...l/404track.asp

--
http://www.aspfaq.com/
(Reverse address to reply.)


Jul 19 '05 #9
VERY good idea! I'll be adding "s_name_DLL_function_file" to my set of
config variables (stored in the db and in application vars). Thanks!!

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Be advised that if you have code common to multiple sites in a com dll then if you upgrade the application you have to upgrade all sites at the same
time unless you change the name of the dll with each release (that is what
we do, we now even keep the dll names in application variables so they only have to be changed in global.asa).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Scotter" <sp**@spam.com> wrote in message
news:uB******************@fe2.texas.rr.com...
Thanks, Aaron.
I guess increasing efficiency as far as pure performance, I'm not really

as
interested in.
The kind of efficiency I'm looking for, besides protecting my code, is

this:
Instead of having i_fn_dowhatever.asp existing in twenty different web

sites
and called from many asp pages within each of those sites, I'm thinking it would be cool to have one DLL on any given server and in that DLL I have
that function (as well as others) and each of the sites can call said
function(s). So does that idea make sense? Would it work that way?
Obviously, I haven't done any COM-based stuff like this so I'm very
appreciative of whatever advice you all are giving me.
Thanks!
Scott
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
> My idea is to drop some of the common functions into a DLL to increase > efficiency AND to protect the source code so I can start selling this thing
> and letting others run it on their servers.

Well, despite what this article says (plenty of research since it was
written), the DLL will protect your code but is highly unlikely to

increase
efficiency.

http://msdn.microsoft.com/library/en...l/404track.asp

--
http://www.aspfaq.com/
(Reverse address to reply.)



Jul 19 '05 #10
> VERY good idea! I'll be adding "s_name_DLL_function_file" to my set of
config variables (stored in the db and in application vars). Thanks!!
And it only took me 5 releases (edits to about 100 files in each release) to
figure that out.

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Scotter" <sp**@spam.com> wrote in message
news:wW******************@fe2.texas.rr.com... VERY good idea! I'll be adding "s_name_DLL_function_file" to my set of
config variables (stored in the db and in application vars). Thanks!!

"Mark Schupp" <ms*****@ielearning.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
Be advised that if you have code common to multiple sites in a com dll then
if you upgrade the application you have to upgrade all sites at the same
time unless you change the name of the dll with each release (that is what
we do, we now even keep the dll names in application variables so they

only
have to be changed in global.asa).

--
Mark Schupp
Head of Development
Integrity eLearning
www.ielearning.com
"Scotter" <sp**@spam.com> wrote in message
news:uB******************@fe2.texas.rr.com...
Thanks, Aaron.
I guess increasing efficiency as far as pure performance, I'm not really
as
interested in.
The kind of efficiency I'm looking for, besides protecting my code, is

this:
Instead of having i_fn_dowhatever.asp existing in twenty different web

sites
and called from many asp pages within each of those sites, I'm

thinking it would be cool to have one DLL on any given server and in that DLL I
have that function (as well as others) and each of the sites can call said
function(s). So does that idea make sense? Would it work that way?
Obviously, I haven't done any COM-based stuff like this so I'm very
appreciative of whatever advice you all are giving me.
Thanks!
Scott
"Aaron [SQL Server MVP]" <te*****@dnartreb.noraa> wrote in message
news:ud**************@TK2MSFTNGP12.phx.gbl...
> > My idea is to drop some of the common functions into a DLL to

increase > > efficiency AND to protect the source code so I can start selling this > thing
> > and letting others run it on their servers.
>
> Well, despite what this article says (plenty of research since it was > written), the DLL will protect your code but is highly unlikely to
increase
> efficiency.
>
> http://msdn.microsoft.com/library/en...l/404track.asp
>
> --
> http://www.aspfaq.com/
> (Reverse address to reply.)
>
>
>



Jul 19 '05 #11

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

26
by: Michael Strorm | last post by:
Hi! I posted a message a while back asking for project suggestions, and decided to go with the idea of creating an adventure game (although it was never intended to be a 'proper' game, rather an...
1
by: artifact | last post by:
Hello Can anyone tell me what is the best way to persist a complex object across postbacks in ASP.NET eg * I have a Person class with methods to edit the person's info * I navigate to my...
13
by: Chiller | last post by:
I'm now getting close to finishing my Distance class. In the code below I have included a number of overload operators that test for equality etc. I've also added more code in the TEST_DISTANCE...
8
by: Generic Usenet Account | last post by:
Our C++ program was linked with some legacy C functions. We had used the extern "C" declaration, and everything was working fine. Then someone thought that it would be better to have a consistent...
9
by: Edwinah63 | last post by:
Hi everyone, Please let there be someone out there who can help. I have two BOUND combo boxes on a continuous form, the second being dependent on the first. I have no problem getting the...
13
by: Pedro Graca | last post by:
I'm sure this isn't very pythonic; comments and advice appreciated def curious(text): """ Return the words in input text scrambled except for the first and last letter. """ new_text = "" word...
13
by: sd00 | last post by:
Hi all, can someone give me some coding help with a problem that *should* be really simple, yet I'm struggling with. I need the difference between 2 times (Target / Actual) However, these times...
12
by: Simon | last post by:
Hi all, I'm having a baffling problem with a windows service that I'm working on. Basically, I am using a typed dataset to insert a large number of rows into an SQL Server 2005 database. But...
7
by: mohammaditraders | last post by:
Write a program which overloads a binary Minus (+) operator, The program will contain a class Matrix, This class will contain a private data member Array which store int values. The class will...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.