Message Handling

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jacek

    #1

    Message Handling

    Hello
    Could someone tell me how to handle a message in my C#
    application sent from other application written in MFC C++,
    The message is sent using:
    ::SendMessage( hWndCallback, nMessage, (WPARAM)DWORD,
    (LPARAM)char* );
    So what kind of event I should define in my application?
    Thanks in advance for Your help
    brgds
    Jacek
  • Miha Markic

    #2
    Re: Message Handling

    Hi Jacek,

    I think you should override WndProc method:
    protected override void WndProc(ref Message m)

    --
    Miha Markic - RightHand .NET consulting & software development
    miha at rthand com

    "Jacek" <anonymous@disc ussions.microso ft.com> wrote in message
    news:093e01c3b8 cb$cf1d4660$a50 1280a@phx.gbl.. .[color=blue]
    > Hello
    > Could someone tell me how to handle a message in my C#
    > application sent from other application written in MFC C++,
    > The message is sent using:
    > ::SendMessage( hWndCallback, nMessage, (WPARAM)DWORD,
    > (LPARAM)char* );
    > So what kind of event I should define in my application?
    > Thanks in advance for Your help
    > brgds
    > Jacek[/color]


    Comment

    • Jacek

      #3
      Re: Message Handling

      Hi
      That's it, Thank You very much
      brgds
      Jacek
      [color=blue]
      >-----Original Message-----
      >Hi Jacek,
      >
      >I think you should override WndProc method:
      >protected override void WndProc(ref Message m)
      >
      >--
      >Miha Markic - RightHand .NET consulting & software[/color]
      development[color=blue]
      >miha at rthand com
      >
      >"Jacek" <anonymous@disc ussions.microso ft.com> wrote in[/color]
      message[color=blue]
      >news:093e01c3b 8cb$cf1d4660$a5 01280a@phx.gbl. ..[color=green]
      >> Hello
      >> Could someone tell me how to handle a message in my C#
      >> application sent from other application written in MFC[/color][/color]
      C++,[color=blue][color=green]
      >> The message is sent using:
      >> ::SendMessage( hWndCallback, nMessage, (WPARAM)DWORD,
      >> (LPARAM)char* );
      >> So what kind of event I should define in my application?
      >> Thanks in advance for Your help
      >> brgds
      >> Jacek[/color]
      >
      >
      >.
      >[/color]

      Comment

      Working...