Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 3rd, 2003, 04:36 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Asp & Dll's

I am writing an ASP page and want to call a DLL to do some computation for me. How do i call a Dll from ASP? What sort of DLL do i need to produce

lgcoles
 
Old July 3rd, 2003, 06:11 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

Hi, lgcoles

For information about creating (VB) DLLs, check out the following thread:

http://p2p.wrox.com/topic.asp?TOPIC_ID=193

The code I have posted deals with ADO data access, but the principle holds true for other kinds of DLLs as well.

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old July 3rd, 2003, 07:08 AM
Registered User
 
Join Date: Jul 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Can you do the same with a C DLL

lgcoles
 
Old July 3rd, 2003, 08:26 AM
Imar's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts
Default

C or C++?

You can do the same with C++ (that is, create a DLL that can be called from an ASP page and that is hosted in a COM+ package), but I am not sure about C. AFAIK, C doesn't support COM+ so if that's true, I guess you're out of luck with C.

There may be others on this forum that can give a definite answer to this question....

Cheers,

Imar


---------------------------------------
Imar Spaanjaars
Everyone is unique, except for me.
 
Old July 4th, 2003, 04:17 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

99.99% sure you can't call a C DLL directly. You could, however, provide a COM object with a wrapper function that calls your C DLL.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Debugging DLL's amd2003 Beginning VB 6 6 April 23rd, 2008 03:09 PM
debugging activex dll's from asp problem Classic ASP Basics 0 March 28th, 2006 01:19 PM
probelms with dll's gabriel_ro BOOK: Beginning ASP 3.0 0 February 25th, 2005 07:30 AM
Registering DLL's askenkray Classic ASP Components 4 January 27th, 2005 03:05 PM
DLL's snowy0 VB.NET 1 October 1st, 2004 09:14 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.