Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > ASP Forms
|
ASP Forms As of Oct 5, 2005, this forum is now locked. Please use "Classic ASP beginner" at http://p2p.wrox.com/forum.asp?FORUM_ID=54 or "Classic ASP Professional" http://p2p.wrox.com/forum.asp?FORUM_ID=56 instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP Forms 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 26th, 2004, 01:58 AM
Registered User
 
Join Date: Apr 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to pass object as parameter from ASP to COM

Dear Sir,
I am facing a problem when passing an Object as Parameter to a COM Dll.
I have a function in in dll which accepts oManager object as paramter.
I am creating the oManager object in ASP page and trying to pass it to the function in the dll that accepts oManager as parameter.
But i am getting an error stating "VBScript Runtime Error:Cannot handle addManager".addManager is the function name in dll.
Please help me to find solution for this.

Thanks and regards
vasuda
 
Old April 26th, 2004, 03:47 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 1,212
Thanks: 0
Thanked 1 Time in 1 Post
Default

You don't say how the object you're trying to pass is declared in the DLL, but if its a strongly typed argument passed by reference then its unusable from ASP, which only knows about Variants.

You can either pass the argument by value, or change its type so that it's declared as Variant.

hth
Phil





Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Pass Parameter to Sub Report in asp.net 2.0 jawad Ahmed Crystal Reports 2 March 1st, 2008 02:17 AM
Parameter object malfunction - out parameter dash dev C# 2005 6 December 4th, 2007 12:58 PM
pass parameter naeem_ul_hussan Classic ASP Basics 2 August 30th, 2007 11:18 AM
Pass parameter from XSLT to ASP.NET kwilliams XSLT 3 August 17th, 2005 11:56 AM





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