<?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: cDEC$ compiler directives and missing alias in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974099#M24652</link>
    <description>The fixed-format code is listed in my post on compiler directives and 'missing' alias.  &lt;BR /&gt;In case you missed it because of message board problems, here it is again:  &lt;BR /&gt;(I will use courier font as the text is then spaced out as it is shown in FORTRAN)&lt;PRE&gt;  
  
	interface  
	logical(4) function GetMenuItemRect(hWnd, hMenu , hItem, menrect)   
cDEC$ ATTRIBUTES STDCALL, ALIAS : '_GetMenuItemRect@16' :: GetMenuItemRect  
cDEC$ ATTRIBUTES REFERENCE :: menrect  
	use dfwinty  
	integer hWnd  
	integer hMenu  
	integer hitem  
	type (T_RECT) menrect  
	end function GetMenuItemRect  
	end interface  
&lt;/PRE&gt;  &lt;BR /&gt;each record begins with a tab except the directives.  &lt;BR /&gt;I got the first directive from DFWIN.F90 code hence it was ok for free-format code, but I   &lt;BR /&gt;initially inserted it into a routine which was fixed format. I changed the leading '!' to 'c'.  &lt;BR /&gt;When displayed in the DVF edit window, the FORTRAN code is displayed in blue in my case and  &lt;BR /&gt;the compiler directives are treated as comments and listed in green. Note that the second line   &lt;BR /&gt;beginning 'logical' actually displays as shorter than the following problem line.  &lt;BR /&gt;It appears to be a peculiarity of the message board software that, when my sample code was  &lt;BR /&gt;displayed there, the second line was displayed as longer than the first directive, hence  &lt;BR /&gt;Steve L's comment to that effect in his reply.</description>
    <pubDate>Mon, 19 Nov 2001 18:20:46 GMT</pubDate>
    <dc:creator>isn-removed200637</dc:creator>
    <dc:date>2001-11-19T18:20:46Z</dc:date>
    <item>
      <title>cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974094#M24647</link>
      <description>I am attempting to use the WIN API function GetMenuItemRect and, after looking at the INTERFACE for the function TrackPopUpMenu in DFWIN.F90, have added the following to my calling program:&lt;PRE&gt;    
	interface    
	logical(4) function  GetMenuItemRect(hWnd, hMenu , hItem, menrect)     
cDEC$ ATTRIBUTES STDCALL, ALIAS : '_GetMenuItemRect@16' :: GetMenuItemRect    
cDEC$ ATTRIBUTES REFERENCE :: menrect    
	use dfwinty    
	integer hWnd    
	integer hMenu    
	integer hitem    
	type (T_RECT) menrect    
	end function GetMenuItemRect    
	end interface    
&lt;/PRE&gt;    &lt;BR /&gt;and used the following call &lt;BR /&gt;&lt;PRE&gt;    
	RETLOG=GetMenuItemRect(ghWnd,hMenu,2, dropdrect )&lt;/PRE&gt;    &lt;BR /&gt;The routine compiles ok (with dropdrect defined as TYPE (T_RECT) ), but I keep getting the link error&lt;PRE&gt;    
OPENFILE.OBJ : error LNK2001: unresolved external symbol _GETMENUITEMRECT@16    
Release/generic.exe : fatal error LNK1120: 1 unresolved externals    
&lt;/PRE&gt;    &lt;BR /&gt;With the above interface block, the alias '_GetMenuItemRect@16' should ensure that the required routine is recognised. I know that TrackPopUpMenu has exactly similar interface(but with 7 arguments, hence @28 is appended to the alias '_TrackPopUpMenu' ) and it is found and linked ok and I know that both routines are    &lt;BR /&gt;in USER32.DLL. It is frustrating that the linker is still refusing to find GetMenuItemRect !!  &lt;P&gt;  &lt;BR /&gt;Please can you advise?&lt;/P&gt;&lt;P&gt;  &lt;BR /&gt;&lt;/P&gt;&lt;P&gt;  &lt;BR /&gt;regards &lt;/P&gt;&lt;P&gt;   &lt;BR /&gt;tony richards&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2001 00:49:31 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974094#M24647</guid>
      <dc:creator>isn-removed200637</dc:creator>
      <dc:date>2001-11-16T00:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974095#M24648</link>
      <description>You're using fixed-form source and the directive extends past column 72.  While the FUNCTION statement would also appear to, it actually starts with a tab which counts as only one character.&lt;BR /&gt;&lt;BR /&gt;Split up the directive into two (or more).  You can't continue directives.&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 16 Nov 2001 03:01:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974095#M24648</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-11-16T03:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974096#M24649</link>
      <description>Many thanks, Steve, for spotting that. I completely ignored the possibility that &lt;BR /&gt;the directive was being ignored (or trested as a comment) because of it being too long. There was no warning to that effect. The FORTRAN statements go green if they are too long in fixed-format. I removed some of the blanks in the directive and everything now goes as planned.</description>
      <pubDate>Fri, 16 Nov 2001 19:03:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974096#M24649</guid>
      <dc:creator>isn-removed200637</dc:creator>
      <dc:date>2001-11-16T19:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974097#M24650</link>
      <description>It's not that the directive was ignored, but that it was applied to the wrong name.  The compiler doesn't complain, because you might have such directives for names you may or may not use.  It is something that can bite you, though.&lt;BR /&gt;&lt;BR /&gt;The easiest way to prevent such problems in the future is to use free-form source!&lt;BR /&gt;&lt;BR /&gt;Steve</description>
      <pubDate>Fri, 16 Nov 2001 23:28:53 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974097#M24650</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2001-11-16T23:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974098#M24651</link>
      <description>&lt;I&gt;The easiest way to prevent such problems in the future is to use free-form source! &lt;/I&gt; &lt;BR /&gt; &lt;BR /&gt;..which was the reason why I've missed it too -- what was the fixed-form source :-) ? &lt;BR /&gt; &lt;BR /&gt;Jugoslav</description>
      <pubDate>Sat, 17 Nov 2001 19:59:03 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974098#M24651</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2001-11-17T19:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974099#M24652</link>
      <description>The fixed-format code is listed in my post on compiler directives and 'missing' alias.  &lt;BR /&gt;In case you missed it because of message board problems, here it is again:  &lt;BR /&gt;(I will use courier font as the text is then spaced out as it is shown in FORTRAN)&lt;PRE&gt;  
  
	interface  
	logical(4) function GetMenuItemRect(hWnd, hMenu , hItem, menrect)   
cDEC$ ATTRIBUTES STDCALL, ALIAS : '_GetMenuItemRect@16' :: GetMenuItemRect  
cDEC$ ATTRIBUTES REFERENCE :: menrect  
	use dfwinty  
	integer hWnd  
	integer hMenu  
	integer hitem  
	type (T_RECT) menrect  
	end function GetMenuItemRect  
	end interface  
&lt;/PRE&gt;  &lt;BR /&gt;each record begins with a tab except the directives.  &lt;BR /&gt;I got the first directive from DFWIN.F90 code hence it was ok for free-format code, but I   &lt;BR /&gt;initially inserted it into a routine which was fixed format. I changed the leading '!' to 'c'.  &lt;BR /&gt;When displayed in the DVF edit window, the FORTRAN code is displayed in blue in my case and  &lt;BR /&gt;the compiler directives are treated as comments and listed in green. Note that the second line   &lt;BR /&gt;beginning 'logical' actually displays as shorter than the following problem line.  &lt;BR /&gt;It appears to be a peculiarity of the message board software that, when my sample code was  &lt;BR /&gt;displayed there, the second line was displayed as longer than the first directive, hence  &lt;BR /&gt;Steve L's comment to that effect in his reply.</description>
      <pubDate>Mon, 19 Nov 2001 18:20:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974099#M24652</guid>
      <dc:creator>isn-removed200637</dc:creator>
      <dc:date>2001-11-19T18:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: cDEC$ compiler directives and missing alias</title>
      <link>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974100#M24653</link>
      <description>Further to my previous post, the message displayed was the unedited version : I used the 'EDIT' option  to add more and change other bits before pressing 'OK' but these changes appear to have been ignored - this appears to be the 'normal' behaviour &lt;BR /&gt;of the message board as I know it! &lt;BR /&gt;&lt;P&gt; &lt;BR /&gt;What I added was a remark that the code should display with the fixed-format code beginning in &lt;BR /&gt;column 7 being aligned with the 'A' in 'ATTRIBUTES'. The message board software appears to add an extra 2 spaces to lines that do not begin in column 1, at least when the &lt;BR /&gt;&lt;PRE&gt; and &lt;/PRE&gt; tags are used.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Nov 2001 18:27:58 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/cDEC-compiler-directives-and-missing-alias/m-p/974100#M24653</guid>
      <dc:creator>isn-removed200637</dc:creator>
      <dc:date>2001-11-19T18:27:58Z</dc:date>
    </item>
  </channel>
</rss>

