Microsoft KB Archive/945374

= You cannot compile a SQL Server Compact-based OLE DB application for Windows Mobile 5.0, and the Transact.h file cannot be found =

Article ID: 945374

Article Last Modified on 12/13/2007

-

APPLIES TO


 * Microsoft SQL Server 2005 Compact Edition
 * Microsoft SQL Server 2005 Mobile Edition

-



SYMPTOMS
You have an OLE DB application for Microsoft Windows Mobile 5.0. The OLE DB application is based on one of the following versions of Microsoft SQL Server Compact:
 * SQL Server Compact 3.5
 * SQL Server 2005 Compact Edition (version 3.1)
 * SQL Server 2005 Mobile Edition (version 3.0)

When you try to compile the OLE DB application, the compilation may fail. Additionally, a message may appear that states that the Transact.h file cannot be found.



CAUSE
The OLE DB application that is mentioned in the &quot;Symptoms&quot; section requires the Transact.h header file to compile. This problem occurs because the Transact.h file is not contained in the Windows Mobile 5.0 SDK for Pocket PC or in the Windows Mobile 5.0 SDK for Smartphone.



RESOLUTION
The Transact.h header file that is included with the SDK for Windows Mobile 2003-based Pocket PCs is compatible with the Transact.h header file that is required to compile SQL Server Compact-based OLE DB applications for Windows Mobile 5.0.

To resolve this problem, copy the Transact.h header file from the SDK for Windows Mobile 2003-based Pocket PCs to the Windows Mobile 5.0 SDK for Pocket PCs or Smartphones. To do this follow these steps:  Obtain the SDK for Windows Mobile 2003-based Pocket PCs. To do this, visit the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyID=9996b314-0364-4623-9ede-0b5fbb133652

. Perform one of the following actions:  If you are using Windows Mobile 5.0 SDK for Pocket PC, copy the Transact.h file from %Program Files%\Windows CE Tools\wce420\POCKET PC 2003\Include\Armv4 to %Program Files%\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Include\Armv4i. If you are using Windows Mobile 5.0 SDK for Smart Phone, copy the transact.h file from %Program Files%\Windows CE Tools\wce420\POCKET PC 2003\Include\Armv4 to %Program Files%\Windows CE Tools\wce500\Windows Mobile 5.0 Smartphone SDK\Include\Armv4i. 

Keywords: kbexpertiseadvanced kbtshoot kbprb KB945374

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.