Mapping X Windows Tools to Microsoft Windows


Mapping X Windows Tools to Microsoft Windows

The primary tools for Win32 development are the Microsoft Platform SDK and Microsoft Visual Studio. If the Microsoft Platform SDK is installed in the default location, tools are found in DriveLetter :\Program Files\Microsoft Platform SDK\Bin. Also look for tools in the SDK Help or open Tools Help in the DriveLetter :\Program Files\Microsoft Platform SDK\Help directory. SDK Help and Tools Help provide descriptions of all the SDK tools. In Visual Studio, tools are found in DriveLetter :\Program Files\Microsoft Visual Studio\Common\Tools. Online Help provides information on these tools.

Note  

In some cases, the X Windows tool and the Win32 tool have the same name but do not perform the same function. The bitmap tool is an example.

Bitmap vs. Imagedit.exe and Shed.exe

The Imagedit.exe tool in the Platform SDK supports the same functionality as bitmap . In Visual Studio, use the resource editor to create and edit bitmaps and icons. In MSDN, look for resource editors under Visual Tools and Languages\Visual Studio 6.0 Documentation\Visual C++ Documentation\Using Visual C++\Visual C++ User s Guide\Resource Editors.

Shed.exe is a Win32 tool included in the Platform SDK. It is used to edit hotspots. It is found in DriveLetter :\Program Files\Microsoft Platform SDK\Bin\WinNT. The Hotspot Editor is used to create and edit hypergraphics. A hypergraphic is a bitmap that includes one or more hotspots.

Mspaint.exe can also be used to edit bitmaps. This utility is found in the /System32 directory.

Kodakimg.exe can be used to open, view, and edit a large variety of graphic files. This utility is found in DriveLetter :\Program File\Windows NT\Accessories\ImageVue.

Manual Pages vs. Help

UNIX provides online documentation, which explains commands and procedures, in the form of manual pages . To access a particular manual page, type man command_name at the shell prompt.

Windows systems use the commands help and help CommandName . These provide a similar look and feel to man on UNIX systems. However, most of Windows Help is found on the Start menu under Help. Additionally most if not all of the components of Microsoft development environment (MSDN, compilers, Visual Studio, and Word) provide topical help.

At a command prompt, type help and press ENTER to see a list of available commands. Typing help followed by the name of the command (for example, typing help setlocal ) provides information about the specified command.

In the system directory you will find a Help directory. Here you will find compiled HTML format Help on all aspects of the Windows environment. Windows Advanced Server installations provide ntbooks.exe in the system32 directory. This is an excellent Help resource for all windows server commands.

grep vs. Qgrep.exe

The Qgrep utility can be found in the Platform SDK/Bin directory. It performs much like the UNIX grep family of commands.

xcalc vs. Calc.exe

The Calc.exe utility is the Windows calculator program. It is located in the /System32 directory and provides number base conversion between decimal, hexadecimal, and binary.

xclipboard vs. Clipbrd.exe

The Clipbrd.exe utility is found in the /System32 directory and provides the Win32 Clipboard viewing, sharing, and saving functions.

xedit vs. Notepad.exe

The Notepad.exe utility is a simple text editor that can be used like xedit . Notepad is located in the system root directory.

xev vs. Spy.exe or Spyxx.exe

The Spy.exe and Spyxx.exe utilities provide functionality similar to that of xev . These utilities allow selection of a window and filtering of desired events and messages. The Spy.exe utility is provided in the Platform SDK, and Spyxx.exe (also called spy++ ) is provided in Visual Studio.

xfd vs. Fontview.exe

The Fontview.exe command-line utility provides a view of fonts. For example, the following command displays the Modern fonts:

 fontview modern.fon 

However, the Charmap.exe utility, a GUI utility found in the /System32 directory, is a much better choice for viewing and manipulating fonts in a graphical manner.

xkill vs. Kill.exe

The Win32 Kill.exe utility provides the same functionality as the X Windows xkill command. The Kill.exe utility is found in the /System32 directory.

When a user presses CTRL+ALT+DEL on a Windows-based system, a dialog box appears. Click the Task Manager button to display the Task Manager dialog box. To display the process ID (PID) of the current running tasks , click the Processes tab in the Task Manager dialog box. Locate the errant process in the list and use that PID in the kill command, or click the process and then click End Process .

On a computer with Platform SDK installed, the user can track down and kill a troublesome process by using the Pview.exe utility. This utility is found in the directory /Program Files/Microsoft Platform SDK/Bin/WinNT.

xlsclients vs. Pview.exe

Like xlsclients , the Pview.exe utility lists the current running applications. Pview is a GUI application that can be used to select the name of a computer to view.

xlsfonts vs. Fonts Control Panel Item

The Windows Control Panel Fonts item provides all font management functionality. For more information, see Fonts Help in the /System/Help Fonts.chm file.

xmag vs. Magnify.exe or Zoomin.exe

The Win32 Magnify.exe utility is equivalent to X Windows xmag . Magnify is found in the /System32 directory on Windows 2000 and WindowsXP.

On a computer with Microsoft Visual Studio or the Platform SDK installed, the user also has access to the Zoomin.exe utility, which is found in Visual Studio at DriveLetter :\Program Files\Microsoft Visual Studio\Common\Tools or in the Platform SDK at DriveLetter :\Program Files\Microsoft Platform SDK\Bin.

xon vs. Start.exe or Remote.exe

Like the X Windows xon command, the Windows Start.exe utility starts a new command window to run a specified program or command.

The Platform SDK provides the Remote.exe utility. Remote is a debugging utility, but proves to be useful for much more than debugging. Use this application to start a server end and a client end, which allows commands to be executed on a remote system. The Remote utility is found at DriveLetter :/Program Files/Microsoft Platform SDK/Bin/Dbg.

xset client vs. Control Panel Items

Microsoft Windows provides a GUI interface for managing the keyboard, the mouse, and the video display. Control Panel includes an item for managing each of these devices.

The Mode , Color , and Graftabl commands can be used to perform some device management. To see a list of features for these three commands, type help mode , help color , or help graftabl at a command prompt.

If a particular application requires advanced device control, that application must provide code to perform this required functionality. Use the SystemParametersInfo() function to set or retrieve systemwide parameters.

xterm vs. Hyperterm.exe

The Windows utility Hyperterm.exe , found in the /Program Files/Windows NT directory, is a terminal emulator similar to the X Windows xterm command.




UNIX Application Migration Guide
Unix Application Migration Guide (Patterns & Practices)
ISBN: 0735618380
EAN: 2147483647
Year: 2003
Pages: 134

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net