Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / COM / April 2007



Tip: Looking for answers? Try searching our database.

Returning control while dll is runing

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Raj - 28 Apr 2007 01:56 GMT
Hello,

I am running an ActiveX dll from a HTML page.

When I invoke certain functions which takes long time for execution I get a
huge pause and the screen of IE white washed.

All I need is once I invoke the function return the control back to HTML.

Is there any workaround?

Thank you,

Regards,

Raj.
MikeD - 28 Apr 2007 12:51 GMT
> Hello,
>
[quoted text clipped - 6 lines]
>
> Is there any workaround?

My guess would be no. Presumably, this dll is written in VB?  Anyway,
ActiveX DLLs are run in-process, and are therefore synchronous (meaning
control is not returned until the call completes). If you can use ActiveX
EXEs in HTML pages, *perhaps* you can change your DLL into that and it'd do
what you want.  ActiveX EXEs are separate processes and therefore can be
asynchronous (the call would return immediately).

There might be other options too that are dependent on the environment (i.e.
the environment which the HTML page is opened in). That's probably a
question better asked in a different newsgroup.

Signature

Mike
Microsoft MVP Visual Basic

Tony Proctor - 29 Apr 2007 11:56 GMT
By default, a call to an ActiveX EXE would be no differently from an ActiveX
DLL Mike - the COM call would block until the call completes. However, it is
possible to make it asynchronous. See this recent post, and the surrounding
thread:
http://groups.google.ie/group/comp.lang.basic.visual.misc/msg/bd9a6784e22bcb95?hl=en&

   Tony Proctor

> > Hello,
> >
[quoted text clipped - 17 lines]
> the environment which the HTML page is opened in). That's probably a
> question better asked in a different newsgroup.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.