concerning PostMessage.....
-
hello everyone!..... i am facing a prob!.....:confused::confused::confused::confused::confused: i want to sent a CString (in the WPARAM) by SendMessage() to an another running application..... i am able to send the message to the other application,but when i try to get back the CString from the WPARAM i am getting a junk value! why is that so?.....is it becoz the pointer address that i am sending to the other application cannot access it?.....is there anyway where by which i can send the CString and get it on the other application?:confused: thanx for ur time!;) cheerz..... "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
hello everyone!..... i am facing a prob!.....:confused::confused::confused::confused::confused: i want to sent a CString (in the WPARAM) by SendMessage() to an another running application..... i am able to send the message to the other application,but when i try to get back the CString from the WPARAM i am getting a junk value! why is that so?.....is it becoz the pointer address that i am sending to the other application cannot access it?.....is there anyway where by which i can send the CString and get it on the other application?:confused: thanx for ur time!;) cheerz..... "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
You May need to use PIPE, MailSlot, Socket, DDE for interprocess communications.. Try this also. 1. Create a Private clipboard and place the message 2. Send a message to the another application 3. In the another app, Read the data from the clipboard and clear the clipboard Might have problem!!! in compatiblity or security reason.. " Action without vision is only passing time, Vision without action is merely day dreaming, But vision with action can change the world " - Words from Nelson Mandela Thanks & Regards, Gopalakrishnan
-
hello everyone!..... i am facing a prob!.....:confused::confused::confused::confused::confused: i want to sent a CString (in the WPARAM) by SendMessage() to an another running application..... i am able to send the message to the other application,but when i try to get back the CString from the WPARAM i am getting a junk value! why is that so?.....is it becoz the pointer address that i am sending to the other application cannot access it?.....is there anyway where by which i can send the CString and get it on the other application?:confused: thanx for ur time!;) cheerz..... "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
thanx all for the replies!..... but still i cant seem to get it right!..... by the way sir!.....i have my own user defined message,i would like to send the CString data in the WPARAM!.....do u seem to have an idea? is it becoz i am sending this to an another executable taht i am getting junk values? "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
thanx all for the replies!..... but still i cant seem to get it right!..... by the way sir!.....i have my own user defined message,i would like to send the CString data in the WPARAM!.....do u seem to have an idea? is it becoz i am sending this to an another executable taht i am getting junk values? "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
-
thanx all for the replies!..... but still i cant seem to get it right!..... by the way sir!.....i have my own user defined message,i would like to send the CString data in the WPARAM!.....do u seem to have an idea? is it becoz i am sending this to an another executable taht i am getting junk values? "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13
rateep wrote: .i have my own user defined message,i would like to send the CString data in the WPARAM!.....do u seem to have an idea? You can't send the CString data through PostMessage/SendMessage to some other application.. because CString Memory/Data is local to that application. Now Better way TO SEND String data across the process boundry would be WM_COPYDATA as told by Mr. Ravi..., now you still insist to send data string data using Message you have to allocate global memory for same send the address through message api..
"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
-
rateep wrote: .i have my own user defined message,i would like to send the CString data in the WPARAM!.....do u seem to have an idea? You can't send the CString data through PostMessage/SendMessage to some other application.. because CString Memory/Data is local to that application. Now Better way TO SEND String data across the process boundry would be WM_COPYDATA as told by Mr. Ravi..., now you still insist to send data string data using Message you have to allocate global memory for same send the address through message api..
"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
tahnk u all!!!!:-D cheerz!:-D "faith, hope, love remain, these three.....; but the greatest of these is love" -1 Corinthians 13:13