(unknown charset) Re: COM events

From: (unknown charset) Douglas G. Danforth <"Douglas>
Date: Thu, 26 Aug 2004 13:50:41 -0400

----boundary-LibPST-iamunique-1324395342_-_-
Content-type: text/plain

Alexei,

Hey, pretty neat!

I speculate that the process in which the 'word document' is running
actually gets the Close event, but 'that' process is probably different
from the Blackbox process that spanned it. Just a guess.

-Doug


????? wrote:

> Hi All !
>
> What can be wrong with this code?
> ("Word closed" never appears)
>
> MODULE PrivWord;
> IMPORT Log := StdLog, CtlT, Word := CtlWord9;
> TYPE Events = POINTER TO RECORD (Word.DocumentEvents) END;
> PROCEDURE ( e: Events ) New(), EMPTY;
> PROCEDURE ( e: Events ) Open(), EMPTY;
> PROCEDURE ( e: Events ) Close() ;
> BEGIN Log.String(" Word closed"); Log.Ln END Close;
> PROCEDURE Do* ( );
> VAR
> doc : Word.Document;
> events : Events;
> BEGIN
> doc := Word.NewDocument();
> doc.Application().PUTVisible( TRUE );
> NEW( events );
> CtlT.Connect( events, doc );
> END Do;
> END PrivWord.
>
> Thanks.
>
> Alexei Kraevskii
>
>
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.


----boundary-LibPST-iamunique-1324395342_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTFcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDIwNCBBcmlhbDt9DQp7XGYxXGZtb2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