Solved

Trying to Convert ASP Script to DLL

Posted on 2003-11-20
3
693 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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
You can of course define an array to hold data that is of a particular type like an array of Strings to hold customer names or an array of Doubles to hold customer sales, but what do you do if you want to coordinate that data? This article describes…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

776 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