Results 1 to 7 of 7

Thread: Passing objects from ASP pages

  1. #1

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    UK
    Posts
    10

    Passing objects from ASP pages

    I am trying to pass a dictionary object to a COM object from an ASP page. Is this possible?

  2. #2
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    Should be.

    Is there a specific problem?

    Try posting some code to look at...
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  3. #3
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

  4. #4
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277

    Exclamation

    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


  5. #5

    Thread Starter
    New Member
    Join Date
    Nov 2001
    Location
    UK
    Posts
    10
    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?

  6. #6
    Frenzied Member MrGTI's Avatar
    Join Date
    Oct 2000
    Location
    Ontario, Canada
    Posts
    1,277
    Here's what little brother found - Microsoft ByRef. Hope that helps.
    ~Peter


  7. #7
    Frenzied Member mlewis's Avatar
    Join Date
    Sep 2000
    Posts
    1,226
    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.
    M. Lewis
    Pi-Q Software
    How many mouse clicks does it take to cook breakfast?

    Blargh! I am dead!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width