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

• Linux command-line programming with make<br />

• Solaris Motif <strong>ArcGIS</strong> control programming with make<br />

• Linux Motif <strong>ArcGIS</strong> control programming with make<br />

• Solaris GTK <strong>ArcGIS</strong> control programming with make<br />

• Linux GTK <strong>ArcGIS</strong> control programming with make<br />

Similarly, if you wrote code on one platform and now want to transfer it to<br />

another, simply copy your code to the supported platform you want to transfer<br />

it to, select and modify the appropriate makefile from above, and compile<br />

and run the application on the new platform.<br />

5. This introduction has not covered every piece of the C++ API. Another tool<br />

provided for you are the samples. To further your C++ API knowledge, as<br />

well as your understanding of the ArcObjects framework, read through and<br />

try some of the samples. For information on how to use the C++ samples, see<br />

the online Help topic ‘How to Use the C++ Samples’, and to find samples for<br />

C++ you can use the samples query page in the online Help.<br />

Although not all of the samples are written in C++, they are still useful for<br />

learning the ArcObjects framework and the recommended method calls to use<br />

in development. You may find code written in Visual Basic that does a task<br />

you would like to do in C++. See the section ‘Converting from Visual Basic to<br />

C++’ in this chapter for some tips on converting VB code to C++.<br />

6. There are important C++ API topics that have not been covered in this<br />

introduction. As you need additional information, refer to the following<br />

documents:<br />

• Some of the functions specific to the C++ API have been introduced to<br />

you through the walkthroughs and samples, but the complete documentation<br />

on them is in the ‘Recommended function usage’ section in this chapter.<br />

• Recommended C++ programming techniques:<br />

° Smart types<br />

° Naming conventions<br />

° Debugging tips in <strong>Developer</strong> Studio<br />

• Recommended ArcObjects programming practices:<br />

° Cocreating an object with a smart pointer reference after the smart<br />

pointer is declared<br />

° ESRI System interfaces<br />

° Raw pointers in function signatures<br />

° Return ArcObjects from functions<br />

° Inline query interface<br />

° Replicating the functionality of instanceof (Java) or TypeOf (Visual<br />

Basic)<br />

° Getting a feature’s field values from type VARIANT<br />

Chapter 4 • <strong>Developer</strong> environments • 211

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

Saved successfully!

Ooh no, something went wrong!