<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
  <channel>
    <title>'How to send a windows message from C# to C++ (MFC)?' Thread RSS Feed</title>
    <link>http://www.programmersheaven.com/</link>
    <description>Contains the latest posts from the thread 'How to send a windows message from C# to C++ (MFC)?' posted on the 'C++ MFC' forum at Programmer's Heaven.</description>
    <language>en</language>
    <copyright>Copyright 2013 Programmers Heaven</copyright>
    <pubDate>Sat, 18 May 2013 05:14:01 -0700</pubDate>
    <lastBuildDate>Sat, 18 May 2013 05:14:01 -0700</lastBuildDate>
    <generator>Argotic Syndication Framework 2007.3.0.1, http://www.codeplex.com/Argotic</generator>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <ttl>360</ttl>
    <image>
      <url>http://www.programmersheaven.com/images/ph.gif</url>
      <title>Programmers Heaven</title>
      <link>http://www.programmersheaven.com/</link>
      <width>88</width>
      <height>31</height>
    </image>
    <item>
      <title>How to send a windows message from C# to C++ (MFC)?</title>
      <link>http://www.programmersheaven.com/mb/mfc_coding/430710/430710/how-to-send-a-windows-message-from-c-to-c++-mfc/</link>
      <description>Hello mates,&lt;br /&gt;
&lt;br /&gt;
I'm trying to send a windowsmessage from an app in C# (Compact Frame) to another one in C++ (MFC), both of them in a PDA.&lt;br /&gt;
&lt;br /&gt;
In the receiver app (MFC) I realize that I receive the message but I can't read the string message, it shows a little square.&lt;br /&gt;
&lt;br /&gt;
This is the code of the Sender (C#)&lt;br /&gt;
&lt;br /&gt;
    &lt;pre class="sourcecode"&gt;OpenNETCF.Win32.Win32Window.SendMessage(hwndVal, typeMsgVal, intValue, stringMessage);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
And this is the code of the receiver (C++)&lt;br /&gt;
&lt;br /&gt;
    &lt;pre class="sourcecode"&gt;CString myStr = (CString) lParam;
    AfxMessageBox(myStr);&lt;/pre&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Thanks a lot in advance!&lt;br /&gt;</description>
      <guid isPermaLink="true">http://www.programmersheaven.com/mb/mfc_coding/430710/430710/how-to-send-a-windows-message-from-c-to-c++-mfc/</guid>
      <pubDate>Thu, 20 Dec 2012 02:32:48 -0700</pubDate>
      <category>C++ MFC</category>
    </item>
  </channel>
</rss>