[译]Windiff助手工具
By robot-v1.0
本文链接 https://www.kyfws.com/applications/windiff-helper-tool-zh/
版权声明 本博客所有文章除特别声明外,均采用 BY-NC-SA 许可协议。转载请注明出处!
- 2 分钟阅读 - 979 个词 阅读量 0[译]Windiff助手工具
原文地址:https://www.codeproject.com/Articles/7249/Windiff-Helper-Tool
原文作者:Cagdas Calik
译文由本站 robot-v1.0 翻译
前言
A tool for effective usage of Windiff.
有效使用Windiff的工具.
介绍(Introduction)
文件比较是编程中必不可少的任务之一,尤其是当您正在修改某人的代码或想查看在两个程序版本之间进行了哪些更改时.尽管Windiff是一种旧工具,但它是Windows平台上最受欢迎的文件比较工具之一.(File comparing is one of the indispensable tasks of programming, especially if you’re modifying someone’s code or want to see what changes you’ve made between the two versions of your programs. Although being an old tool, Windiff is one of the most popular file comparing tools for Windows platform.)
该工具的主要缺点是:如果要比较的两个文件(或目录)位于不同的位置,则必须通过Windiff的"打开文件"对话框浏览每个项目,或将它们都复制到同一目录中以将它们拖到Windiff中.(One major drawback of this tool is; if you have two files (or directories) to be compared that are in different locations, you either have to browse each of the items through the Windiff’s Open File dialog, or copy both of them to the same directory in order to drag them into Windiff.)
我对这个问题的解决方案是这个小工具,您可以将文件拖放到该工具上,然后按一个按钮以使Windiff比较它们. (前提是您之前已告知该工具有关Windiff的位置.)(My solution to this problem is this tiny tool that you can drag and drop files on it and press one button to make Windiff compare them. (Provided that you inform the tool about Windiff’s location before.))
使用代码(Using the code)
源代码非常小,不言自明.您只需将两个文件名作为输入并通过将这些文件名作为程序的命令行参数提供来启动可执行文件.该工具使用的所有设置都存储在注册表中.(The source code is very small and self-explanatory. You just take two file names as input and launch an executable by supplying these file names as command line arguments to the program. All of the settings the tool uses is stored in the registry.)
兴趣点(Points of Interest)
您应该首先从"选项->定位Windiff"菜单项中找到Windiff可执行文件.您可以从"选项->参数"菜单项为Windiff提供其他参数.(You should first locate Windiff executable from “Options->Locate Windiff” menu item. You can give additional parameters to Windiff from “Options->Parameters” menu item.)
历史(History)
- 版本1.01-30/05/2004-缓冲区溢出错误修复.(Version 1.01 - 30/05/2004 - Buffer overflow bug fix.)
- 1.00版-2003年7月7日-第一版.(Version 1.00 - 07/07/2003 - First release.)
许可
本文以及所有相关的源代码和文件均已获得The Code Project Open License (CPOL)的许可。
VC7.0 VC7.1 C++ VC6 WinXP Win2003 Windows Win2K Visual-Studio Dev 新闻 翻译