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.

C++ APPLICATION PROGRAMMING INTERFACE<br />

Windows<br />

Go to Start menu > Programs > <strong>ArcGIS</strong> > <strong>Developer</strong> Help > C++ Help. Or you<br />

can open the C++ version of <strong>ArcGIS</strong> <strong>Developer</strong> Help from your <strong>ArcGIS</strong> <strong>Engine</strong><br />

installation directory by navigating to \<strong>Developer</strong>Kit\Help\COM and doubleclicking<br />

<strong>ArcGIS</strong>DevHelpVC.chm.<br />

Solaris and Linux<br />

Run /developerkit/view<strong>ArcGIS</strong>DevHelpC++.<br />

For general information on consuming and<br />

extending with the APIs, see the discussion in<br />

Chapter 2 , ‘<strong>ArcGIS</strong> software architecture’, and in<br />

particular the section ‘ <strong>ArcGIS</strong> application<br />

programming interfaces’.<br />

GETTING STARTED WITH C++ AND ARCOBJECTS<br />

The C++ API can be a powerful tool for ArcObjects programming; however,<br />

there are some steps to take to get started with it. All of the documents mentioned<br />

in this section are in the help system as individual pages and can be found<br />

through the index. The goal of this document is to provide a single work flow<br />

that takes you through the steps of choosing a development environment, leaving<br />

you with a basic understanding of how to use the C++ API. Before you begin,<br />

you will want to make sure that your desired application is one that can be completed<br />

with the C++ API. Make sure your plans fall within the limitations of the<br />

C++ API, which can be found in the ‘Limitations’ section in this chapter.<br />

Pre-ArcObjects C++ configuration steps<br />

Make sure that you are using a supported product and platform for the C++ API<br />

by checking the supported products and platforms. You should also verify that<br />

your C++ compiler is among those supported.<br />

This section is intended to give you a starting point for learning the API. However,<br />

its purpose is not to teach you how to set up a Windows, Solaris, or Linux<br />

machine for C++ development, and it assumes that you can already compile a<br />

simple C++ program on your computer. The following steps provide a quick<br />

check to determine if your computer is at this point. For each of them, you will<br />

use this code snippet:<br />

#include <br />

int main(int argc, char** argv)<br />

{<br />

std::cerr

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

Saved successfully!

Ooh no, something went wrong!