<?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 casting problem in com server code in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/casting-problem-in-com-server-code/m-p/959482#M21500</link>
    <description>Hi friends, &lt;BR /&gt; &lt;BR /&gt;       I am facing a casting problem in my COM server code.Can anyone help me.I am attaching my code below. &lt;BR /&gt; &lt;BR /&gt; function Itestcmptfreq_testing( ObjectData ,&amp;amp; &lt;BR /&gt;             x,&amp;amp; &lt;BR /&gt;			 y) result (hresult) &lt;BR /&gt;        use testcmptfreq_Types &lt;BR /&gt;		use dfcom &lt;BR /&gt;        implicit none &lt;BR /&gt;        type(testcmptfreq_InstanceData) ObjectData &lt;BR /&gt;        !dec$ attributes reference :: ObjectData &lt;BR /&gt;        REAL(8), intent(in) :: x &lt;BR /&gt;        type(variant), intent(out) :: y &lt;BR /&gt;        integer(LONG) hresult &lt;BR /&gt;		integer*4 status &lt;BR /&gt;        ! TODO:  Add implementation &lt;BR /&gt;		status=variantchangetype(y,y,0,VT_R8) &lt;BR /&gt;		y=x-------------&amp;gt;&amp;gt;&amp;gt;HERE I AM GETTING ERROR &lt;BR /&gt;        hresult = S_OK &lt;BR /&gt;    end function</description>
    <pubDate>Fri, 20 Jul 2001 20:45:25 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-07-20T20:45:25Z</dc:date>
    <item>
      <title>casting problem in com server code</title>
      <link>https://community.intel.com/t5/Software-Archive/casting-problem-in-com-server-code/m-p/959482#M21500</link>
      <description>Hi friends, &lt;BR /&gt; &lt;BR /&gt;       I am facing a casting problem in my COM server code.Can anyone help me.I am attaching my code below. &lt;BR /&gt; &lt;BR /&gt; function Itestcmptfreq_testing( ObjectData ,&amp;amp; &lt;BR /&gt;             x,&amp;amp; &lt;BR /&gt;			 y) result (hresult) &lt;BR /&gt;        use testcmptfreq_Types &lt;BR /&gt;		use dfcom &lt;BR /&gt;        implicit none &lt;BR /&gt;        type(testcmptfreq_InstanceData) ObjectData &lt;BR /&gt;        !dec$ attributes reference :: ObjectData &lt;BR /&gt;        REAL(8), intent(in) :: x &lt;BR /&gt;        type(variant), intent(out) :: y &lt;BR /&gt;        integer(LONG) hresult &lt;BR /&gt;		integer*4 status &lt;BR /&gt;        ! TODO:  Add implementation &lt;BR /&gt;		status=variantchangetype(y,y,0,VT_R8) &lt;BR /&gt;		y=x-------------&amp;gt;&amp;gt;&amp;gt;HERE I AM GETTING ERROR &lt;BR /&gt;        hresult = S_OK &lt;BR /&gt;    end function</description>
      <pubDate>Fri, 20 Jul 2001 20:45:25 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/casting-problem-in-com-server-code/m-p/959482#M21500</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-07-20T20:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: casting problem in com server code</title>
      <link>https://community.intel.com/t5/Software-Archive/casting-problem-in-com-server-code/m-p/959483#M21501</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;The VARIANT data type is a system defined data type, and not one that Fortran knows about.  A VARIANT contains an indication of the type of value contained in the VARIANT (the vt field) and the value.  The value field is actually a union of all possible values.&lt;BR /&gt;&lt;BR /&gt;For an output VARIANT, you must initialize it with the right type and value.  Here is an example:&lt;BR /&gt;&lt;BR /&gt;    call VariantInit(y)&lt;BR /&gt;    y%vt = VT_R8&lt;BR /&gt;    y%vu%DOUBLE_VAL = x&lt;BR /&gt;&lt;BR /&gt;Leo</description>
      <pubDate>Sat, 21 Jul 2001 02:15:27 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/casting-problem-in-com-server-code/m-p/959483#M21501</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-07-21T02:15:27Z</dc:date>
    </item>
  </channel>
</rss>

