home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / os / mswindo / programm / misc / 3372 < prev    next >
Encoding:
Text File  |  1992-11-11  |  1.7 KB  |  42 lines

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