5 messages in com.perforce.perforce-userCodewright in P4EDITOR| From | Sent On | Attachments |
|---|---|---|
| Mark...@pml.com | 04 Feb 1998 08:47 | |
| Chri...@perforce.com | 04 Feb 1998 12:14 | |
| Nick...@nvidia.com | 04 Feb 1998 12:48 | |
| Robe...@SCRAP.de | 04 Feb 1998 23:14 | .reg, .reg, .reg |
| gils...@nms-europe.comgils_gayraud | 05 Feb 1998 03:42 |
| Subject: | Codewright in P4EDITOR![]() |
|---|---|
| From: | Chri...@perforce.com (Chri...@perforce.com) |
| Date: | 02/04/1998 12:14:49 PM |
| List: | com.perforce.perforce-user |
| We can't get Codewright to work as the P4EDITOR setting. Codewright is a | Windows 95/NT text editor. Out of the box, invoking its exectuable, | cw32.exe, with a filename will either open the file in an existing | session, or failing that, start the editor and open the file. The | problem is that there's no way to have that invocation wait for the | editing of the file to complete. This was confirmed by Premia's tech | support line.
It's the same problem with Microsoft's "write" program. Unlike "notepad", there seems to be no way to get it to run synchronously. The main program exits, and the window is launched asynchronously.
Perforce (as of 97.3) invokes the editor with:
spawnvp( _P_WAIT, argv[0], (const char **)argv )
The _P_WAIT is supposed to do the trick, but programs like "write" and "cw32" seem to be too smart (by half).
If anyone knows a way to make these programs operate synchronously, I'd love to hear about it.
Christopher
----- Christopher Seiwald Perforce Software 1-510-864-7400 seiwald at perforce.com f-f-f-fast SCM http://www.perforce.com





.reg, .reg, .reg