I am developping a non-managed C++ application for PocketPC using a SQL Server mobile database.
The application is compiled for PocketPC 2003 and uses SQL Server Mobile v2. I use Visual Studio 2005. But I need to compile the application for Windows Mobile 5.0 devices. So I installed the WM5 SDK and had the WM5 into my project configuration.
The "ssceoledb.h" which I include incluses the "transact.h" file. But my problem is that this file is only provided with the PocketPC 2003 SDK and not in the WM5 SDK.
So I cannot use the WM5 configuration project with SQL Server. I also tried with the last SQL Server Mobile 2005 (ie v3.0) and the "ssceoledb30.h" also includes "transact.h".
Did I miss something to install ?
Do you know how I can resolve the problem ?
By advance, thank you for any answer.
--
Gregoire
May be http://support.microsoft.com/default.aspx?scid=kb;en-us;914174&sd=rss&spid=2852 can help you!
If this link does not help you much, please let us know!
Thanks,
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Mobile, Microsoft Corporation
|||I am having the same problem and no that article does not help.
I am developing a native application which targeted for a Windows Mobile 5.0 device and which must communicate with a SQL Mobile 2005 database.
I have used the include ssceoledb30.h and get a compile error about a missing include "transact.h". I did a search and sure enough, this file is not included in the WM5 SDK.
I copied the version included with the PocketPC2003 SDK and it now compiles but it doesn't give me much confidence.
Any help here would be greatly appreciated.
Bill
|||I really do not understand what you meant by "does not give me much confidence". If you are facing any issue, please post back.
Thanks,
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Ev, Microsoft Corporation
|||I manually copied a file from an older version of SDK to get the newer version to compile and you don't understand why I don't have much confidence in it?
I would think the reasons for my lack of confidence would be obvious but let me give you a list:
- File may have changed for the new release but I have no way of knowing as it is not there.
- May lead to runtime errors which may not show up in testing.
- What would I have done if I only had the new SDK with the file missing? Should I have made up my own version of the missing file?
|||All points are valid if transact.h is owned and shipped SQL Server Mobile. However,
1) transact.h is not produced/owned by SQL Server Mobile
2) It comes with Platform Builder. If you can install Platform Builder latest version, you would get that.
3) SQL CE 2.0, SQL Mobile 3.0 have been integrated with Platform Builder.
4) If you are using VS 2005, then there are SDK for Windows CE/Mobile 5.0 downloadable. If you download them, you should be able to get transact.h and you dont need to copy from another machine. Here are the downloads URLs which I am referring to:
http://www.microsoft.com/downloads/details.aspx?familyid=83a52af2-f524-4ec5-9155-717cbe5d25ed&displaylang=en
http://www.microsoft.com/downloads/details.aspx?familyid=dc6c00cb-738a-4b97-8910-5cd29ab5f8d9&displaylang=en
Irrespective of all this, I will check with VS team why are not they shipping this SDK files for Windows Mobile/CE 5.0 by default.
Thanks
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Server Everywhere, Microsoft Corp.
|||Thanks for the links but I have the WM 5.0 SDK installed on my machine and as I said in my original post, the transact.h file is not part of the SDK installation for some reason. So none of this solves the problem.
I don't see how anything you said invalidates my points, just means I posted the problem in the wrong forum. Instead of asking the VS team why they don't distrubute the WM 5.0 SDK by default, maybe you should inform the SDK team that the file is missing in the distribution.
|||Please excuse us for the inconvenience caused. I have followed it up with some teams and found that transact.h is not shipped with WM 5.0 SDK. This problem would be fixed in the next SDK release. Also, I found that transact.h has not changed from WM 4.x SDK to WM 5.x SDK. Hence, I would request you to use the transact.h from WM 4.x SDK. We are also working towards writing a KB article where all the relevant information would be kept along with transact.h download.
Thanks alot for pointing out this BUG to us.
Thanks,
Laxmi Narsimha Rao ORUGANTI, MSFT, SQL Server Everywhere, Microsoft Corporation
|||There was a bug in the WM5 SDK that caused the transact.h file not to be included. This has been fixed for future versions.
In the meantime, a workaround is to copy the transact.h that was part of the Pocket PC 2003 SDK to the WM5 headers.
(i.e. " \Program Files\Windows CE Tools\wce500\Windows Mobile 5.0 Pocket PC SDK\Include\Armv4i" ).
Thanks,
Luis E. Cabrera
Windows Mobile Developer
No comments:
Post a Comment