<?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 Ditto -- you should use in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956006#M93399</link>
    <description>&lt;P&gt;Ditto -- you should use SIZEOF(), much easier.&lt;/P&gt;

&lt;P&gt;All handles should be recast as INTEGER(HANDLE) and all pointers as INTEGER(INT_PTR_KIND()).&amp;nbsp; This will allow your code to work with Win32 and Win64, and the correct sizes for these objects will be adjusted automatically.&lt;/P&gt;

&lt;P&gt;And, you may as well get rid of DF* modules, long obsolete, they have been replaced by IF*(same name).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Mar 2014 21:59:55 GMT</pubDate>
    <dc:creator>Paul_Curtis</dc:creator>
    <dc:date>2014-03-21T21:59:55Z</dc:date>
    <item>
      <title>Converting from 32bit to 64 bit application in IVF14</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956003#M93396</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;I am running into an issue where my 32bit application converted to 64 bit runs into an error related to opening a file dialog box&lt;/P&gt;

&lt;P&gt;the lstructsize error is attached in the error.png file and the code for opening the file is given below. The 32 bit application for this exact same code works. Is the error related to the following fileopen dialog box code&lt;/P&gt;

&lt;P&gt;Thanks for any help&lt;/P&gt;

&lt;P&gt;SUBROUTINE OPEN_INPUT_FILE(CHECKED)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; USE DFLIB&lt;BR /&gt;
	&amp;nbsp; USE INPUTINFO&lt;BR /&gt;
	&amp;nbsp; USE DFWINTY&lt;BR /&gt;
	&amp;nbsp; USE DFWIN&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; IMPLICIT NONE&lt;/P&gt;

&lt;P&gt;&amp;nbsp; TYPE (T_OPENFILENAME)FRED&lt;/P&gt;

&lt;P&gt;&amp;nbsp; LOGICAL(KIND=4)RET&lt;BR /&gt;
	&amp;nbsp; INTEGER(KIND=4)IERROR&lt;BR /&gt;
	&amp;nbsp; !CHARACTER(LEN=26)FILTER(7)&lt;BR /&gt;
	&amp;nbsp; CHARACTER(LEN=26*7)ALLFILTERS&lt;BR /&gt;
	&amp;nbsp; CHARACTER(LEN=60)DLGTITLE&lt;BR /&gt;
	&amp;nbsp; LOGICAL(KIND=4)CHECKED&lt;/P&gt;

&lt;P&gt;&amp;nbsp; CALL UNUSEDQQ(CHECKED)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; ALLFILTERS = ' Input files(*.INP)' // char(0) // &amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;'*.INP' // char(0) // &amp;amp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; 'All files(*.*)' // char(0) // &amp;amp;&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; '*.*' // char(0) // char(0)&lt;BR /&gt;
	&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&amp;nbsp; DLGTITLE = 'Choose &amp;nbsp;INPUT FILE'C&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp; FRED%LSTRUCTSIZE = (BIT_SIZE(FRED%LSTRUCTSIZE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%HWNDOWNER) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%HINSTANCE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRFILTER) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRCUSTOMFILTER) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NMAXCUSTFILTER) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NFILTERINDEX) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRFILE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NMAXFILE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRFILETITLE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NMAXFILETITLE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRINITIALDIR) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRTITLE) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%FLAGS) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NFILEOFFSET) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%NFILEEXTENSION) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPSTRDEFEXT) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LCUSTDATA) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPFNHOOK) + &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;amp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;BIT_SIZE(FRED%LPTEMPLATENAME))/8&lt;/P&gt;

&lt;P&gt;&amp;nbsp; FRED%HWNDOWNER = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%HINSTANCE = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRFILTER = LOC(ALLFILTERS)&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRCUSTOMFILTER = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%NMAXCUSTFILTER = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%NFILTERINDEX = 1&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRFILE = LOC(ABAQUS_INP)&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; FRED%NMAXFILE = LEN(ABAQUS_INP)&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRFILETITLE = NULL&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; FRED%NMAXFILETITLE = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRINITIALDIR = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRTITLE = LOC(DLGTITLE)&lt;BR /&gt;
	&amp;nbsp; FRED%FLAGS = NULL&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; FRED%NFILEOFFSET = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%NFILEEXTENSION = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPSTRDEFEXT = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LCUSTDATA = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPFNHOOK = NULL&lt;BR /&gt;
	&amp;nbsp; FRED%LPTEMPLATENAME = NULL&amp;nbsp;&lt;/P&gt;

&lt;P&gt;&lt;BR /&gt;
	&amp;nbsp; RET = GETOPENFILENAME(FRED)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; CALL COMDLGER(IERROR)&lt;/P&gt;

&lt;P&gt;&amp;nbsp; FILE_INP = .FALSE.&lt;BR /&gt;
	!* CHECK TO SEE IF THE OK BUTTON HAS BEEN PRESSED&lt;BR /&gt;
	&amp;nbsp; IF(RET .AND. (IERROR == 0))THEN&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp; &amp;nbsp;if (modify3d_inp.eq. .false.) CALL MODIFY_INPUTFILE_2D&lt;BR /&gt;
	&amp;nbsp;&amp;nbsp;&lt;BR /&gt;
	&amp;nbsp; &amp;nbsp; FILE_INP = .TRUE.&lt;BR /&gt;
	&amp;nbsp; ENDIF&lt;/P&gt;

&lt;P&gt;&amp;nbsp; RETURN&lt;BR /&gt;
	END SUBROUTINE OPEN_INPUT_FILE&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 16:13:41 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956003#M93396</guid>
      <dc:creator>sumitm</dc:creator>
      <dc:date>2014-03-21T16:13:41Z</dc:date>
    </item>
    <item>
      <title>testing</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956004#M93397</link>
      <description>&lt;P&gt;testing&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 19:02:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956004#M93397</guid>
      <dc:creator>sumitm</dc:creator>
      <dc:date>2014-03-21T19:02:10Z</dc:date>
    </item>
    <item>
      <title>In x64, handles are 64-bit</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956005#M93398</link>
      <description>&lt;P&gt;In x64, handles are 64-bit and they are misaligned in your structure, so it will have padding bytes inserting to conform to the ABI.&amp;nbsp;Thus structure size &amp;gt; sum(sizes of individual components) which is therefore invalid.&lt;/P&gt;

&lt;P&gt;Change to FRED%LSTRUCTSIZE = SIZEOF(FRED) and you should be able to make progress.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 20:59:02 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956005#M93398</guid>
      <dc:creator>JVanB</dc:creator>
      <dc:date>2014-03-21T20:59:02Z</dc:date>
    </item>
    <item>
      <title>Ditto -- you should use</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956006#M93399</link>
      <description>&lt;P&gt;Ditto -- you should use SIZEOF(), much easier.&lt;/P&gt;

&lt;P&gt;All handles should be recast as INTEGER(HANDLE) and all pointers as INTEGER(INT_PTR_KIND()).&amp;nbsp; This will allow your code to work with Win32 and Win64, and the correct sizes for these objects will be adjusted automatically.&lt;/P&gt;

&lt;P&gt;And, you may as well get rid of DF* modules, long obsolete, they have been replaced by IF*(same name).&lt;/P&gt;

&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2014 21:59:55 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956006#M93399</guid>
      <dc:creator>Paul_Curtis</dc:creator>
      <dc:date>2014-03-21T21:59:55Z</dc:date>
    </item>
    <item>
      <title>Thanks for the help.</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956007#M93400</link>
      <description>&lt;P&gt;Thanks for the help.&lt;/P&gt;

&lt;P&gt;It worked&lt;/P&gt;</description>
      <pubDate>Sat, 22 Mar 2014 04:02:21 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/Converting-from-32bit-to-64-bit-application-in-IVF14/m-p/956007#M93400</guid>
      <dc:creator>sumitm</dc:creator>
      <dc:date>2014-03-22T04:02:21Z</dc:date>
    </item>
  </channel>
</rss>

