This section contains information on how to change between a dynamic
library (.dll) and static library (.lib). The library projects and their default
output and configuration in the Release build is as follows:
</p>
<divclass="informaltable">
<tableborder="1"width="80%">
<colgroup>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<thalign="center">Project</th>
<thalign="center">Default Output</th>
<thalign="center">Default Configuration</th>
</tr>
</thead>
<tbody>
<tr>
<tdalign="center">db_small_static</td>
<tdalign="center">libdb_small51s.lib</td>
<tdalign="center">Static Library</td>
</tr>
<tr>
<tdalign="center">db_static</td>
<tdalign="center">libdb51s.lib</td>
<tdalign="center">Static Library</td>
</tr>
<tr>
<tdalign="center">db_sql</td>
<tdalign="center">libdb_sql51.dll</td>
<tdalign="center">Dynamic Library</td>
</tr>
<tr>
<tdalign="center">db_sql_static</td>
<tdalign="center">libdb_sql51s.lib</td>
<tdalign="center">Static Library</td>
</tr>
</tbody>
</table>
</div>
<p>
To change a project configuration type in Visual Studio 2005, select a
project and do the following:
</p>
<divclass="orderedlist">
<oltype="1">
<li>Choose <spanclass="emphasis"><em>Project</em></span>-><spanclass="emphasis"><em>Properties</em></span> and navigate to <codeclass="literal">Configuration Properties.</code></li>
<li>Under <codeclass="literal">Project Defaults</code>, change the <codeclass="literal">Configuration Type</code> to your desired type.</li>
</ol>
</div>
<p>Note: After this change, the output file names change to the Visual Studio 2005 defaults based on the project name.</p>
There are many possible target CPU architectures for a Windows
Mobile application. This section outlines the process required to
add a new target architecture to the project files supplied with
Berkeley DB.
</p>
<p>
The Visual Studio 2005 project files will by default build for
Pocket PC 2003 and Smartphone 2003, and Windows Mobile 6.5.3 Professional. If you want to
build for other platforms such as Windows Mobile 6.0, 6.1, or 6.5, you need to follow the steps provided in this section.
</p>
<p>
Different target architectures are available in different Platform
SDK or DTK downloads from Microsoft. The appropriate SDK must be installed
for your mobile architecture before you can build for that
platform. You can find the downloads at the <aclass="ulink"href=" http://msdn.microsoft.com/en-us/windowsmobile/default.aspx"target="_top">Microsoft Developer Center</a> page.
After building for a different platform, change the deployment remote directory for the <codeclass="literal">db_sql</code> project to run the <codeclass="literal">wce_sql</code> sample application:
</p>
<divclass="orderedlist">
<oltype="1">
<li>Select <codeclass="literal">db_sql</code> from the <codeclass="literal">Solution explorer</code> window.</li>
<li>Choose <spanclass="emphasis"><em>Project->Properties</em></span> and navigate to <codeclass="literal">Configuration Properties</code>.</li>
<li>Under <codeclass="literal">Deployment</code>, change the remote directory to <codeclass="literal">%CSIDL_PROGRAM_FILES%\wce_sql</code>.</li>