Summary
Instructions provided describe how to set up environmental variables to run Esri's WxWidget C++ samples on Windows.
Procedure
- Browse to \Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MakefileUtilities and open the 'mk.Windows' file in a text editor.
- In mk.Windows provide a value for WXDIR as the installation directory of WXWidgets.
Example:
WXDIR = C:\wxWidgets-2.8.7
- In mk.Windows add /I"$(AGSENGINEJAVA)\bin" to WXCPPFLAGS
Example:
WXCPPFLAGS = /I$(WXDIR)\include /I$(WXDIR)\include\msvc /Zc:wchar_t- /I"$(AGSENGINEJAVA)\bin"
- Set the environmental variables for the system.
Add Path to following directories.
a) \Program Files\ArcGIS\Engine10.0\bin
b) \Program Files\ArcGIS\Desktop10.0\Bin
c) \Program Files\ArcGIS\DeveloperKit10.0\include\CatIDs
d) \wxWidgets-2.8.7\lib\vc_dll\wxWidgets-2.8.7\include
- Open a Visual Studio command prompt and browse to Esri's C++ samples folder.
Example (ArcGIS 10.0):
\Program Files\ArcGIS\DeveloperKit10.0\Samples\ArcObjectsCPP\MapTocToolbar\Wx_Cpp
- Run nmake –f NMakefile.mak to compile the sample.
- After the sample is compiled, run the executable.