- Home /
Receive messages to C#
VB2010 can perform two programs to exchange messages souse code But I can not be performed at the UNITY Some people know how to fix it This is my SOUSE CODE
[DllImport("user32.dll", SetLastError = true, CharSet = CharSet.Auto)]
static extern uint RegisterWindowMessage(string lpString);
IntPtr HWND_BROADCAST = new IntPtr(0xffff);
uint MSG_SHOW = RegisterWindowMessage("Show Message");
public Form1()
{
InitializeComponent();
}
protected void WndProc(ref Message m)
{
if (m.Msg == MSG_SHOW)
{
this.label1.Text = m.WParam.ToString();
}
base.WndProc(ref m);
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
How to pass values between networked players? 1 Answer