Click here to Skip to main content
15,921,841 members
Home / Discussions / C#
   

C#

 
GeneralRe: IQueryCancelAutoPlay Pin
Daniel Turini8-Dec-04 8:00
Daniel Turini8-Dec-04 8:00 
GeneralRe: IQueryCancelAutoPlay Pin
Heath Stewart8-Dec-04 8:07
protectorHeath Stewart8-Dec-04 8:07 
Questionhow make a mirror printing in c# Pin
bigmega7-Dec-04 17:27
bigmega7-Dec-04 17:27 
AnswerRe: how make a mirror printing in c# Pin
Christian Graus7-Dec-04 18:33
protectorChristian Graus7-Dec-04 18:33 
GeneralProblem with SendMessage() using P/Invoke Pin
Liu Shuai7-Dec-04 17:15
Liu Shuai7-Dec-04 17:15 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Daniel Turini7-Dec-04 20:02
Daniel Turini7-Dec-04 20:02 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 3:35
Liu Shuai8-Dec-04 3:35 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Daniel Turini8-Dec-04 4:00
Daniel Turini8-Dec-04 4:00 
Liu Shuai wrote:
1. SendMessage in-process is giving me the same (invalid) result
2. WM_SETTEXT works...

I asked you to do those tests to isolate if the problem was on the code that was sending the message or receiving the message. Now, we can see that the problem clearly seems to be in the part receiving the message.
Re-reading your post I notice that you're using a WM_USER message to send the string. This is not a good practice, and even the .NET framework can be using the same message, and that's why you are getting a bogus result. Another thing to try is calling RegisterWindowMessage with the same string - I use a GUID to assure that it's unique - on both ends (sender and receiver) and see if this time it works.


Yes, even I am blogging now!
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 5:22
Liu Shuai8-Dec-04 5:22 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Mike Dimmick8-Dec-04 0:10
Mike Dimmick8-Dec-04 0:10 
GeneralRe: Problem with SendMessage() using P/Invoke Pin
Liu Shuai8-Dec-04 4:09
Liu Shuai8-Dec-04 4:09 
GeneralHELP ME!!! Pin
Jacob Graves7-Dec-04 13:44
Jacob Graves7-Dec-04 13:44 
GeneralRe: HELP ME!!! Pin
Heath Stewart7-Dec-04 14:51
protectorHeath Stewart7-Dec-04 14:51 
GeneralSorry.. Pin
Jacob Graves7-Dec-04 15:10
Jacob Graves7-Dec-04 15:10 
GeneralRe: Sorry.. Pin
Jitesh Patil7-Dec-04 21:53
Jitesh Patil7-Dec-04 21:53 
GeneralRe: Sorry.. Pin
Heath Stewart8-Dec-04 5:51
protectorHeath Stewart8-Dec-04 5:51 
GeneralThank you! Pin
Jacob Graves8-Dec-04 7:29
Jacob Graves8-Dec-04 7:29 
GeneralRe: Installing my program on other computers... Pin
Skynyrd7-Dec-04 13:21
Skynyrd7-Dec-04 13:21 
GeneralRe: Installing my program on other computers... Pin
Heath Stewart7-Dec-04 13:32
protectorHeath Stewart7-Dec-04 13:32 
GeneralRe: Installing my program on other computers... Pin
Moochie57-Dec-04 13:36
Moochie57-Dec-04 13:36 
GeneralRe: Installing my program on other computers... Pin
exhaulted7-Dec-04 23:18
exhaulted7-Dec-04 23:18 
GeneralRe: Installing my program on other computers... Pin
Daniel Turini8-Dec-04 1:38
Daniel Turini8-Dec-04 1:38 
GeneralInstalling my program on other computers... Pin
Moochie57-Dec-04 13:14
Moochie57-Dec-04 13:14 
QuestionCombobox in C# : how to add for each Item a Tag ? Pin
youssef7-Dec-04 12:42
youssef7-Dec-04 12:42 
AnswerRe: Combobox in C# : how to add for each Item a Tag ? Pin
Skynyrd7-Dec-04 13:29
Skynyrd7-Dec-04 13:29 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.