PDA

Click to See Complete Forum and Search --> : Passing objects from ASP pages


tjpoole
Nov 15th, 2001, 10:00 AM
I am trying to pass a dictionary object to a COM object from an ASP page. Is this possible?

mlewis
Nov 15th, 2001, 03:51 PM
Should be.

Is there a specific problem?

Try posting some code to look at...

mlewis
Nov 16th, 2001, 09:37 AM
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 (msdn.microsoft.com) 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.

MrGTI
Nov 16th, 2001, 09:43 AM
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.

tjpoole
Nov 16th, 2001, 09:45 AM
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?

MrGTI
Nov 16th, 2001, 09:53 AM
Here's what little brother found - Microsoft ByRef (http://support.microsoft.com/support/kb/articles/Q244/0/12.ASP). Hope that helps.

mlewis
Nov 16th, 2001, 01:09 PM
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.