Results 1 to 6 of 6

Thread: Alternative to using a DLL

  1. #1

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    12

    Alternative to using a DLL

    Picture this:
    New job, started two weeks ago for the summer. They give me a project. For two weeks, I work on it. It's an ASP project.

    Now I needed to do a DLL you see, otherwise I would have to copy about 100lines of code on every page that uses that code (Over 30), and it was just plain crazy because the slightest change I had to do would have to be done on the 30 pages. So after two weeks, I manage to get everything working, with the DLL.

    Now, luck has it on my side. No, wait... It doesn't!

    I go tell my boss I'm finished, show him the final work, everything is fine exept one this: It uses a DLL, and the server is in Ottawa, we in Montreal, and therefor we don't have access to register the DLL.

    So I need an alternative to this, and theres no way I'll give in to copying the code on the 30 pages, it would just be a bloody mess of code! Unless of course, I have to.

    Global.x wouldn't work, would it? It's too limited. Anything else?

    Can anybody help?
    Is that not the Beast you said you saw? The one from Hell, the one that strives to drown you in the deepest pits of darkness, the pits of insanity?

    My soul is resting yet my body alert; my instincts rule, my mind is shut; I am an animal, a beast on guard, hidden in my cave I cannot sleep, I just watch, watch your every movement, ready to strike at you when you expect it least. Look behind you, my friend, you might see my dead eyes staring through you, and you, too, might put your soul to rest, to be protected from the demon that's stalking you.

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Use Server Side Includes, or if you're running Windows 2000, Server.Execute.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    12
    I have absolutely NO access to the server. We have a directory on the server, that's all.

    I'm not sure I understand exactly what you mean, can you explain?
    Is that not the Beast you said you saw? The one from Hell, the one that strives to drown you in the deepest pits of darkness, the pits of insanity?

    My soul is resting yet my body alert; my instincts rule, my mind is shut; I am an animal, a beast on guard, hidden in my cave I cannot sleep, I just watch, watch your every movement, ready to strike at you when you expect it least. Look behind you, my friend, you might see my dead eyes staring through you, and you, too, might put your soul to rest, to be protected from the demon that's stalking you.

  4. #4
    Addicted Member
    Join Date
    Oct 2000
    Location
    Québec, Canada
    Posts
    212
    Yeah, why don't you use "include" ?
    This, way you just put your asp code in a file and then include it in each page. It'S only a line and it works pretty well...

    Example of include call in asp page :

    <!--#include file="functions.inc"-->

    and the file looks like this :

    <%
    function One()
    end function

    sub one()
    end sub

    ... you get the point
    %>

    Hope this helps !
    Regards,

    El-Nino

  5. #5

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    12
    eL_NiNo: Thanks a lot, that's exactly what I used and it works like a charm. Thanks again!
    Is that not the Beast you said you saw? The one from Hell, the one that strives to drown you in the deepest pits of darkness, the pits of insanity?

    My soul is resting yet my body alert; my instincts rule, my mind is shut; I am an animal, a beast on guard, hidden in my cave I cannot sleep, I just watch, watch your every movement, ready to strike at you when you expect it least. Look behind you, my friend, you might see my dead eyes staring through you, and you, too, might put your soul to rest, to be protected from the demon that's stalking you.

  6. #6

    Thread Starter
    New Member
    Join Date
    Jul 2000
    Posts
    12
    eL_NiNo: Thanks a lot, that's exactly what I used and it works like a charm. Thanks again!
    Is that not the Beast you said you saw? The one from Hell, the one that strives to drown you in the deepest pits of darkness, the pits of insanity?

    My soul is resting yet my body alert; my instincts rule, my mind is shut; I am an animal, a beast on guard, hidden in my cave I cannot sleep, I just watch, watch your every movement, ready to strike at you when you expect it least. Look behind you, my friend, you might see my dead eyes staring through you, and you, too, might put your soul to rest, to be protected from the demon that's stalking you.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width