<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Passing Character Strings to WIN32 in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949998#M19268</link>
    <description>Hi, &lt;BR /&gt; &lt;BR /&gt;This is what you need: &lt;BR /&gt;&lt;PRE&gt;lreturn = SendMessage(myHWND, SB_SETTEXT, SB_SIMPLEID, LPARAM)&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;For more info see &lt;A href="http://msdn.microsoft.com/library/psdk/shellcc/commctls/Status/Messages/SB_SETTEXT.htm" target="_blank"&gt;http://msdn.microsoft.com/library/psdk/shellcc/commctls/Status/Messages/SB_SETTEXT.htm&lt;/A&gt;. &lt;BR /&gt; &lt;BR /&gt;Oh, and since I had trouble finding it, SB_SIMPLEID is &lt;PRE&gt;integer, parameter :: SB_SIMPLEID = z'FF'&lt;/PRE&gt; &lt;BR /&gt;hth, &lt;BR /&gt;John</description>
    <pubDate>Fri, 04 May 2001 05:46:48 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-05-04T05:46:48Z</dc:date>
    <item>
      <title>Passing Character Strings to WIN32</title>
      <link>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949997#M19267</link>
      <description>I have a project that has a VB GUI and a FORTRAN DLL.  I want to use SendMessage with SB_SETTEXT message to send some text to a status block in the VB GUI.  I have tried all sorts of combinations of %REF, %VAL, etc without success.  The following is an excerpt. Can anyone suggest what I may be missing.  By the way the INTERFACE block declares all four arguments as INTEGER and invokes STDCALL. I have been successful using a SB_SIMPLE message that passes a logical*4 flag--so the VB is passing the correct HWND. The issue appears how to get the string passed as the specified INTEGER variable.    &lt;BR /&gt;  &lt;BR /&gt;       Integer*4 Function MYMESSAGE(myHWND)  &lt;BR /&gt;CDEC$ ATTRIBUTES DLLEXPORT :: MYMESSAGE  &lt;BR /&gt;CDEC$ ATTRIBUTES ALIAS: 'MYMESSAGEA' :: MYMESSAGE  &lt;BR /&gt;      USE DFWIN  &lt;BR /&gt;      INTEGER*4 myHWND, MSG, LPARAM, WPARAM,lreturn  &lt;BR /&gt;      Character*15 lstring  &lt;BR /&gt;      DATA lstring/'This is a test'C/  &lt;BR /&gt;      MSG=WM_USER+1  &lt;BR /&gt;      LPARAM=LOC(lstring)  &lt;BR /&gt;      WPARAM=0  &lt;BR /&gt;      lreturn = SendMessage(myHWND,MSG,WPARAM,LPARAM)  &lt;BR /&gt;      lreturn = UpdateWindow(myHWND)  &lt;BR /&gt;      mymessage = lreturn  &lt;BR /&gt;      RETURN  &lt;BR /&gt;      END FUNCTION MYMESSAGE &lt;BR /&gt; &lt;BR /&gt;Thank you</description>
      <pubDate>Thu, 03 May 2001 12:44:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949997#M19267</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-03T12:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Character Strings to WIN32</title>
      <link>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949998#M19268</link>
      <description>Hi, &lt;BR /&gt; &lt;BR /&gt;This is what you need: &lt;BR /&gt;&lt;PRE&gt;lreturn = SendMessage(myHWND, SB_SETTEXT, SB_SIMPLEID, LPARAM)&lt;/PRE&gt; &lt;BR /&gt; &lt;BR /&gt;For more info see &lt;A href="http://msdn.microsoft.com/library/psdk/shellcc/commctls/Status/Messages/SB_SETTEXT.htm" target="_blank"&gt;http://msdn.microsoft.com/library/psdk/shellcc/commctls/Status/Messages/SB_SETTEXT.htm&lt;/A&gt;. &lt;BR /&gt; &lt;BR /&gt;Oh, and since I had trouble finding it, SB_SIMPLEID is &lt;PRE&gt;integer, parameter :: SB_SIMPLEID = z'FF'&lt;/PRE&gt; &lt;BR /&gt;hth, &lt;BR /&gt;John</description>
      <pubDate>Fri, 04 May 2001 05:46:48 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949998#M19268</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-04T05:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Character Strings to WIN32</title>
      <link>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949999#M19269</link>
      <description>Hi &lt;BR /&gt;Thank you for your response.  I was still unsuccessful. Since I have been able to do actions that happen immediately (e.g., SB_SIMPLE, PBM_SETBKCOLOR) but text and the progress bar doesn't appear, I've come to the realization that the problem has to do with the controls not repainting.   &lt;BR /&gt;I've been able to accomplish what I needed through the use of callbacks passed to the DLL. &lt;BR /&gt;Thanks again for your help</description>
      <pubDate>Fri, 04 May 2001 12:39:38 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/949999#M19269</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-04T12:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Passing Character Strings to WIN32</title>
      <link>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/950000#M19270</link>
      <description>Hi, &lt;BR /&gt; &lt;BR /&gt;It worked for me in a test.  Oh well, glad you have what you needed to get done. :-) &lt;BR /&gt; &lt;BR /&gt;-John</description>
      <pubDate>Fri, 04 May 2001 13:37:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/Passing-Character-Strings-to-WIN32/m-p/950000#M19270</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-05-04T13:37:09Z</dc:date>
    </item>
  </channel>
</rss>

