<?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: Create List-View Control? in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799065#M36757</link>
    <description>&lt;DIV&gt;I figured out my problem is the comctrl32 dll. It's not loading up properly before I try to create the List-View Control.&lt;/DIV&gt;
&lt;DIV&gt;TYPE (T_INITCOMMONCONTROLSEX) iccex&lt;BR /&gt;iccex%dwSize = sizeof(iccex)&lt;BR /&gt;iccex%dwICC = ICC_LISTVIEW_CLASSES&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;NOW comctl32.f90 lists two ways to preloading the necassary com dll&lt;/DIV&gt;
&lt;DIV&gt;1) SUBROUTINE InitCommonControls&lt;/DIV&gt;
&lt;DIV&gt;2) FUNCTION InitCommonControlsEx&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I can't get either subroutine or function to work? It will say unresolved external _InitCommonControls?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;So i try the following and get it to compile subing in random numbers for ??? until it compiles. By the way is there a better way to get the ??? number besides random guessing?I'm guessing it hase something to do with the size of the variables passed in and returned?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_InitCommonControls@???'" target="_blank"&gt;'_InitCommonControls@???'&lt;/A&gt; :: InitCommonControls&lt;/DIV&gt;
&lt;DIV&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_InitCommonControlsEx@???'" target="_blank"&gt;'_InitCommonControlsEx@???'&lt;/A&gt; :: InitCommonControlsEx&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Now when it does finally compile, the program crashes right away and still says com module not found, but when I compile I dolink against the com dll by adding /link ComCtl32.Lib to ifort?&lt;/DIV&gt;</description>
    <pubDate>Tue, 21 Sep 2004 00:15:09 GMT</pubDate>
    <dc:creator>intelandmicrosoft</dc:creator>
    <dc:date>2004-09-21T00:15:09Z</dc:date>
    <item>
      <title>Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799061#M36753</link>
      <description>&lt;DIV&gt;Could someone give me an example of how to create a list-view control? Here is what I have so far which does not work. This function is suppose to create a list view control and return it's handle. I plan on putting it inWM_CREATE.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;INTEGER FUNCTION CreateListView(hWnd)&lt;BR /&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_WinMain@16'" target="_blank"&gt;'_WinMain@16'&lt;/A&gt; :: WinMain&lt;BR /&gt;USE IFWIN&lt;BR /&gt;INTEGER hWnd&lt;BR /&gt;INTEGERiRet&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;type (T_RECT) rcl&lt;BR /&gt;type (T_INITCOMMONCONTROLSEX) iccex&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;iccex%dwSize = sizeof(iccex)&lt;BR /&gt;iccex%dwICC = ICC_LISTVIEW_CLASSES&lt;BR /&gt;iRet= InitCommonControlsEx(iccex)&lt;/DIV&gt;
&lt;DIV&gt;iRet = GetClientRect(hWnd, rcl)&lt;/DIV&gt;
&lt;DIV&gt;&lt;BR /&gt;CreateListView= CreateWindow (WC_LISTVIEW, &amp;amp;&lt;BR /&gt;"", &amp;amp;&lt;BR /&gt;IOR(IOR(IOR(WS_VISIBLE, LVS_REPORT), &amp;amp;&lt;BR /&gt;LVS_EDITLABELS), WS_CHILD), &amp;amp;&lt;BR /&gt;0, &amp;amp;&lt;BR /&gt;0, &amp;amp;&lt;BR /&gt;rcl%right - rcl%left, &amp;amp;&lt;BR /&gt;rcl%bottom - rcl%top, &amp;amp;&lt;BR /&gt;hWnd, &amp;amp;&lt;BR /&gt;NULL, &amp;amp;&lt;BR /&gt;ghInstance, &amp;amp;&lt;BR /&gt;NULL)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;END FUNCTION&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Sep 2004 21:30:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799061#M36753</guid>
      <dc:creator>intelandmicrosoft</dc:creator>
      <dc:date>2004-09-20T21:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799062#M36754</link>
      <description>&lt;DIV&gt;a) Definition of WC_LISTVIEW is defect in DFWINTY.f90 -- it's missing terminating char(0). Instead, use "SysListView32"C.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;b) Your DEC$ATTRIBUTES line is spurious (but it's not related to the list view problem)&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Otherwise, I don't see anything obviously wrong -- if it still doesn't work, what's the return value of GetLastError?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jugoslav&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Sep 2004 22:17:24 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799062#M36754</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-09-20T22:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799063#M36755</link>
      <description>&lt;DIV&gt;I filed a bug report on this problem. I'm astonished nobody's noticed this before.... It looks as if all the character constants in DFWINTY (and IFWINTY) are like this.&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Sep 2004 22:35:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799063#M36755</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-09-20T22:35:02Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799064#M36756</link>
      <description>&lt;DIV&gt;FWIW, these constantsweremissing for quite some time (as far as I recall, they may have been introduced in 6.5 or so), so I got used to spelling them out as literals.I don't recall what's in N. Lawrence's book though.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jugoslav&lt;/DIV&gt;</description>
      <pubDate>Mon, 20 Sep 2004 23:05:04 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799064#M36756</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-09-20T23:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799065#M36757</link>
      <description>&lt;DIV&gt;I figured out my problem is the comctrl32 dll. It's not loading up properly before I try to create the List-View Control.&lt;/DIV&gt;
&lt;DIV&gt;TYPE (T_INITCOMMONCONTROLSEX) iccex&lt;BR /&gt;iccex%dwSize = sizeof(iccex)&lt;BR /&gt;iccex%dwICC = ICC_LISTVIEW_CLASSES&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;NOW comctl32.f90 lists two ways to preloading the necassary com dll&lt;/DIV&gt;
&lt;DIV&gt;1) SUBROUTINE InitCommonControls&lt;/DIV&gt;
&lt;DIV&gt;2) FUNCTION InitCommonControlsEx&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;I can't get either subroutine or function to work? It will say unresolved external _InitCommonControls?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;So i try the following and get it to compile subing in random numbers for ??? until it compiles. By the way is there a better way to get the ??? number besides random guessing?I'm guessing it hase something to do with the size of the variables passed in and returned?&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_InitCommonControls@???'" target="_blank"&gt;'_InitCommonControls@???'&lt;/A&gt; :: InitCommonControls&lt;/DIV&gt;
&lt;DIV&gt;!DEC$ ATTRIBUTES STDCALL, ALIAS : &lt;A href="mailto:'_InitCommonControlsEx@???'" target="_blank"&gt;'_InitCommonControlsEx@???'&lt;/A&gt; :: InitCommonControlsEx&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Now when it does finally compile, the program crashes right away and still says com module not found, but when I compile I dolink against the com dll by adding /link ComCtl32.Lib to ifort?&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Sep 2004 00:15:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799065#M36757</guid>
      <dc:creator>intelandmicrosoft</dc:creator>
      <dc:date>2004-09-21T00:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799066#M36758</link>
      <description>&lt;DIV&gt;Yes, you have to add "comctl32.lib" to the list in Project/Settings/Link. &lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;But you should &lt;STRONG&gt;not&lt;/STRONG&gt; mess with "subing in random numbers for ??? until it compiles." &lt;STRONG&gt;&lt;EM&gt;Where&lt;/EM&gt; &lt;/STRONG&gt;did you substitute "???" ? If you USEd DFWIN or COMCTL32, you have included the correct prototype for InitCommonControls* -- youonly had to add the correct library.&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;For your information, the numberbehind @ is, generally, equalto 4*number of arguments. Thus, itis &lt;A href="mailto:_InitCommonControls@0" target="_blank"&gt;_InitCommonControls@0&lt;/A&gt; and &lt;A href="mailto:_InitCommonControlsEx@4" target="_blank"&gt;_InitCommonControlsEx@4&lt;/A&gt;. If there are string arguments which don't have !DEC$ATTRIBUTES REFERENCE attribute, thereis anadditional hidden argument per string argument. DECORATE attribute in the interfaceblock tells the compiler to calculate the decoration automatically (take a look yourself e.g. at ...DF98IncludeUSER32.f90).&lt;/DIV&gt;
&lt;DIV&gt;&lt;/DIV&gt;
&lt;DIV&gt;Jugoslav&lt;/DIV&gt;</description>
      <pubDate>Tue, 21 Sep 2004 14:50:43 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799066#M36758</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2004-09-21T14:50:43Z</dc:date>
    </item>
    <item>
      <title>Re: Create List-View Control?</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799067#M36759</link>
      <description>&lt;DIV&gt;The constants will get their trailing NULs added in a future update - possibly the next one but if not, the one after that.&lt;/DIV&gt;</description>
      <pubDate>Tue, 19 Oct 2004 19:27:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Create-List-View-Control/m-p/799067#M36759</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2004-10-19T19:27:47Z</dc:date>
    </item>
  </channel>
</rss>

