]> www.wagner.pp.ru Git - sites/home_page.git/blob - software/tcl/tcom.html
d783d4a56556b2baef2d7ad0c968c7e0d3a14674
[sites/home_page.git] / software / tcl / tcom.html
1 <HTML><HEAD>
2 <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=koi8-r">
3 <TITLE>Improved TCOM extension</TITLE>
4 <META NAME="description" CONTENT="TCOM tcl extension which do not depend
5 of external DLL's and have improved error reporting">
6 </HEAD><BODY>
7 <H1>Improved TCOM extension</h1>
8 <A HREF="http://www.vex.net/~cthuang/tcom/">TCOM</A> extension is very
9 handy if one want to automate some things on Windows.
10 <p>
11 I've discoverted two problems with it:
12 <ol>
13 <li>Precompled version as distributed on author's site or in <a
14 href="http://www.activestate.com/Products/ActiveTcl">ActiveTcl</a>, depends on
15 external MSVCP60.DLL, which might not present on target systems.
16 It is especially bad, if you are planning to wrap your script using <a
17 href="http://freewrap.sourceforge.net/">freewrap</a> or simular tool to
18 provide standalone executable which don't need installation.
19 <li>Error reporting is flawed. Most times I encounter error in the
20 Active-X object, tcom repports &quot;Unknown Error xxxx&quot;
21 while errorcode it shows, have meaningful error message, which can be
22 looked up using Windows API FormatMessage call.
23 </ol>
24 <p>
25 Second problem is addressed with <a href="tcom_error_msg.diff">this
26 patch</a>.
27 <p>
28 To address first problem, one need to rebuild Tcom using different
29 runtime library switches. I cannot provide patch for tcom.dsp project
30 file, as distributed with tcom sources, because I've used Visual Studio
31 7.1, not obsolete 6.0, and it converts project files into completely
32 different format before allowing to edit it with proprieties dialog.
33 <p>
34 Here is minimal <a
35 href="http://ftp.45.free.net/pub/tcl/tcom-3.9.zip">set of files</a> required to use tcom extension (no
36 exeserver and dllserver). tcom.dll doesn't depend on external DLLs
37 excepth those which are part of windows kernel and are guaranteed to
38 present on any Windows system (2000/XP/2003 - I'm not interested in
39 systems from previous century)
40 </p>
41
42
43
44 </BODY>
45 </HTML>