<?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: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST in Intel® Fortran Compiler</title>
    <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896054#M79624</link>
    <description>&lt;P&gt;Sorry, I don't have Vista on anything, how about running the below and reporting theresults &lt;/P&gt;
&lt;P&gt;USE DFWIN&lt;BR /&gt;USE DFLIB&lt;/P&gt;
&lt;P&gt;IMPLICIT NONE&lt;/P&gt;
&lt;P&gt;CHARACTER*15 TYPEFACE&lt;BR /&gt;INTEGER HFONT,HDC,RET&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;INTEGER NCHARS,I, NHGG,NW,ABCD(0:255)&lt;BR /&gt;REAL ABCD1(0:255)&lt;BR /&gt;TYPE (T_ABC) AB(0:255)&lt;/P&gt;
&lt;P&gt;NCHARS=255&lt;/P&gt;
&lt;P&gt;TYPEFACE="dingers"//char(0) &lt;/P&gt;
&lt;P&gt;HDC = GETDC(NULL)&lt;BR /&gt;NHGG=-10000&lt;BR /&gt;NW=0&lt;BR /&gt;HFONT = CREATEFONT(-NHGG, NW, 0, 0, 0, 0, 0, 0, &amp;amp;&lt;BR /&gt;DEFAULT_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, &amp;amp;&lt;BR /&gt;PROOF_QUALITY,INT(DEFAULT_PITCH) ,TYPEFACE)&lt;/P&gt;
&lt;P&gt;write(*,*)'hfont=',hfont,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=SELECTOBJECT(HDC,HFONT)&lt;/P&gt;
&lt;P&gt;write(*,*)'selobjret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTH32 (HDC,1,NCHARS,LOC(ABCD(1)))&lt;/P&gt;
&lt;P&gt;write(*,*)'cw32ret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTHFLOAT (HDC,1,NCHARS,LOC(ABCD1(1)))&lt;/P&gt;
&lt;P&gt;write(*,*)'cwfret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARABCWIDTHS(HDC,1,255,AB(1))&lt;/P&gt;
&lt;P&gt;write(*,*)'abcwret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;DO I=65,90&lt;/P&gt;
&lt;P&gt; WRITE(*,*)I,' ',CHAR(I),ABCD(I),ABCD1(I),AB(I)%ABCA,AB(I)%ABCB,AB(I)%ABCC&lt;/P&gt;
&lt;P&gt;ENDDO&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 02 May 2008 16:20:39 GMT</pubDate>
    <dc:creator>garylscott1</dc:creator>
    <dc:date>2008-05-02T16:20:39Z</dc:date>
    <item>
      <title>GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VISTA</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896046#M79616</link>
      <description>&lt;P&gt;I do not sem to get the functions&lt;/P&gt;
&lt;P&gt;GETCHARWIDTH GETCHARWIDTH32 GetCharWidthFloat &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;to work in VISTA - are ther compatible functions in the latest Visual fortan which would work in VISTA&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2008 11:02:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896046#M79616</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-04-29T11:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896047#M79617</link>
      <description>Those are Win32 API routines, not part of Intel Visual Fortran. I think we'll need some more information as to what "doesn't work", and perhaps a small example.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Apr 2008 13:00:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896047#M79617</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-29T13:00:28Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896048#M79618</link>
      <description>&lt;P&gt;I have the program&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;USE DFWIN&lt;BR /&gt;USE DFLIB&lt;/P&gt;
&lt;P&gt;IMPLICIT NONE&lt;/P&gt;
&lt;P&gt;CHARACTER*15 TYPEFACE&lt;BR /&gt;INTEGER HFONT,HDC,RET&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;INTEGER NCHARS,I, NHGG,NW,ABCD(0:255)&lt;BR /&gt;REAL ABCD1(0:255)&lt;BR /&gt;TYPE (T_ABC) AB(0:255)&lt;/P&gt;
&lt;P&gt;NCHARS=255&lt;/P&gt;
&lt;P&gt;TYPEFACE="Arial"//char(0) &lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;HDC = GETDC(NULL)&lt;BR /&gt;NHGG=-10000&lt;BR /&gt;NW=0&lt;BR /&gt;HFONT = CREATEFONT(-NHGG, NW, 0, 0, 0, 0, 0, 0, &amp;amp;&lt;BR /&gt;DEFAULT_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, &amp;amp;&lt;BR /&gt;PROOF_QUALITY,INT(DEFAULT_PITCH) ,TYPEFACE)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;RET=SELECTOBJECT(HDC,HFONT)&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTH32 (HDC,1,NCHARS,LOC(ABCD(1)))&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTHFLOAT (HDC,1,NCHARS,LOC(ABCD1(1)))&lt;BR /&gt;RET=GETCHARABCWIDTHS(HDC,1,255,AB(1))&lt;/P&gt;
&lt;P&gt;DO I=65,90&lt;BR /&gt;WRITE(*,*)I,' ',CHAR(I),ABCD(I),ABCD1(I),AB(I)%ABCA,AB(I)%ABCB,AB(I)%ABCC&lt;BR /&gt;ENDDO&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;STOP&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;In windows XP it lists the widths of characters between A and Z and all three functions &lt;/P&gt;
&lt;P&gt;GETCHARWIDTH32 , GETCHARWIDTHFLOAT, GETCHARABCWIDTHS&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;give values, however under Vista I just get zeros, I am using Visual Fortran Vers 6.0 &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;if I upgrade will the problem be resolved&lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2008 13:30:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896048#M79618</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-04-29T13:30:13Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896049#M79619</link>
      <description>This is not a compiler problem - while there are many reasons to upgrade, this is not one of them.&lt;BR /&gt;&lt;BR /&gt;I don't have immediate access to a Vista system to try your program. Perhaps another reader can comment.&lt;BR /&gt;</description>
      <pubDate>Tue, 29 Apr 2008 14:49:23 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896049#M79619</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-04-29T14:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896050#M79620</link>
      <description>&lt;P&gt;I compile and obtain the exe on an xp machine and transfer the exe to a vista machine where it does not produce the desired results &lt;/P&gt;
&lt;P&gt;steve &lt;/P&gt;</description>
      <pubDate>Tue, 29 Apr 2008 15:00:47 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896050#M79620</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-04-29T15:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896051#M79621</link>
      <description>Any body got any ideas why the program does not work on Vista ?</description>
      <pubDate>Thu, 01 May 2008 07:56:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896051#M79621</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-01T07:56:05Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896052#M79622</link>
      <description>These APIs are not applicable to Truetype fonts. It could be that Vista has different defaults or the particular font isn't available. There is a different API for Truetype fonts. See the MSDN description &lt;A href="http://msdn.microsoft.com/en-us/library/ms534215(VS.85).aspx"&gt;http://msdn.microsoft.com/en-us/library/ms534215(VS.85).aspx&lt;/A&gt;</description>
      <pubDate>Thu, 01 May 2008 17:09:11 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896052#M79622</guid>
      <dc:creator>garylscott1</dc:creator>
      <dc:date>2008-05-01T17:09:11Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896053#M79623</link>
      <description>&lt;P&gt;I checked and the font is available , and accoding to the MSDN site these should work in VISTA - but they do not &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2008 07:33:46 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896053#M79623</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-02T07:33:46Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896054#M79624</link>
      <description>&lt;P&gt;Sorry, I don't have Vista on anything, how about running the below and reporting theresults &lt;/P&gt;
&lt;P&gt;USE DFWIN&lt;BR /&gt;USE DFLIB&lt;/P&gt;
&lt;P&gt;IMPLICIT NONE&lt;/P&gt;
&lt;P&gt;CHARACTER*15 TYPEFACE&lt;BR /&gt;INTEGER HFONT,HDC,RET&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;INTEGER NCHARS,I, NHGG,NW,ABCD(0:255)&lt;BR /&gt;REAL ABCD1(0:255)&lt;BR /&gt;TYPE (T_ABC) AB(0:255)&lt;/P&gt;
&lt;P&gt;NCHARS=255&lt;/P&gt;
&lt;P&gt;TYPEFACE="dingers"//char(0) &lt;/P&gt;
&lt;P&gt;HDC = GETDC(NULL)&lt;BR /&gt;NHGG=-10000&lt;BR /&gt;NW=0&lt;BR /&gt;HFONT = CREATEFONT(-NHGG, NW, 0, 0, 0, 0, 0, 0, &amp;amp;&lt;BR /&gt;DEFAULT_CHARSET, OUT_TT_PRECIS, CLIP_DEFAULT_PRECIS, &amp;amp;&lt;BR /&gt;PROOF_QUALITY,INT(DEFAULT_PITCH) ,TYPEFACE)&lt;/P&gt;
&lt;P&gt;write(*,*)'hfont=',hfont,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=SELECTOBJECT(HDC,HFONT)&lt;/P&gt;
&lt;P&gt;write(*,*)'selobjret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTH32 (HDC,1,NCHARS,LOC(ABCD(1)))&lt;/P&gt;
&lt;P&gt;write(*,*)'cw32ret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARWIDTHFLOAT (HDC,1,NCHARS,LOC(ABCD1(1)))&lt;/P&gt;
&lt;P&gt;write(*,*)'cwfret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;RET=GETCHARABCWIDTHS(HDC,1,255,AB(1))&lt;/P&gt;
&lt;P&gt;write(*,*)'abcwret=',ret,getlasterror()&lt;/P&gt;
&lt;P&gt;DO I=65,90&lt;/P&gt;
&lt;P&gt; WRITE(*,*)I,' ',CHAR(I),ABCD(I),ABCD1(I),AB(I)%ABCA,AB(I)%ABCB,AB(I)%ABCC&lt;/P&gt;
&lt;P&gt;ENDDO&lt;/P&gt;
&lt;P&gt;END&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 May 2008 16:20:39 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896054#M79624</guid>
      <dc:creator>garylscott1</dc:creator>
      <dc:date>2008-05-02T16:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896055#M79625</link>
      <description>I'm just slightly suspicious that Vista believes that the passed buffers are too small to hold the data from the query since you pass the address of a single element rather than of the whole array. Maybe one of the security updates for Vista was to add checks for the correct size of argument buffers. (just a wild theory)</description>
      <pubDate>Fri, 02 May 2008 19:51:30 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896055#M79625</guid>
      <dc:creator>garylscott1</dc:creator>
      <dc:date>2008-05-02T19:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896056#M79626</link>
      <description>&lt;P&gt;this is result from windows XP&lt;/P&gt;
&lt;P&gt;hfont= 1208633627 0&lt;BR /&gt;selobjret= 25821217 0&lt;BR /&gt;cw32ret= 1 0&lt;BR /&gt;cwfret= 1 0&lt;BR /&gt;abcwret= 1 0&lt;BR /&gt; 65 A 5970 373.1250 -13 5996 -13&lt;BR /&gt; 66 B 5970 373.1250 656 4838 476&lt;BR /&gt; 67 C 6464 404.0000 446 5664 354&lt;BR /&gt; 68 D 6464 404.0000 691 5297 476&lt;BR /&gt;..................&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;and from Vista&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;hfont= 1376391332 0&lt;BR /&gt;selobjret= 25821253 0&lt;BR /&gt;cw32ret= 0 0&lt;BR /&gt;cwfret= 0 0&lt;BR /&gt;abcwret= 0 0&lt;BR /&gt; 65 A 0 0.0000000E+00 0 0 0&lt;BR /&gt; 66 B 0 0.0000000E+00 0 0 0&lt;BR /&gt; 67 C 0 0.0000000E+00&amp;amp;nb
sp; 0 0 0&lt;BR /&gt; 68 D 0 0.0000000E+00 0 0 0&lt;BR /&gt;...............&lt;/P&gt;</description>
      <pubDate>Tue, 06 May 2008 08:31:17 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896056#M79626</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-06T08:31:17Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896057#M79627</link>
      <description>Call GetLastError after the function returns zero and see what the extended error code is.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2008 12:44:08 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896057#M79627</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-05-06T12:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896058#M79628</link>
      <description>Have I not done that already ? the result form getlasterror is zero</description>
      <pubDate>Tue, 06 May 2008 13:08:01 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896058#M79628</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-06T13:08:01Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896059#M79629</link>
      <description>Sorry, yes, you did.&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2008 13:33:05 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896059#M79629</guid>
      <dc:creator>Steven_L_Intel1</dc:creator>
      <dc:date>2008-05-06T13:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896060#M79630</link>
      <description>I suspect (although I don't have a Vista around so I can't check either) that GetDC(NULL) might be the culprit. Google search on "Vista getdc null" hints at the possibility that Vista has an entirely different screen model... see e.g. &lt;A href="http://groups.google.com/groups?q=Vista%20%22screen%20DC%22"&gt;here&lt;/A&gt;. Try with a "real" DC perhaps?&lt;BR /&gt;</description>
      <pubDate>Tue, 06 May 2008 15:43:09 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896060#M79630</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2008-05-06T15:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896061#M79631</link>
      <description>&lt;P&gt;Hi Jugoslav those links do point to a possible problem - not sure what you mean by&lt;/P&gt;
&lt;P&gt;a "real" DC &lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;steve&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2008 07:47:00 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896061#M79631</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-07T07:47:00Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896062#M79632</link>
      <description>I mean, pretty much any DC other than the desktop one... &lt;BR /&gt;&lt;BR /&gt;For the start, try GetDC(GetDesktopWindow()). Alternatively, you can try creating (and destroying later!) a memory DC, using &lt;BR /&gt;&lt;PRE&gt;hDC = GetDC(GetDesktopWindow())&lt;/PRE&gt;&lt;PRE&gt;hMemDC = CreateCompatibleDC(hDC)&lt;/PRE&gt;&lt;PRE&gt;ret = CreateCompatibleBitmap(hDC , 100, 100)&lt;/PRE&gt;&lt;PRE&gt;iSt = SelectObject(hMemDC, hBmp)&lt;/PRE&gt;&lt;PRE&gt;...&lt;/PRE&gt;&lt;PRE&gt;!do stuff here&lt;/PRE&gt;&lt;PRE&gt;...&lt;/PRE&gt;&lt;PRE&gt;ret = DeleteObject(GetCurrentObject(hMemDC, OBJ_BITMAP)&lt;/PRE&gt;&lt;PRE&gt;ret = DeleteDC(hMemDC)&lt;/PRE&gt;Note that a) I admit this is an overkill for such a simple task and b) I'm stabbing in the dark... &lt;IMG src="https://community.intel.com/file/6746" alt="smiley [:-)]" /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 07 May 2008 08:13:12 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896062#M79632</guid>
      <dc:creator>Jugoslav_Dujic</dc:creator>
      <dc:date>2008-05-07T08:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896063#M79633</link>
      <description>&lt;P&gt;Hi jugoslav thanks - that did dont work either - but i will try anything to get it to work&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;steve&lt;/P&gt;</description>
      <pubDate>Wed, 07 May 2008 09:06:54 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896063#M79633</guid>
      <dc:creator>steve_konarski</dc:creator>
      <dc:date>2008-05-07T09:06:54Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896064#M79634</link>
      <description>The specific msdn description for GETDC indicates that GETDC(null) should behave the same on Vista asI read it. But I would suggest adding a write of the return code and getlasterror after GETDC(null) as well and see if the extended error code is nonzero there. It is quite odd for the return code for the other functions to retun false but for there to then be a zero GETLASTERROR() result as well. The indicates to me some major Vista error reporting anomaly or some unknown error within this application that messes up the GETLASTERROR() return value (stack corruption, out of bounds access not reported, etc.)</description>
      <pubDate>Wed, 07 May 2008 22:43:06 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896064#M79634</guid>
      <dc:creator>garylscott1</dc:creator>
      <dc:date>2008-05-07T22:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: GETCHARWIDTH    GETCHARWIDTH32   GetCharWidthFloat  in VIST</title>
      <link>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896065#M79635</link>
      <description>I tried the program on Vista and could get it to work by changing the value of NHGG. I used NHGG=-16. It looks to me it has something to do with the fontsize.&lt;BR /&gt;&lt;BR /&gt;Guido&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 May 2008 11:57:07 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-Fortran-Compiler/GETCHARWIDTH-GETCHARWIDTH32-GetCharWidthFloat-in-VISTA/m-p/896065#M79635</guid>
      <dc:creator>ggveldkamp2</dc:creator>
      <dc:date>2008-05-13T11:57:07Z</dc:date>
    </item>
  </channel>
</rss>

