home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.ms-windows.programmer.misc
- Path: sparky!uunet!utcsri!newsflash.concordia.ca!garrot.DMI.USherb.CA!trepe00
- From: trepe00@DMI.USherb.CA (ERIC TREPANIER)
- Subject: Re: Is it a DDE ??
- Message-ID: <BxKnAB.BB7@DMI.USherb.CA>
- Sender: usenet@DMI.USherb.CA (Pour courrier Usenet)
- Nntp-Posting-Host: roselin
- Organization: Universite de Sherbrooke -- Dept. d'Informatique
- References: <1992Nov10.060611.367@empire.cce.cornell.edu>
- Date: Wed, 11 Nov 1992 21:49:22 GMT
- Lines: 29
-
- In article <1992Nov10.060611.367@empire.cce.cornell.edu> avinogra@empire.cce.cornell.edu (Alex Vinogradov) writes:
- >
- >I just noticed that when one uses File Manager to print a file, it calls
- >program which the file is associated with and then makes this program print
- >the file. It looks quite interesting -- for example, for *.txt files
- >Notepad pops up, prints the file, and then exits back to File Manager.
- >
- >Does anyone knows how is it done? Is that some kind of DDE interaction?
-
- Not necessarily, although in some case this is what happens. For example,
- for text files (*.txt), WinFile invokes notepad with the filename and the /p
- parameter (notepad.exe /p myfile.txt). While when you do the same with
- a Word document (*.doc), WinFile opens Word (if it isn't already opened),
- and then does a couple of DdeExecute's to remotely open your file and print
- it and then close it and optionnally close Word if it wasn't already opened.
-
- The actual behavior is defined in the registration database, which you
- can browse using Win 3.1's registration database editor (REGEDIT.EXE).
-
- >
- >Alex
- >
-
- Eric
- --
- Eric Trepanier
- eric@tgm.CAM.ORG
- "Everybody has a right to believe in something.
- I believe I'll have another beer."
-