May 2009 Entries

Platform Builder: cl : Command line error D2004 : '/I' requires an argument
An engineer that I work with had the error “cl : Command line error D2004 : '/I' requires an argument” this week. He had copied a folder from a project that we received from third party and was working on integrating it into one of our projects, so he wasn’t familiar with the contents of the folder. If you are actually working on making changes to the project, this error is probably easier to figure out. The first hint at what the problem is and where to look for it is the two words, “Command line”. ......

Posted On Saturday, May 30, 2009 11:03 AM | Comments (0)

Platform Builder: What SYSGEN Variables Are Set?
Sometimes it is useful to know which SYSGEN variables are set for a project. Here are some methods to see a list of the variables: Windows CE 6.0: · Look in your PBXML file using a text editor. This is handy, but give you a long messy list that looks like: <Feature Name="Item" FeatureVariable="SYSGEN_IE_... Anchored="True" /> <Feature Name="Item" FeatureVariable="SYSGEN_IE_... Anchored="True" /> <Feature Name="Item" FeatureVariable="SYSGEN_MLANG" Anchored="True" /> <Feature ......

Posted On Friday, May 22, 2009 4:52 PM | Comments (2)

Windows CE Live Chat Tueday May 26, 2009
Another great opportunity to ask Microsoft engineers your technical questions is coming up on Tuesday. Title: Windows CE Live Chat! When: Tuesday, May 26, 2009 9:00 - 10:00 A.M. Pacific time Add to Calendar Additional Time Zones: http://www.timeanddate.com/... Description: Do you have tough technical questions regarding Windows CE or Windows Mobile for which you're seeking answers? Do you want to tap ......

Posted On Friday, May 22, 2009 3:46 PM | Comments (0)

Platform Builder: Replacing Files in an NK.BIN with BinMod.exe
A friend and fellow MVP Jeff Arnett recently collaborated on a project to replace some DLL files in an existing NK.BIN file for testing. Jeff tried to use BinMod.exe, but it didn’t work. When trying to extract or replace a DLL the following message was output to the console: BinMod V1.0 built Apr 5 2006 11:32:47 Checking record #70 for potential TOC (ROMOFFSET = 0xFEC634B4) Checking record #195 for potential TOC (ROMOFFSET = 0x00000000) NOTICE! Record 195 looked like a TOC except DLL first = 0x4001C001, ......

Posted On Saturday, May 16, 2009 8:19 PM | Comments (16)

Platform Builder: Problems with .NET CF 3.5 and Windows CE 6.0
A customer contacted me a few weeks ago to tell me that their managed code application failed when running on Windows CE 6.0 with the .NET CompactFramework 3.5. It ran fine on Windows CE 5.0 with .NET CF 3.5 and on Windows CE 6.0 with .NET CF 2.0. The problem was really odd because it showed up in different ways, but usually there was an error message similar to: File or assembly name 'System.Data.SqlServerCe, Version=3.5.1.0, Culture=neutral, PublicKeyToken=3BE235DF1C8D... or one of its dependencies, ......

Posted On Friday, May 15, 2009 10:06 PM | Comments (5)

Platform Builder: Speed Up the Build by using the Right Tools
I recently had an exchange with a reader of my BldDemo article (See Platform Builder: Using BldDemo) that went like this: Q: How long is typical time of doing blddemo -q on a core duo with 1GB RAM? Is an hour acceptable? A: 1. An hour is long, but you don't tell me what version of Windows CE that you are building. 2. Pauses during sysgen are normal. Honestly, I don't know what is going on during the pause because I have never looked into it, and to me it is not important. 3. If you are interested ......

Posted On Monday, May 4, 2009 9:22 PM | Comments (0)

Platform Builder: What is the _FLATRELEASEDIR?
_FLATRELEASEDIR is an environment variable that defines the folder used to create the OS image. The Platform Builder tools use the environment variable. · Buildrel copies files to the _FLATRELEASEDIR · Makeimg creates the OS image in the _FLATRELEASEDIR · CEShell mounts the _FLATRELEASEDIR as the \Release folder on the device when connected via KITL · If you set WINCEREL=1 the exe and dll files will automatically be copied to the _FLATRELEASEDIR when they are built · When you open a build window, ......

Posted On Monday, May 4, 2009 8:37 PM | Comments (0)