|
Hello Everybody:
Lately I'm getting a windows message box that it says:
"Server Busy
This action cannot be competed because the other program is busy. Choose 'Switch To' to activate the busy program and correct the probelm"
Then it has 3 buttons, one says Switch To, the other one says Retry and the last one is a disabled button that says Cancel.
This Server Busy message box doesn't show up constantly. It's happening when I call another application using another one. The code that I'm noticing the problem looks like this:
<br />
COleException *e = new COleException;<br />
CLSID clsid;<br />
<br />
if (CLSIDFromProgID(OLESTR("OtherApp"), &clsid) != NOERROR)<br />
{<br />
AfxMessageBox(IDS_ERR_LOOKUP_PROGID);<br />
return;<br />
}<br />
<br />
if (m_otherApp == NULL)<br />
{<br />
m_otherApp = new IOtherApp();<br />
if (m_otherApp == NULL) return;<br />
}<br />
<br />
if (m_otherApp->m_lpDispatch == NULL)<br />
{<br />
try<br />
{<br />
BOOL sts = m_otherApp->CreateDispatch(clsid, e);<br />
<br />
if (!sts)<br />
{<br />
throw e;<br />
}<br />
}
Is there a way to make that "Server Busy" message box go away? Anything is more than welcome.
Best regards,
Luis E. Cuadrado
)
|
|
|
|
|
Okay since I am using VC++ to develope this I will post this here
I am using the opacity feature to fade in and out my forms but I am wondering?!? Nayone know if fading can be done in directX and where I could find an example.
Thanks code brothers...
Lata.
Only nmap knows the way. The rabbit hole is never known only once is it all alone. To tell and know is the only way and find one of millions tomorrowday. You know it!
|
|
|
|
|
Hi
im trying to do a custom caption painter here , and have some problems with changing the height of the caption.
im intercepting the following messages:
WM_NCPAINT
even if i paint the caption here , the standard caption still shows when the window is animated
how should i make it render the caption when the window is minimizing / maximizing??
WM_NCACTIVATE
//occurs when the window is activated/deactivated so i guess it would be enough to just
draw the caption with the correct state when i get this mess , right??
WM_NCHITTEST
//dont really do much with this now
WM_NCCALCSIZE
i can change the size of the client area here , but how do i move the menu of the form?
it is still located directly under the caption , so if i would like to paint a larger caption
i would have to move the menu somehow, how should i do that??
and how could i move the min/max/close buttons?
//Roger Johansson
|
|
|
|
|
Take a look at this article customcaption.asp[^]
Roger Allen
Sonork 100.10016
This is a multiple choice question, choose wisely
Why did the hedgehog cross the road?
A: To show he had guts?
B: To see his flat mate?
|
|
|
|
|
Thanx , that was actually the first article i read about this kind of stuff.
i just cant figure out by that code , what decides where the menu will be located (????)
im actually doing this in c# , but i figure this would be a better forum since there are more c++ coders doing this kind of things than c# coders (i guess)
if i only resize the client area when i recive the WM_NCCALCSIZE
the caption actually get the size i want , and i can grab it and move it so i guess it works that far atleast.
but when i do this , i get no menu at all (i have a main menu on the form)
but if i call the default wndproc after i change the client size , the menu appears ,
the caption 'appears' to be the same size as i set it to be , but i can only grab the upper part of it and under that , the menu appears , kinda inside my caption.
so is there anyone who knows what decides the placement of the menu?
//Roger
|
|
|
|
|
What's Digital Signatur File Format(.p7s). How to read signature information from the file. pls guide me
Thanks in advance
Murali
|
|
|
|
|
hi for all....
i want to know what is the code to make program to send
message by using protocol " smtp "...
i want to make program can send message to some mails how i can do that????
(what the classes i must use???
.....etc);
thanks
amaal
|
|
|
|
|
;Phi,
see in cp at internet or network and you will see mnay examples on it...
cheers
Himanshu
|
|
|
|
|
Search the net for a program called blat. It usually comes with the source code and is fairly easy to follow. I used it as a guide for our SMTP implementation. Straight Win32 API.
Systems AXIS Ltd - Software for Business ...
|
|
|
|
|
Hi all,
Does anyone know of any GOOD docs on the Windows Accessibility API (other than that of msdn's)...?
I would like to retrieve the text from any text-based application just by clicking the text or by hovering the text with the mouse pointer. Pretty much like www.atomica.com.
Does anyone know how to accomplish this?
/Tommy
|
|
|
|
|
How do I disable the restore button in the title bar at start ?
|
|
|
|
|
ModifyStyle( SW_MAXIMIZEBOX, 0); for MFC apps, otherwise
SetWindowLong(hwnd, GWL_STYLE, GetWindowLong(hwnd, GWL_STYLE) &<br />
~WS_MAXIMIZEBOX);
hope this helps
modified 12-Sep-18 21:01pm.
|
|
|
|
|
I don´t get it to work
void CMyView::OnInitialUpdate()
{
m_pSet = &GetDocument()->m_medlemSet;
CRecordView::OnInitialUpdate();
GetParentFrame()->RecalcLayout();
ResizeParentToFit();
ModifyStyle( SW_MAXIMIZEBOX, 0);
...
Error:
error C2065: 'SW_MAXIMIZEBOX' : undeclared identifier
did I do something stupid
- Tom
|
|
|
|
|
Try WS_MAXIMIZEBOX
|
|
|
|
|
Oops
modified 12-Sep-18 21:01pm.
|
|
|
|
|
yes i figure that out, but I won´t get it to work anyway. The button won´t go away. Should I place the code in OnInitalUpdate(...) or in OnCreate(...), and besides I wanted the user of my application not be able to use the restore size button.
- Tom
|
|
|
|
|
I got it to work when i changed the order of the parameters:
//ModifyStyle(1, WS_MINIMIZEBOX);
ModifyStyle(WS_MINIMIZEBOX,0);
Thanks a lot !!
Is it correct that the application should go fullscreen when running the WS_MAXIMIZEBOX?
|
|
|
|
|
So now I got it, the right one should be:
ModifyStyle(0,WS_MAXIMIZEBOX,0);
Thanks for all
|
|
|
|
|
First of all, if you use the document-view-architecture, place ModifyStyle inside your CMainFrame class, not the CView. And then try using OnCreate rather than OnInitial Update (even if that shouldn't matter).
|
|
|
|
|
Dear friends,
I am writing an application i which there is a need to resolve a given domain and get the resultant IP. For this purpose i am using the traditional gethostbyname() technique.
But the problem is that on some LANs the gethostbyname() call fails. On such networks, the ping call on command prompt also fails. But very strange that Internet explorer and MSN messenger works normally. How can i programatically resolve domain on such networks ...
|
|
|
|
|
confused:can anyone point out soem tutorial on telephone to application control..sort of..like I dial a number and the number is recognized by the application running on my server and it responds accordingly..sort of answering machine with some intelligence..
any ideas and any tutorials are welcome..please..
thanks in advance..
cheers..
Himanshu
|
|
|
|
|
TAPI is pretty simple to learn providing your TSPI supports all the necessary functionality.
The platform sdk has some excellent samples for using TAPI. It also used to have something called WebTelephony Engine which provided some great functionality in conjuction with IIS.
The Speech SDK has links into TAPI very nicely and might be worth investigating.
The following link is a good starting point
http://www.sellsbrothers.com/writing/telprog/[^]
Michael
The avalanche has started, it's too late for the pebbles to vote.
|
|
|
|
|
I have a editbox with a date: DDX_FieldDate(pDX, IDC_PAY_DATE, m_pSet->theDate, m_pSet) . If the date was a string then i could check if the editbox was empty with the code if(myVariable=="") , but how do I do in the case with the date? The variable for the date is defined as TIMESTAMP_STRUCT theDate .
|
|
|
|
|
You can make a Control-variable for your Edit-Box (using the Code-wizard) and then call GetWindowText() on it.
My opinions may have changed, but not the fact that I am right.
|
|
|
|
|
Thanks jhwurmbach!
That was a really simple solution, and simple is the keyword for me
jhwurmbach wrote:
My opinions may have changed, but not the fact that I am right.
|
|
|
|