ÿþ<html> <head> <title>COM Access</title> </head> <body bgcolor="white"> <CET_ADSENSEH> <script type="text/javascript"><!-- google_ad_client = "pub-5291624188982543"; /* 728x90, A>740=> 04.02.08 */ google_ad_slot = "9704471239"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </CET_ADSENSEH> <CET_HEADER> <table width="100%" border="0"> <tr> <td width="220"><a href="http://www.chmlib.com"><img src="http://www.chmlib.com/chmlib_logo.gif" alt="CHMlib Logo" width="220" height="93" border="0"></a></td> <td width="240"><div align="center"><span class="style6"><B><a href="http://www.chmlib.com">Free Online Library Of Help Files</a></B><a href="http://www.chmlib.com"><B>.<br> Read help files in convenient way.</B></a></span></div></td><td ><a href="http://www.projetex.com/">Leading Translation Management System for Translation Agencies</a>, <a href="http://www.to3000.com/">Top Translation Management Software for Freelance Translators</a>, <a href="http://www.exactspent.com/">Time Tracking Software</a>, <a href="http://www.anycount.com/">Word Count, Character Count and Line Count Software</a>, <a href="http://www.catcount.com/">Computer Assisted Translation Tool for Easy Word Count</a>, <a href="http://www.clipcount.com/">Clipboard Character Count Software</a>, <a href="http://www.anymem.com/">User-Friendly Translation Memory Software</a>, <a href="http://www.anylexic.com/">Terminology Management Software</a>, <a href="http://www.anylexic.com/Terminology-Management-Software-Server-Features.html">Terminology Management Server</a>, <a href="http://www.winlexic.com/">Microsoft Glossary Software</a>, <a href="http://www.acrolexic.com/">Dictionary of Acronyms</a>, <a href="http://www.langmates.com/">Social Network for Translators and Translation Agencies</a>, <a href="http://www.acronymia.com/">Acronyms and Abbreviations Search Engine</a>, <a href="http://www.translation3000.com/Translation/Russian_Translation.html">Russian Translation Lab</a>, <a href="http://www.translation3000.com/Translation/Ukrainian_Translation.html">Ukrainian Translation Lab</a>.</td></tr></td> </tr> </table> <table width="100%" border="0"> <tr> <td colspan="2" bgcolor="#0099FF"><div align="right" class="style1"> <div align="center"><font color="#FFFFFF">You are reading help file online using chmlib.com</font></div> </div></td> </tr> </table> </CET_HEADER> <h2><font face="Tahoma">External access to log file via COM</font></h2> <hr noshade size="1" color="#000080"> <p>You can use CoClass &quot;SmartWTT.App&quot; and COM interface ILogReader to access to a log file of the Smart WorkTime Tracker.</p> <p><b><font size="4" face="Tahoma">There is a list of supported interfaces:</font></b></p> <hr noshade size="1" color="#000080"> <p><b>interface IApplication</b></p> <blockquote> <p><b><font color="#008000">// </font></b><font color="#008000">Return ILogReader interface.</font><b><br> HRESULT _stdcall LogReader([out, retval] ILogReader ** Value );<br> &nbsp;</b></p> </blockquote> <hr noshade size="1" color="#000080"> <p><b>interface ILogReader</b></p> <blockquote> <p><b><font color="#008000">// </font></b><font color="#008000">Moves the current position of a log to a specified record. </font><b><br> HRESULT _stdcall Seek([in] long Index );</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Indicates the number of items in the log.<br> </font><b>HRESULT _stdcall Count([out, retval] long * Value );</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Receives pointer to rTodoTask structure, which contains a to-do item associated with the current log record.<br> </font><b>HRESULT _stdcall CurRecordToDo([out, retval] rTodoTask * Value );</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Receives pointer to rLogRec structure, which contains an information about the current log record.</font><b><br> HRESULT _stdcall CurRecord([out, retval] rLogRec * Value );</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Moves the current position of a log to a record with specified date. <br> </font><b>HRESULT _stdcall SeekDate([in] DATE Date );<br> &nbsp;</b></p> </blockquote> <hr noshade size="1" color="#000080"> <p><b>structure rLogRec</b></p> <blockquote> <p><b><font color="#008000">// </font></b><font color="#008000">Zero-based index of LogRecord</font><b><font color="#008000"><br> </font>long Index;&nbsp; </b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Date and time of start of application<br> </font><b>DATE StartTime;&nbsp; </b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Duration of work with the application<br> </font><b>long Duration;<br> <br> <font color="#008000">// </font></b><font color="#008000">Project name<br> </font><b>BSTR Project;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Application's description<br> </font><b>BSTR Description;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Full name of the application, or &quot;Unknown application&quot; string.</font><b><br> BSTR FullName;<br> <br> <font color="#008000">// </font></b><font color="#008000">Name of workspace or document, opened in the application.<br> </font><b>BSTR WorkspaceName;<br> &nbsp;</b></p> </blockquote> <hr noshade size="1" color="#000080"> <p><b>structure rTodoTask</b></p> <blockquote> <p><b><font color="#008000">// </font></b><font color="#008000">Category of the todo task<br> </font><b>BSTR Category;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Action item of the todo task<br> </font><b>BSTR ActionItem;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Type of the todo task ( 0 - Normal; 1 - Public )<br> </font><b>long TaskType;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Prority of the todo task (1 - Lowest;... 5 - Highest)<br> </font><b>long Priority;</b></p> <p><b><font color="#008000">// </font></b><font color="#008000">Long description of the todo task.</font><b><br> BSTR Description;</b></p> <p><font color="#008000">// Date when the task was started (It is NULL, if the task was not started)</font><b><br> DATE Started;</b></p> <p><font color="#008000">// Date when the task was finished (It is NULL, if the task was not finished)</font><b><br> DATE Finished;</b></p> <p><font color="#008000">// It is TRUE when the task has been successfully completed (valid only if Finished is not NULL)</font><b><font color="#008000"><br> </font>long Success;<br> &nbsp;</b></p> </blockquote> <hr noshade size="1" color="#000080"> <p><b><font face="Tahoma" size="4">Additional comments:</font></b></p> <blockquote> <p>Please run &quot;SmartWTT -regserver&quot; to reregister SWTT as an automation server.</p> <p>Please run &quot;SmartWTT -unregserver&quot; to unregister SWTT as a server.</p> <p>You can found a demo program with Delphi source code in the &quot;Demo&quot; folder or in the download section of our site. </p> </blockquote> <hr noshade size="1" color="#000080"> <p align="right"><font face="Arial" size="1" color="#808080">last changes : <font size="1"> <!--webbot bot="Timestamp" S-Type="EDITED" S-Format="%d-%m-%Y" startspan -->21-12-2001<!--webbot bot="Timestamp" i-checksum="12450" endspan --> </font></font></p> <CET_ADSENSEF> <script type="text/javascript"><!-- google_ad_client = "pub-5291624188982543"; /* 728x90, A>740=> 04.02.08 */ google_ad_slot = "9704471239"; google_ad_width = 728; google_ad_height = 90; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </CET_ADSENSEF> <CET_FOOTER> <table width="100%" border="0"> <tr> <td colspan="2" bgcolor="#0099FF"><div align="right" class="style1"> <div align="center"><font color="#FFFFFF">You are reading help file online using chmlib.com</font></div> </div></td> </tr> </table> <hr align="left" width="650"><BR> If you want your help file to be removed or added please send e-mail to chmlibcom@gmail.com </CET_FOOTER> </body> </html>