Results 1 to 4 of 4

Thread: COM with ASP

  1. #1

    Thread Starter
    New Member
    Join Date
    Sep 2003
    Posts
    3

    COM with ASP

    Hi everyone,

    i m not sure should i be post it here. so i...

    i did a COM with an Win32 API functions call (FindWindow & SendMessage). it worked when the DLL is bind to a desktop app written in VB but it refuses to work in ASP. Will anyone help me on this, please.

    Thanks in advance

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: COM with ASP

    I'm going to go out on a limb and mention that you are more likely to get help if you post the portion of the code in question. Does us no good to offer suggestions if we don't know what you have or haven't tried.

    Tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3
    Frenzied Member Mike Hildner's Avatar
    Join Date
    Jul 2002
    Location
    Des Moines, NM
    Posts
    1,690

    Re: COM with ASP

    This may not relate to your problem at all, but it smells familiar, so I thought I'd post.

    I ran into this with a .NET web service, and the problem is that anything that uses COM must be run in a single threaded apartment model. Not sure about "classic" ASP, but in ASP.NET, there is no way to tell your main thread to use STA.

    The work around is to launch a new thread with marked as STA. I'm pretty sure this was discussed, at least a little, on this forum, maybe search around and see what you can find.

    Mike

  4. #4
    PowerPoster Dave Sell's Avatar
    Join Date
    Mar 2004
    Location
    /dev/null
    Posts
    2,961

    Re: COM with ASP

    Quote Originally Posted by duniaseng
    Hi everyone,

    i m not sure should i be post it here. so i...

    i did a COM with an Win32 API functions call (FindWindow & SendMessage). it worked when the DLL is bind to a desktop app written in VB but it refuses to work in ASP. Will anyone help me on this, please.

    Thanks in advance
    It is entirely possible that supporting DLLs that are needed by your COM object exist on your development machine but not on your web server.

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