|
Post what? Post your entire problem? And what do you expect in turn? Like - someone else should do your work? That won't happen.
You must do your work and you may ask specific questions which would help you to solve your problem.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
please never delete your comments....
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
it wasn't worth it, so it's really better deleted, trust me !
|
|
|
|
|
i trusted you.. and who is A** hole have given me one vote??
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
oops, i reached every messages containing [Message Deleted] and did not see you were in. sorry bro... fixed now.
|
|
|
|
|
toxcct wrote: oops, i reached every messages containing [Message Deleted] and did not see you were in. sorry bro... fixed now.
sorry buddy!
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Don't worry Alok, I've balanced it with my 5 vote.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
thanks brother
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hi ,
i want to post a message from one application to another So I used
::PostMessage(hWnd,WM_USER+0x011A,0,0);
But this is happning good in debug mode but not in release mode.
I am using FindWindow to get window handle.
|
|
|
|
|
(1) Debug vs Release good old links [^], [^].
(2) To send inter-applications messages use RegisterWindowMessage [^].
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke
|
|
|
|
|
pther wrote: WM_USER+0x011A
WM_USER is now obselete, application should use WM_APP or use registered window message
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You/codeProject$$>
|
|
|
|
|
|
Randor wrote: Can you clarify what your saying here and give reference?
Common Knowledge - and CK should never require a reference...!
The difference between using WM_USER and WM_APP is that some of the Win32 common controls use messages in the WM_USER + some value range. For example, the Toolbar control uses at least WM_USER + 1 to WM_USER + 69 .
WM_USER starts at 0x0400 while WM_APP starts at 0x8000 . No standard controls use any messages in the WM_APP+ range - this is a Microsoft "standard" for lack of a better word. The range 0xC000 to 0xFFFF is used BY RegisterWindowMessage(...) so you should also avoid that range - there could be applications that look at a message's value (or what range it falls into) to determine how it should be processed (or not).
Need a custom message value, and do not want to waste a registered window message on it? Then use WM_APP as the base value for the message.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
I am not the original poster. I know the difference between the custom ranged messages, but I am asking for clarification of WM_USER being obsolete?
-David Delaune
|
|
|
|
|
Randor wrote: [...] but I am asking for clarification of WM_USER being obsolete?
Not really obsolete, but not appropriate for inter-application exchange - right from MS documentation:
0 through WM_USER – 1 Messages reserved for use by the system.
WM_USER through 0x7FFF Integer messages for use by private window classes.
WM_APP through 0xBFFF Messages available for use by applications.
0xC000 through 0xFFFF String messages for use by applications.
Greater than 0xFFFF Reserved by the system for future use. MS Sez: Message numbers in the second range (WM_USER through 0x7FFF) can be defined and used by an application to send messages within a private window class. These values cannot be used to define messages that are meaningful throughout an application, because some predefined window classes already define values in this range. For example, predefined control classes such as BUTTON, EDIT, LISTBOX, and COMBOBOX may use these values. Messages in this range should not be sent to other applications unless the applications have been designed to exchange messages and to attach the same meaning to the message numbers.
Message numbers in the third range (0x8000 through 0xBFFF) are available for application to use as private messages. Message in this range do not conflict with system messages.
So! While you CAN use WM_USER as a base for custom inter-application messages, it is implied, if not recommended, that you use WM_APP .
This is from the VC++6.0 docs, BTW - 7+ years ago qualifies as common knowledge in my book.
Peace!
-=- James Please rate this message - let me know if I helped or not!<hr></hr> If you think it costs a lot to do it right, just wait until you find out how much it costs to do it wrong! Remember that Professional Driver on Closed Course does not mean your Dumb Ass on a Public Road! See DeleteFXPFiles
|
|
|
|
|
James R. Twine wrote: Not really obsolete
Thanks,
Thats all I was asking.
James R. Twine wrote: So! While you CAN use WM_USER as a base for custom inter-application messages, it is implied, if not recommended, that you use WM_APP.
This is from the VC++6.0 docs, BTW - 7+ years ago qualifies as common knowledge in my book.
Actually it recommends 0xC000 through 0xFFFF for 'string' messages which are RegisterWindowMessage unique 'named' messages. It does not recommend WM_APP for inter-process messages.
http://msdn2.microsoft.com/en-us/library/ms644947(VS.85).aspx[^]
Anyway, you continue to give answers to questions that I have never asked. All I was asking is for clarification of WM_USER being deprecated.
Lets not continue this discussion any further.
Best Wishes,
-David Delaune
|
|
|
|
|
this might help http://msdn2.microsoft.com/en-us/library/ms644931(VS.85).aspx
|
|
|
|
|
The referenced page does not say anything about WM_USER being deprecated. Communicating with some of you CP guys seems difficult at times. I thought I asked a simple question, but perhaps its my fault for not wording it more correctly.
Forget I ever posted a response to your message. Lets not continue the discussion further.
Best Wishes,
-David Delaune
|
|
|
|
|
Cool down, Dave. You're one nice guy. I think rather his statement wasn't properly worded. He's one cool guy too, but he isn't a native English speaker and probably meant to say what James said.
Nobody can give you wiser advice than yourself. - Cicero
.·´¯`·->Rajesh<-·´¯`·.
Codeproject.com: Visual C++ MVP
|
|
|
|
|
sorry brother, if you find my comment disturbing.. actually MSDN itself said that obselete the WM_USER message.. programmer must use WM_App for there app. see http://www.google.co.in/url?sa=t&ct=res&cd=2&url=http%3A%2F%2Fwww.codeproject.com%2FKB%2Fdialog%2Fmessagemgmt.aspx&ei=M23VR-LTCYqw6wOd4KjuBA&usg=AFQjCNGOy-JJOUzm0IcFD1QRhl-CIBjUgA&sig2=5dFoUmK6ihWxHsr24k9NZw
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
ThatsAlok wrote:
WM_USER is now obselete, application should use WM_APP or use registered window message
What gives you this idea? It's far from obsolete. It's intended for "use by private window classes" where as WM_APP is "available for use by applications".
Steve
|
|
|
|
|
Stephen Hewitt wrote: What gives you this idea? It's far from obsolete. It's intended for "use by private window classes" where as WM_APP is "available for use by applications".
right you say, but the guy who posted the original question is intended to use it for Inter process communication!
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
All this discussion on WM_USER/WM_APP is great, but what about the
reason it works in debug build but not in release build?
What's up with that?
Mark
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
Mark Salsbery wrote: All this discussion on WM_USER/WM_APP is great, but what about the
reason it works in debug build but not in release build?
generally main question lost between secondary question
"If it were machines, the pair_programming seem to work, but for humans it is pair_crackdown that seems to work! " - Nisamudheen
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow Never mind - my own stupidity is the source of every "problem" - Mixture
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Hello all,
I have made a dialog based application and i want to provide its title text at runtime i.e (when i click on exe then it should read a text file and should get dialog box title value)......
Can anybody please help me in doing this....
Thanks in advance....
|
|
|
|