Solved

Trying to Convert ASP Script to DLL

Posted on 2003-11-20
3
691 Views
Last Modified: 2013-12-26
I am trying to convert ASP code into a DLL.

The ASP file is a large function and it contains several steps, some of which call other subroutines and functions located in a separate include file elsewhere.

I moved the code into Visual Studio, changed it to a public function, and added As String to the Dims. When I try to make the DLL, I get an error "Sub or function not defined," and it points to the first subroutine that exists in the separate include. What do I need to do to get it compiled? I would prefer not to copy the subs and functions into the DLL itself, but this is my first DLL, and I'm not sure how to reference external files. Any help would be appreciated. Thanks.
0
Comment
Question by:stribble
  • 2
3 Comments
 

Author Comment

by:stribble
ID: 9792048
A little more info to add:

The architecture is such: default.asp calls process.asp; process.asp contains code that references the function inside the DLL as well as an include reference to the external ASP include file with the various subroutines and functions.
0
 
LVL 7

Accepted Solution

by:
Smallint earned 500 total points
ID: 9795623
Hi stribble,

I'm sorry but you must copy all functions and subs inside DLL. You can access Session, Application, and other objects and variables from ASP through GetObjectContext function. Take a look here

http://pubs.logicalexpressions.com/Pub0009/LPMArticle.asp?ID=227

Be carefully and check DLL functions becase VBScript and VB is not exactly the same. Some time ago I did something like you, and I had a lot of problems with string handling functions, because behaviour changed a little, but enough for need of a lot of testing and debugging.

Good luck

Cheers


0
 

Author Comment

by:stribble
ID: 9803706
Thanks. That's exactly what I was looking for.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

There are many ways to remove duplicate entries in an SQL or Access database. Most make you temporarily insert an ID field, make a temp table and copy data back and forth, and/or are slow. Here is an easy way in VB6 using ADO to remove duplicate row…
I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now