How to Implement Solution to "Server Busy" Message

The following solution was posted in response to a question about suppressing the "Servery Busy" message.  How is this solution implemented?  Can I script it in VBA?
Use the following:
COleMessageFilter* pFlt = AfxOleGetMessageFilter( );
pFlt->EnableBusyDialog(FALSE); // turn of the dialog completely


pFlt->SetRetryReply( your_retry_value);
pFlt->SetMessagePendingDelay ( your_timeout_value);
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Hi pottsja,

I do not really understand what you mean with '... script it in VBA?'

That dialog IMO is a MFC internal created dialog, so it only appears in MFC applications. With the mentioned code you can modifiy the behavior of that dialog from within the MFC application. IMO there's no chance to control this from outside of the application.

pottsjaAuthor Commented:

I'm getting the error in an application (call it "App X") that runs a VB script which opens a form in Microsoft Word.  The form has FILLIN fields that prompt the user to enter information when it's opened.  When the user delays entering data more than a few seconds App X displays the "server Busy" message.  My understanding from the application's developer is that this is related to Microsoft COM.

I didn't understand the code in the proposed solution, and I was wondering exactly where to enter this code.  Does it go in a .DLL?  Windows registry?  Can I add it to the VB script that App X is running?  I just need to know how to implement this.
The only possibility to do this is by placing the code in the "App X"-source, so only the developers of that application can do it ...


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
pottsjaAuthor Commented:
Thank you for your quick response; I'll talk to the developers.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
System Programming

From novice to tech pro — start learning today.