|
-
Nov 15th, 2001, 11:00 AM
#1
Thread Starter
New Member
Passing objects from ASP pages
I am trying to pass a dictionary object to a COM object from an ASP page. Is this possible?
-
Nov 15th, 2001, 04:51 PM
#2
Frenzied Member
Should be.
Is there a specific problem?
Try posting some code to look at...
-
Nov 16th, 2001, 10:37 AM
#3
Frenzied Member
The problem is that your COM object is in a different process (task) than IIS. You can set the COM object to run in-process, see the MSDN website for more details, I forget all the stuff you have to do with MTS; also, to make an in-process server that works with IIS, you have to have the COM component inside of an ActiveX EXE.
-
Nov 16th, 2001, 10:43 AM
#4
Frenzied Member
You can't pass an object to a DLL where the DLL says it will recieve it as ByRef. Only if the DLL says as variant will it work (i think).
My brother had this problem yesterday.
~Peter

-
Nov 16th, 2001, 10:45 AM
#5
Thread Starter
New Member
I've tried it as Variant when passing an array and it doesn't like that either.
mlewis - I thought a dll does run in process?
-
Nov 16th, 2001, 10:53 AM
#6
Frenzied Member
Here's what little brother found - Microsoft ByRef. Hope that helps.
~Peter

-
Nov 16th, 2001, 02:09 PM
#7
Frenzied Member
Argh yes, DLLs inprocess, EXEs outofprocess; sorry I seem to have been Process Dyslexic for a second there
Anyway, you still have to jump through a lot of MTS/IIS hoops for it to work.
MSDN (see the link I posted above) has info on registering MTS components.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|