<?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: FULLAPI in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852610#M66513</link>
    <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/112510"&gt;MacNeacail&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Dear Steve:&lt;BR /&gt;&lt;BR /&gt;
&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;[cpp]integer*4 function fullapi()&lt;BR /&gt;!dec$objcomment lib:"user32.lib"&lt;BR /&gt;!dec$objcomment lib:"gdi32.lib"&lt;BR /&gt;!dec$objcomment lib:"advapi32.lib"&lt;BR /&gt;!dec$objcomment lib:"wsock32.lib"&lt;BR /&gt;!dec$objcomment lib:"comdlg32.lib"&lt;BR /&gt;!dec$objcomment lib:"shell32.lib"&lt;BR /&gt;!dec$objcomment lib:"version.lib"&lt;BR /&gt;!dec$objcomment lib:"mpr.lib"&lt;BR /&gt;!dec$objcomment lib:"lz32.lib"&lt;BR /&gt;!dec$objcomment lib:"winspool.lib"&lt;BR /&gt;!dec$objcomment lib:"winmm.lib"&lt;BR /&gt;!dec$objcomment lib:"scrnsave.lib"&lt;BR /&gt;fullapi = 0&lt;BR /&gt;end[/cpp]&lt;/EM&gt;&lt;/PRE&gt;
The include file fullapi.f90 has the code shown above. Can you confirm that if I call this function I get the full api available in the program unit?&lt;BR /&gt;&lt;BR /&gt;Can you also confirm the usage for RGB Macro as I am unable to get it compile without error on type required for RGB?&lt;BR /&gt;&lt;BR /&gt;JMN&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;No, that is not the way you do it. IVF supplies Win32 API interface modules in the default search path, which may be USEd by your program. You can simply USE ifwin, or select subsets of ifwin:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]MODULE globals
	
	!   these are the contents of ifwin, omitting wsock32;
	!   this program's winsock module USEs ws2_32.f90 instead,
	!   and we thus need to avoid conflicts with wsock32.f90
    USE advapi32
    USE comdlg32
    USE ifwbase
    USE gdi32
    USE kernel32
    !use lz32
    !use mpr      ! WNet connection APIs, not used by this program
    USE shell32
    USE user32
    !use version
    !use winmm    ! Windows multimedia APIs, not used by this program
    USE winspool
    
    !   Win32 types and defines
    USE ifwinty[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;The Win32 function RGB transforms 3 INT(1) arguments into a single INT(4) result. Perhaps this will be clearer from the reverse transform:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]!   extract the components from the supplied colorRef
red   = RSHFT(IAND(RGB, Z'00FF0000'), 16)
green = RSHFT(IAND(RGB, Z'0000FF00'),  8)
blue  =       IAND(RGB, Z'000000FF')
[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;</description>
    <pubDate>Wed, 07 Oct 2009 22:36:52 GMT</pubDate>
    <dc:creator>Paul_Curtis</dc:creator>
    <dc:date>2009-10-07T22:36:52Z</dc:date>
    <item>
      <title>FULLAPI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852609#M66512</link>
      <description>Dear Steve:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]integer*4 function fullapi()
!dec$objcomment lib:"user32.lib"
!dec$objcomment lib:"gdi32.lib"
!dec$objcomment lib:"advapi32.lib"
!dec$objcomment lib:"wsock32.lib"
!dec$objcomment lib:"comdlg32.lib"
!dec$objcomment lib:"shell32.lib"
!dec$objcomment lib:"version.lib"
!dec$objcomment lib:"mpr.lib"
!dec$objcomment lib:"lz32.lib"
!dec$objcomment lib:"winspool.lib"
!dec$objcomment lib:"winmm.lib"
!dec$objcomment lib:"scrnsave.lib"
fullapi = 0
end[/cpp]&lt;/PRE&gt;
The include file fullapi.f90 has the code shown above. Can you confirm that if I call this function I get the full api available in the program unit?&lt;BR /&gt;&lt;BR /&gt;Can you also confirm the usage for RGB Macro as I am unable to get it compile without error on type required for RGB?&lt;BR /&gt;&lt;BR /&gt;JMN</description>
      <pubDate>Wed, 07 Oct 2009 20:40:49 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852609#M66512</guid>
      <dc:creator>John_N_2</dc:creator>
      <dc:date>2009-10-07T20:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: FULLAPI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852610#M66513</link>
      <description>&lt;DIV style="margin:0px;"&gt;
&lt;DIV id="quote_reply" style="width: 100%; margin-top: 5px;"&gt;
&lt;DIV style="margin-left:2px;margin-right:2px;"&gt;Quoting - &lt;A href="https://community.intel.com/en-us/profile/112510"&gt;MacNeacail&lt;/A&gt;&lt;/DIV&gt;
&lt;DIV style="background-color:#E5E5E5; padding:5px;border: 1px; border-style: inset;margin-left:2px;margin-right:2px;"&gt;&lt;EM&gt;Dear Steve:&lt;BR /&gt;&lt;BR /&gt;
&lt;/EM&gt;&lt;PRE&gt;&lt;EM&gt;[cpp]integer*4 function fullapi()&lt;BR /&gt;!dec$objcomment lib:"user32.lib"&lt;BR /&gt;!dec$objcomment lib:"gdi32.lib"&lt;BR /&gt;!dec$objcomment lib:"advapi32.lib"&lt;BR /&gt;!dec$objcomment lib:"wsock32.lib"&lt;BR /&gt;!dec$objcomment lib:"comdlg32.lib"&lt;BR /&gt;!dec$objcomment lib:"shell32.lib"&lt;BR /&gt;!dec$objcomment lib:"version.lib"&lt;BR /&gt;!dec$objcomment lib:"mpr.lib"&lt;BR /&gt;!dec$objcomment lib:"lz32.lib"&lt;BR /&gt;!dec$objcomment lib:"winspool.lib"&lt;BR /&gt;!dec$objcomment lib:"winmm.lib"&lt;BR /&gt;!dec$objcomment lib:"scrnsave.lib"&lt;BR /&gt;fullapi = 0&lt;BR /&gt;end[/cpp]&lt;/EM&gt;&lt;/PRE&gt;
The include file fullapi.f90 has the code shown above. Can you confirm that if I call this function I get the full api available in the program unit?&lt;BR /&gt;&lt;BR /&gt;Can you also confirm the usage for RGB Macro as I am unable to get it compile without error on type required for RGB?&lt;BR /&gt;&lt;BR /&gt;JMN&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;BR /&gt;No, that is not the way you do it. IVF supplies Win32 API interface modules in the default search path, which may be USEd by your program. You can simply USE ifwin, or select subsets of ifwin:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]MODULE globals
	
	!   these are the contents of ifwin, omitting wsock32;
	!   this program's winsock module USEs ws2_32.f90 instead,
	!   and we thus need to avoid conflicts with wsock32.f90
    USE advapi32
    USE comdlg32
    USE ifwbase
    USE gdi32
    USE kernel32
    !use lz32
    !use mpr      ! WNet connection APIs, not used by this program
    USE shell32
    USE user32
    !use version
    !use winmm    ! Windows multimedia APIs, not used by this program
    USE winspool
    
    !   Win32 types and defines
    USE ifwinty[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;The Win32 function RGB transforms 3 INT(1) arguments into a single INT(4) result. Perhaps this will be clearer from the reverse transform:&lt;BR /&gt;&lt;BR /&gt;
&lt;PRE&gt;[cpp]!   extract the components from the supplied colorRef
red   = RSHFT(IAND(RGB, Z'00FF0000'), 16)
green = RSHFT(IAND(RGB, Z'0000FF00'),  8)
blue  =       IAND(RGB, Z'000000FF')
[/cpp]&lt;/PRE&gt;
&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Oct 2009 22:36:52 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852610#M66513</guid>
      <dc:creator>Paul_Curtis</dc:creator>
      <dc:date>2009-10-07T22:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: FULLAPI</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852611#M66514</link>
      <description>&lt;DIV style="margin:0px;"&gt;&lt;/DIV&gt;
Since you addressed this post to Steve, just wanted to let you know he will be out for a couple of days. Looks though like you have had some good help on this.&lt;BR /&gt;&lt;BR /&gt;Wendy&lt;BR /&gt;</description>
      <pubDate>Wed, 07 Oct 2009 22:40:22 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/FULLAPI/m-p/852611#M66514</guid>
      <dc:creator>Wendy_Doerner__Intel</dc:creator>
      <dc:date>2009-10-07T22:40:22Z</dc:date>
    </item>
  </channel>
</rss>

