18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

C++ APPLICATION PROGRAMMING INTERFACE<br />

You can use the formatting symbols shown in the following table to format the<br />

contents of memory locations.<br />

You can apply formatting symbols to structures,<br />

arrays, pointers, and objects as unexpanded<br />

variables only. If you expand the variable, the<br />

specified formatting affects all members. You<br />

cannot apply formatting symbols to individual<br />

members.<br />

Symbol<br />

ma<br />

m<br />

mb<br />

mw<br />

Format<br />

64 ASCII characters<br />

16 bytes in hex, followed by 16 ASCII<br />

characters<br />

16 bytes in hex, followed by 16 ASCII<br />

characters<br />

8 words<br />

Value<br />

0x0012ffac<br />

.4...0...".0W&..<br />

.....1W&.0.:W..1<br />

...."..1.JO&.1.2<br />

.."..1...0y....1<br />

0x0012ffac<br />

B3 34 CB 00 84 30 94 80<br />

FF 22 8A 30 57 26 00 00 .4...0....".0W&..<br />

0x0012ffac<br />

B3 34 CB 00 84 30 94 80<br />

FF 22 8A 30 57 26 00 00 .4...0...".0W&..<br />

0x0012ffac<br />

34B3 00CB 3084 8094<br />

22FF 308A 2657 0000<br />

md<br />

4 double-words<br />

0x0012ffac<br />

00CB34B3 80943084 308A22FF 00002657<br />

mu<br />

2-byte characters (Unicode)<br />

0x0012fc60<br />

8478 77f4 ffff ffff<br />

0000 0000 0000 0000<br />

With the memory location formatting symbols, you can type any value or expression<br />

that evaluates to a location. To display the value of a character array as a<br />

string, precede the array name with an ampersand, &yourname. A formatting<br />

character can also follow an expression:<br />

• rep+1,x<br />

• alps[0],mb<br />

• xloc,g<br />

• count,d<br />

To watch the value at an address or the value pointed to by a register, use the BY,<br />

WO, or DW operator:<br />

• BY returns the contents of the byte pointed at.<br />

• WO returns the contents of the word pointed at.<br />

• DW returns the contents of the doubleword pointed at.<br />

Follow the operator with a variable, register, or constant. If the BY, WO, or DW<br />

operator is followed by a variable, then the environment watches the byte, word,<br />

or doubleword at the address contained in the variable.<br />

You can also use the context operator { } to display the contents of any location.<br />

To display a Unicode string in the Watch window or the QuickWatch dialog box,<br />

use the su format specifier. To display data bytes with Unicode characters in the<br />

Watch window or the QuickWatch dialog box, use the mu format specifier.<br />

204 • <strong>ArcGIS</strong> <strong>Engine</strong> <strong>Developer</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!