18.04.2015 Views

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

ArcGIS Engine Developer Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

VISUAL C++<br />

Loading the following shortcuts can greatly increase your productivity with the<br />

Visual Studio development environment.<br />

Shortcut<br />

Esc<br />

Ctrl+Shift+N<br />

Ctrl+N<br />

Ctrl+F6 or<br />

Ctrl+Tab<br />

Ctrl+Alt+A<br />

Ctrl+Alt+C<br />

Ctrl+Alt+T<br />

Ctrl+H<br />

Ctrl+F<br />

Ctrl+Alt+I<br />

Ctrl+Alt+L<br />

Ctrl+Alt+O<br />

Ctrl+Alt+J<br />

Ctrl+Alt+P<br />

Ctrl+Shift+O<br />

Ctrl+O<br />

Ctrl+P<br />

Ctrl+Shift+S<br />

Ctrl+S<br />

Ctrl+A<br />

Action<br />

Close a menu or dialog box, cancel an operation in progress, or place focus in the current document window.<br />

Create a new file.<br />

Create a new project.<br />

Cycle through the MDI child windows one window at a time.<br />

Display the auto window and move the cursor into it.<br />

Display the call stack window and move the cursor into it.<br />

Display the document outline window and move the cursor into it.<br />

Display the find window.<br />

Display the find window. If there is no current Find criteria, put the word under your cursor in the find box.<br />

Display the immediate window and move the cursor into it. Not available if you are in the text editor window.<br />

Display the locals window and move the cursor into it.<br />

Display the output window and move the cursor into it<br />

Display the project explorer window and move the cursor into it.<br />

Display the properties window and move the cursor into it.<br />

Open a file.<br />

Open a project.<br />

Print all or part of the document.<br />

Save all of the files, projects, or documents.<br />

Select all.<br />

Save the current document or selected item or items.<br />

Navigating through online help topics<br />

Right-click a blank area of a toolbar to display a list of all the available<br />

toolbars. The Infoviewer toolbar contains up and down arrows that allow you<br />

to cycle through help topics in the order in which they appear in the table of<br />

contents. The left and right arrows cycle through help topics in the order that<br />

you visited them.<br />

IMPORTING ARCGIS TYPE LIBRARIES<br />

To reference <strong>ArcGIS</strong> interfaces, types, and objects, you will need to import the<br />

definitions into Visual C++ types. The #import command automates the creation<br />

of the necessary files required by the compiler. The #import was developed to<br />

support Direct-To-COM. When importing <strong>ArcGIS</strong> library types, there are a<br />

number of parameters that must be passed.<br />

#pragma warning(push)<br />

#pragma warning(disable : 4192) /* Ignore warnings for types that are<br />

duplicated in win32 header files. */<br />

#pragma warning(disable : 4146) /* Ignore warnings for use of minus on<br />

unsigned types. */<br />

#import "\Program Files\<strong>ArcGIS</strong>\com\esriSystem.olb"<br />

/* Type library to generate C++ wrappers. */ \<br />

raw_interfaces_only, /* Don't add raw_ to method names. */ \<br />

raw_native_types, /* Don't map to DTC smart types. */ \<br />

no_namespace, /* Don't wrap with C++ name space. */ \<br />

named_guids, /* Named guids and declspecs. */ \<br />

exclude("OLE_COLOR", "OLE_HANDLE", "VARTYPE")<br />

/* Exclude conflicting types. */<br />

#pragma warning(pop)<br />

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