Increase the window message priority
-
I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN
-
I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN
Hi, I think you don't need an increased priority, you only need a DLL without a deadlock! Or if you havn't a deadlock, you need multithreading. Your problem is, that your application-main-thread can't process the message-loop, if he is running (and blocking) at the DLL. HTH Frank
-
I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN
helpcode wrote:
en i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me
.. actually your main thread is calling the Function Thread, which seems to performing long function.. thats why it making the main thread hung!.. so better you try MultiThreading program! forĀ that you have to implement some callback mechanism for same!
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and You
-
I have an application which calls the functions of a DLL. If control goes to that DLL i can not maximize my application. it simply hangs. then i need to END-TASK the application. Here i want to increase the priority of SC_MAXIMIZE message. How can i do it? please help me JITEEN
The UI looks hung because messages have to actually be processed by the UI thread. While the thread is running code in the DLL, it's not processing messages in the queue. Changing to a multi-threaded design is often the best way to solve this problem.
--Mike-- Visual C++ MVP :cool: LINKS~! Ericahist | PimpFish | CP SearchBar v3.0 | C++ Forum FAQ
-
Hi, I think you don't need an increased priority, you only need a DLL without a deadlock! Or if you havn't a deadlock, you need multithreading. Your problem is, that your application-main-thread can't process the message-loop, if he is running (and blocking) at the DLL. HTH Frank