Click here to Skip to main content
15,911,035 members
Home / Discussions / C#
   

C#

 
QuestionWhat protocol i have to adopt for reliable transmission? Pin
Rashid.Mahmood18-Dec-05 21:40
Rashid.Mahmood18-Dec-05 21:40 
AnswerRe: What protocol i have to adopt for reliable transmission? Pin
c#guy381119-Dec-05 7:31
c#guy381119-Dec-05 7:31 
AnswerRe: What protocol i have to adopt for reliable transmission? Pin
mcljava22-Dec-05 8:14
mcljava22-Dec-05 8:14 
QuestionC# app hosted in browser ? Pin
Christian Graus18-Dec-05 20:24
protectorChristian Graus18-Dec-05 20:24 
AnswerRe: C# app hosted in browser ? Pin
tarasn19-Dec-05 23:02
tarasn19-Dec-05 23:02 
QuestionTypecconverter for DataGrid and ListBox Pin
microsoc18-Dec-05 20:11
microsoc18-Dec-05 20:11 
Questionre-arrange items in a listbox or list view Pin
Agyeman18-Dec-05 19:47
Agyeman18-Dec-05 19:47 
Questioncommunication between c# and c++ through windows messaging Pin
Roy K18-Dec-05 19:39
Roy K18-Dec-05 19:39 
Hello,
I am writing two programs, one in c++ and the other in c# and am using windows messaging for communication between them. As of now, the c++ program successfully sends a message to the c# program and the c# program receives it just fine. I need the c# program to send a reply message to the c++ program after it finishes its tasks. I have ran into some problems. First off, here is the code in c# that I am using to define the SendMessage function...

DllImport("user32.dll", CharSet=CharSet.Auto, SetLastError=true)]
public static extern IntPtr SendMessage(IntPtr hwnd, uint Msg, int wParam, int lParam);

I did some research on this dll import and found multiple variations, here is one...

[DllImport("user32.dll")]
public static extern int SendMessage(int hWnd, uint Msg, int wParam, int lParam);

does anyone know the correct variables to used so a c++ program will accept the message.
further more...

I tried both declarations of SendMessage and the c# program still did not send a reply message. Note, I used spyxx.exe to find this out. I saw that the message from the c++ program was received but no reply was sent out by the c# program.

here is how I am sending the reply message in c# program...

Form1.SendMessage( Form1.FindWindow("ConsoleWindowClass", "camController"),
REPLY_PICTURE_READY,
0,
0);

I would greatly appreciate input on this, thanks
Roy K
Questionbooks or websites for C# Pin
kal13na1318-Dec-05 18:55
kal13na1318-Dec-05 18:55 
AnswerRe: books or websites for C# Pin
enjoycrack18-Dec-05 18:58
enjoycrack18-Dec-05 18:58 
AnswerRe: books or websites for C# Pin
Drew McGhie19-Dec-05 7:48
Drew McGhie19-Dec-05 7:48 
QuestionXML--Reading Nodes.... Pin
Mahi.Ragava18-Dec-05 18:51
Mahi.Ragava18-Dec-05 18:51 
AnswerRe: XML--Reading Nodes.... Pin
Vikram A Punathambekar18-Dec-05 22:31
Vikram A Punathambekar18-Dec-05 22:31 
GeneralRe: XML--Reading Nodes.... Pin
Mahi.Ragava18-Dec-05 23:18
Mahi.Ragava18-Dec-05 23:18 
GeneralRe: XML--Reading Nodes.... Pin
S. Senthil Kumar19-Dec-05 0:04
S. Senthil Kumar19-Dec-05 0:04 
QuestionMDI parent and panels Pin
madhusri18-Dec-05 18:38
madhusri18-Dec-05 18:38 
AnswerRe: MDI parent and panels Pin
AETaylor18-Dec-05 19:28
AETaylor18-Dec-05 19:28 
GeneralRe: MDI parent and panels Pin
madhusri18-Dec-05 19:39
madhusri18-Dec-05 19:39 
GeneralRe: MDI parent and panels Pin
AETaylor18-Dec-05 19:45
AETaylor18-Dec-05 19:45 
GeneralRe: MDI parent and panels Pin
madhusri18-Dec-05 21:33
madhusri18-Dec-05 21:33 
GeneralRe: MDI parent and panels Pin
AETaylor19-Dec-05 19:15
AETaylor19-Dec-05 19:15 
QuestionCreate File Format Pin
kenexcelon18-Dec-05 16:58
kenexcelon18-Dec-05 16:58 
AnswerRe: Create File Format Pin
S. Senthil Kumar19-Dec-05 0:25
S. Senthil Kumar19-Dec-05 0:25 
GeneralRe: Create File Format Pin
kenexcelon19-Dec-05 4:03
kenexcelon19-Dec-05 4:03 
GeneralRe: Create File Format Pin
kenexcelon19-Dec-05 5:34
kenexcelon19-Dec-05 5:34 

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.