ICivicAddressReport::GetPostalCode method
Retrieves the postal code.
Syntax
HRESULT GetPostalCode( [out] BSTR *pbstrPostalCode );
Parameters
- pbstrPostalCode [out]
-
Address of a BSTR that receives the postal code.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Examples
The following example demonstrates how to call GetPostalCode.
hr = pCivicAddressReport->GetPostalCode(&bstrPostalCode);
if (SUCCEEDED(hr) && (bstrPostalCode.Length() != 0))
{
wprintf(L"\tPostal Code:\t%s\n", bstrPostalCode);
}
Requirements
|
Minimum supported client | Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server | None supported [desktop apps only] |
|
Client | Windows 7 |
|
Header |
|
|
DLL |
|
See also
Send comments about this topic to Microsoft
Build date: 10/27/2012