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 April 23rd, 2004, 02:20 AM
Geo Geo is offline
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to call a Delphi DLL in ASP

Dear All,
  How to call a DLL written in Delphi in an ASP page?

  Any special installation needed on the IIS server?

  Thanks.



library CheckValDLL;


uses
  SysUtils,
  Classes, ComServ;

{$R *.RES}

function CheckVal(const ALoginID: String): Boolean; stdcall;
begin
  ///// do something....
end;

exports
  CheckVal,
  DllGetClassObject,
  DllCanUnloadNow,
  DllRegisterServer,
  DllUnregisterServer;

begin
end.
 
Old April 23rd, 2004, 03:14 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

I don't know of any way to do this. ASP can only use COM objects, not exported functions from traditional DLLs.

You could construct a COM object that acts as a wrapper for your DLL function, but if you're going to do that you may as well put your CheckVal function in that COM object too...

rgds
Phil





Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting VB6 DLL call to asp.net rrhandle General .NET 0 April 14th, 2007 02:37 AM
How to call a COM dll from C/C++... subhash_w BOOK: Professional C++ 1 July 15th, 2005 11:27 AM
How to call a COM DLL from C/C++ subhash_w C++ Programming 0 July 15th, 2005 05:49 AM
How to call VC++ DLL from ASP/ASP.net? leesoon Classic ASP Professional 0 December 9th, 2004 10:06 PM





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