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.

VISUAL C++<br />

Symbol<br />

d, i<br />

Format<br />

signed decimal integer<br />

Value<br />

0xF000F065<br />

u unsigned decimal integer 0x0065 101<br />

Displays<br />

-268373915<br />

o unsigned octal integer 0xF065 0170145<br />

x, X hexadecimal integer 61541 0x0000F065<br />

l, h long or short prefix for d, I, u, o, x, X 00406042, hx 0x0C22<br />

f signed floating-point 3./2. 1.500000<br />

e signed scientific notation 3./2. 1.500000e+00<br />

g e or f, whichever is shorter 3./2. 1.5<br />

c single character 0x0065 'e'<br />

s string 0x0012FDE8 "Hello"<br />

su Unicode string "Hello"<br />

hr string 0 S_OK<br />

To use a formatting symbol, type the variable name followed by a comma and the<br />

appropriate symbol. For example, if var has a value of 0x0065, and you want to<br />

see the value in character form, type “var,c” in the Name column of the Watch<br />

window. When you press Enter, the character format value appears: var,c = ‘e’.<br />

Likewise, assuming that hr is a variable holding HRESULTs, view a humanreadable<br />

form of the HRESULT by typing “hr,hr” in the Name column.<br />

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

contents of memory locations.<br />

Symbol<br />

ma<br />

m<br />

mb<br />

mw<br />

md<br />

mu<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 />

4 double-words<br />

2-byte characters (Unicode)<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 />

0x0012ffac<br />

00CB34B3 80943084 308A22FF 00002657<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 a location. To display the value of a character array as a string,<br />

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

can also follow an expression:<br />

• rep+1,x<br />

• alps[0],mb<br />

118 • <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!