Solved

Trying to Convert ASP Script to DLL

Posted on 2003-11-20
3
695 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
SSRS expression Issue finding a string 10 101
using web browser with BING 40 136
Hide vba in gp 7 118
How to Add / Edit Windows Menu 4 74
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

730 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