Nп/п : 17 из 100
 От   : Robert Lipman                       2:5075/128        30 авг 23 17:57:22
 К    : Harald Oehlmann                                       30 авг 23 03:59:01
 Тема : Re: Suppress output from tcom object
----------------------------------------------------------------------------------
                                                                                 
@MSGID:
<a95ae0c2-2464-4db9-8cf3-f830150353b2n@googlegroups.com> 76fd8cf1
@REPLY: 1@dont-email.me> 19a71154
@REPLYADDR Robert Lipman
<robert.lipman@gmail.com>
@REPLYTO 2:5075/128 Robert Lipman
@CHRS: CP866 2
@RFC: 1 0
@RFC-References:
<1e480fbb-11b9-45d0-be02-769780f0b1c6n@googlegroups.com> 1@dont-email.me>
@RFC-Message-ID:
<a95ae0c2-2464-4db9-8cf3-f830150353b2n@googlegroups.com>
@TZUTC: -0700
@PID: G2/1.0
@TID: FIDOGATE-5.12-ge4e8b94
Hi,

 Here`s some more background about the problem. There are two
versions of my software, a GUI and a command-line version. You can download
them from
https://www.nist.gov/services-resources/software/step-file-analyzer-and-viewer and the source code is on GitHub https://github.com/usnistgov/SFA

 The IFCsvr generates some text output when the COM object is
created and then when the COM object is used. In the GUI version I have
no idea where that text output goes. However, in the command-line, both
sets of text are created. I`m not interested in the first text when the
COM object is created, but the other is useful.

 So, in the command-line version I want to suppress the first bit
of text, but keep the second set of text which is already the
behavior. In the GUI version, I`d also like to get the second set of text,
but it`s not as important. The suppression is more important in the
command-line version.

 In general, what would be the common ways to redirect output from:
set objIFCsvr [::tcom::ref createobject IFCsvr.R300]

 I have considered twapi which would also let me to upgrade to Tcl
8.6 but it doesn`t really buy me anything. Years ago I started making
a twapi version but never finished. I never liked the twapi syntax
for iterating on a COM object. Tcom has ::tcom::foreach which looks a
lot better.

Thanks,

Bob
--- G2/1.0
 * Origin: usenet.network (2:5075/128)
SEEN-BY: 5001/100 5005/49 5015/255 5019/40 5020/715
848 1042 4441 12000
SEEN-BY: 5030/49 1081 5058/104 5075/128
@PATH: 5075/128 5020/1042 4441



   GoldED+ VK   │                                                 │   09:55:30    
                                                                                
В этой области больше нет сообщений.

Остаться здесь
Перейти к списку сообщений
Перейти к списку эх