<?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 COM server &amp; VB6 in Software Archive</title>
    <link>https://community.intel.com/t5/Software-Archive/COM-server-VB6/m-p/953917#M20283</link>
    <description>Hi, &lt;BR /&gt; &lt;BR /&gt;I am using COM server *.dll's in my VB6 applications.  The statistical routines that is being calculated in fortran takes a while and I have got a problem in that VB does not know when the COM Server has been finished. &lt;BR /&gt; &lt;BR /&gt;1) Is it possible to let VB know when the COM server is finished? &lt;BR /&gt;2)   "  to let VB know how far the process in the COM server is?  This would make it possible to give the user in VB a nice progress bar. &lt;BR /&gt; &lt;BR /&gt;( I did find some code in the old normal DLL samples, which worked - but how do I make it work in COM server ) &lt;BR /&gt; &lt;BR /&gt;On the VB side &lt;BR /&gt;Declare Sub Stats Lib "c:work&amp;#8;instats.dll" (Ret As Long, ByVal cb3 As Long) &lt;BR /&gt; &lt;BR /&gt;Private Sub cmdRun_Click() &lt;BR /&gt;      Call Stats(test, AddressOf ghproc3) &lt;BR /&gt;end sub &lt;BR /&gt; &lt;BR /&gt;Public Sub ghproc3(p1 As Long) &lt;BR /&gt;    DoEvents &lt;BR /&gt;    frmView.lblProgress.Caption = p1 &lt;BR /&gt;End Sub &lt;BR /&gt; &lt;BR /&gt;On the Fortran side - &lt;BR /&gt;subroutine CalcStats(cbproc3) &lt;BR /&gt; &lt;BR /&gt;interface &lt;BR /&gt; &lt;BR /&gt;subroutine cbproc3(i1) &lt;BR /&gt;        integer*4 i1 &lt;BR /&gt;end &lt;BR /&gt; &lt;BR /&gt;end interface &lt;BR /&gt; &lt;BR /&gt;do index=1,nloop &lt;BR /&gt; &lt;BR /&gt;      call cbproc3(index) &lt;BR /&gt;                 &lt;BR /&gt;      !rest of code &lt;BR /&gt;      ........ &lt;BR /&gt;....... &lt;BR /&gt; &lt;BR /&gt;Otherwise the COM server works very nice with VB and it is lightning fast.  ( I grew up in the VB3 days ) &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt; &lt;BR /&gt;Ian</description>
    <pubDate>Tue, 12 Jun 2001 20:27:28 GMT</pubDate>
    <dc:creator>Intel_C_Intel</dc:creator>
    <dc:date>2001-06-12T20:27:28Z</dc:date>
    <item>
      <title>COM server &amp; VB6</title>
      <link>https://community.intel.com/t5/Software-Archive/COM-server-VB6/m-p/953917#M20283</link>
      <description>Hi, &lt;BR /&gt; &lt;BR /&gt;I am using COM server *.dll's in my VB6 applications.  The statistical routines that is being calculated in fortran takes a while and I have got a problem in that VB does not know when the COM Server has been finished. &lt;BR /&gt; &lt;BR /&gt;1) Is it possible to let VB know when the COM server is finished? &lt;BR /&gt;2)   "  to let VB know how far the process in the COM server is?  This would make it possible to give the user in VB a nice progress bar. &lt;BR /&gt; &lt;BR /&gt;( I did find some code in the old normal DLL samples, which worked - but how do I make it work in COM server ) &lt;BR /&gt; &lt;BR /&gt;On the VB side &lt;BR /&gt;Declare Sub Stats Lib "c:work&amp;#8;instats.dll" (Ret As Long, ByVal cb3 As Long) &lt;BR /&gt; &lt;BR /&gt;Private Sub cmdRun_Click() &lt;BR /&gt;      Call Stats(test, AddressOf ghproc3) &lt;BR /&gt;end sub &lt;BR /&gt; &lt;BR /&gt;Public Sub ghproc3(p1 As Long) &lt;BR /&gt;    DoEvents &lt;BR /&gt;    frmView.lblProgress.Caption = p1 &lt;BR /&gt;End Sub &lt;BR /&gt; &lt;BR /&gt;On the Fortran side - &lt;BR /&gt;subroutine CalcStats(cbproc3) &lt;BR /&gt; &lt;BR /&gt;interface &lt;BR /&gt; &lt;BR /&gt;subroutine cbproc3(i1) &lt;BR /&gt;        integer*4 i1 &lt;BR /&gt;end &lt;BR /&gt; &lt;BR /&gt;end interface &lt;BR /&gt; &lt;BR /&gt;do index=1,nloop &lt;BR /&gt; &lt;BR /&gt;      call cbproc3(index) &lt;BR /&gt;                 &lt;BR /&gt;      !rest of code &lt;BR /&gt;      ........ &lt;BR /&gt;....... &lt;BR /&gt; &lt;BR /&gt;Otherwise the COM server works very nice with VB and it is lightning fast.  ( I grew up in the VB3 days ) &lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt; &lt;BR /&gt;Ian</description>
      <pubDate>Tue, 12 Jun 2001 20:27:28 GMT</pubDate>
      <guid>https://community.intel.com/t5/Software-Archive/COM-server-VB6/m-p/953917#M20283</guid>
      <dc:creator>Intel_C_Intel</dc:creator>
      <dc:date>2001-06-12T20:27:28Z</dc:date>
    </item>
  </channel>
</rss>

