|
-
Dec 16th, 2004, 11:58 AM
#1
Thread Starter
New Member
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
-
Dec 16th, 2004, 12:13 PM
#2
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
-
Jan 3rd, 2005, 06:59 PM
#3
Frenzied Member
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
-
Jan 4th, 2005, 10:00 PM
#4
Re: COM with ASP
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|