Archive for the 'Microsoft' category

Windows Phone 7 – XAML designer fails to resolve font resources

August 24, 2010 9:55 pm

This evening I was attempting to go through the first lab of the Windows Phone 7 Developer Training Kit and discovered that I couldn’t even finish the first exercise because Visual Studio wouldn’t resolve the resources for the fonts used in the project. Nothing showed up in the XAML designer view, so I couldn’t follow the lab directions. I guess I could have just worked my way around this, but not having the XAML designer work while creating a phone app seems to be a bit of a problem. So I mentioned the situation to a room full of fellow “Learn Windows Phone 7” travelers, and someone (sorry, I don’t remember your name) said “Try a repair on the tools”. An hour later (slow dev box, plus had to download a bunch of stuff to be able to do the repair) and the XAML designer works again!

Along the way, I discovered that the lab exercises solution files show a different icon in Windows Explorer than the ones I create using VS 2010. The reason is that the lab exercise .sln files contain the following line:

# Visual Studio 2010 Express for Windows Phone

which results in this icon image (see the tiny phone next to the “10”?),

whereas the ones I create contain this line instead:

# Visual Studio 2010

which results in this icon image (no tiny phone)

When I open a .sln file with the former line in it, the Express version of VS2010 runs. When I open a .sln file with the latter line in it, the regular version of VS2010 runs. Strange. It seems that the line is just an innocent comment, but apparently not quite. Either way, after repairing the toolset both solution files allow me to work in the XAML designer.

Windows Phone 7 Series – home-roll an offline installer

April 7, 2010 10:51 am

[Update 2010-08-01: The beta version of the phone tools comes with an offline installer ISO image (WPDTBeta_en.iso), so you no longer need these steps.]

[Update 2010-05-05: I originally wrote this for the CTP that worked with VS2010 RC. Now that an updated set of tools has been released to work with VS2010 RTM, the folder name has changed. It is now called 30319.31 as far as I can tell. That is likely to change again for future releases, so just be aware of that. The steps should still work.]

If you have several machines that you want to install the Windows Phone 7 Series developer tools on and don’t want to have to wait for the download on each machine, here’s a little tip for how you can make yourself an “offline” installer:

1. Start with a clean Win 7 machine.

2. Download the web installer (vm_web.exe) from Microsoft and save it to a folder of your choice (let’s say C:\WinPhone7). Start the install.

3. Let the download happen, but when the install itself starts, temporarily cancel it (you can let it finish after step 5).

4. Go to %Temp% using Windows Explorer.

5. Copy the folder 30128.39 to your folder of choice from step 2.

6. Create a Install_WP7_Tools.cmd file containing the following:

xcopy 30128.39 %temp%\30128.39 /I /E
vm_web.exe
pause

7. Copy the folder of choice to a USB storage device.

8. Use the Install_WP7_Tools.cmd file on your other systems. The tools should install and skip most of the downloads quickly.

If you don’t start with a clean Windows 7 machine, the files that the vm_web.exe tool collects in the 30128.39 folder may not contain all the files needed for the install, so you may see a few things extra get downloaded while using the .cmd file on other machines.

On my clean 64-bit Windows 7 machine, I got the following files as part of the toolset:

C:\WinPhone7\30128.39\1033\VM_EXP\Ixpvm.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\dotnetframework\dotNetFx40_Full_x86_x64.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\help\HelpSetup_x64.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\mtpack\NetFx_DTP.cab
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\mtpack\NetFx_DTP.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\rdbg\vs_expbsln_x64_enu.cab
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\rdbg\vs_expbsln_x64_enu.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\silverlight4\Silverlight.4.0_Developer.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\silverlight4\Silverlight4_Tools.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\silverlight4\silverlight_sdk.exe
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\vcruntimes\x64\vc_runtime_x64.cab
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\vcruntimes\x64\vc_runtime_x64.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\watson\dw20shared.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\sde_xde64-enu.cab
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\sde_xde64-enu.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\vs_sdeprolightup-enu.cab
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\vs_sdeprolightup-enu.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\WindowsPhoneDeveloperResources.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\WindowsPhoneExtensions.msi
C:\WinPhone7\30128.39\1033\VM_EXP\wcu\windowsphone\XNAGS40_setup.exe

A total of about 320 MB.

HP TouchSmart SDK 3.0 – Giveaways at PDC 09

November 17, 2009 9:00 am

To mark the release of the TouchSmart 3.0 SDK, HP has a goodie to give away at the Microsoft PDC 09: A super-slim 2 GB USB memory stick (embedded in a hard-plastic business card with a nice imprint). It contains the new SDK and a few documents about a software development partner program HP is starting.

If you see me at PDC, say hi, and I may be able to hand you one of these puppies. I only have a limited supply, though. 15 to be precise.

Check out the pictures:

IMG_3135

Front of the card

 

IMG_3136

Back of the card

 

IMG_3137

Back of the card with USB memory stick flipped open/out

 

IMG_3138 

Front of the card with USB memory stick flipped open/out

Microsoft also had an OS code-named “Tiger”: OS/2 1.3

August 7, 2009 8:24 pm

As evidenced by this scan of one of the setup disks:

OS2_Tiger 

(Someone was cleaning up a bunch of old floppy disks at work. I happened to come across them because I needed a floppy for updating the BIOS of a really old laptop.)

Just an interesting little factoid for your geek trivia…

Recover from BAD_POOL_HEADER blue screen errors after upgrading hard drive

July 27, 2009 10:00 am

I noticed recently that I’d get logged off from my computer over night. I’d leave the system running at night without logging off, and in the morning I’d have to log in again, with all the previously running programs gone. I had recently added a SATA controller in order to be able to run three SATA drives on this particular system (it only has 2 SATA ports on the motherboard), so I thought the culprit was a bad driver for the new card. Turns out that wasn’t it.

My computer runs backups over night (I use MozyHome), which shouldn’t be a problem, really. But as part of the backup, a volume shadow copy snapshot is made, and this step caused the blue screen error.

In addition to adding a SATA controller, I had also bought a bigger hard drive to hold my ever expanding collection of pictures, vacation videos, etc. When I installed it, I cloned the old drive (which was a PATA drive) to carry all the information forward onto the new drive.

Apparently, after you install a cloned a hard drive, some information is retained on the system about the old drive, and this affects volume shadow copies.

I had to go to Device Manager and turn on “Show hidden devices”:

image

Then, under Storage Volumes, I had to delete one in particular that seemed to have gotten a corrupted name (something like Generic Volume□□□ [not shown in this screenshot, since it’s fixed now]):

 image

Just for good measure I deleted all of them (although they didn’t seem to really disappear), ignoring the request to reboot after each prompt to do so.

When I was done, a couple of reboots of Windows recreated the necessary information about these volumes from the (old and new) hardware. After that the volume shadow copy snapshots no longer failed and I was able to run my backups without blue screen errors.

Credits for this find go to the folks in this thread: http://www.techspot.com/vb/topic94820-2.html

Windows Vista Ultimate customers get the shaft – again

June 26, 2009 8:04 pm

A lot has been written about how Windows Vista Ultimate was a major disappointment. First it was billed as the version that would “keep on giving” in the form of Ultimate Extras – cool new features that would be exclusive to Ultimate customers. When those extras finally materialized most people were underwhelmed. The extras were mostly Language Packs, DreamScene (with a few content packs) and a game or two. And for that, people paid a hefty premium over the Home Premium edition.

Now Microsoft has published special early upgrade pricing to entice people to rush out and get Windows 7 “while supplies last”. And they’re at it again. Guess what the upgrade price for Windows 7 Ultimate is:

WindowClipping

Yup.

$219.99!

Sorry to shout there. At least this time there’s no promise of “Extras”. Only BitLocker and Language Packs (in addition to the Professional features). Not sure that’s worth $120 over the Professional Upgrade or $170 over Home Premium (even considering XP mode.)

Oh, and you can’t do an edition “downgrade” from Vista to 7. You can buy the upgrade package, but you’ll have to use it to do a “custom install” (i.e. clean install) and then reinstall all your programs and data. Despite that inconvenience, I’ll go for the Home Premium upgrade, thank you very much. I’m done being an Ultimate customer. Or is that Ultimate fool?

(And just for the record, Windows 7 is a fantastic product in my opinion. I hope Paul Thurrott is right when he says it may be the next Windows NT. Unfortunately he also seems to be right about how Microsoft can mess things up with their pricing)

My first Windows 7 Theme Pack

January 27, 2009 11:21 pm

Just so I can say that I jumped on a bandwagon once: Mike Swanson inspired me to create my very own Windows 7 Theme Pack. It contains 12 pictures I’ve taken over the past year or so with my trusty old Canon PowerShot S30 (yes, I’m still running around with a camera that only does 3 megapixels.)

I’ve included a few photos in the pack that I managed to have included in the Spring 2009 software for the HP TouchSmart PC. They’re in the Personalize – Background area, should you be interested in finding them. Here’s one you may recognize:

Downtown Seattle, Mount Rainier and the harbor

While I didn’t put this one in the Theme Pack, I did pick a similar shot of downtown Seattle. Come to think of it, maybe this post will be inspiration for doing a “picture of the day” type of thing. Hmm. Been wanting to do that for a while.

All I can do now is hope the size of the pack (12 MB or so) won’t blow my bandwidth allowance…

HP TouchSmart software in CES 2009 keynote

January 7, 2009 9:49 pm

I just caught the replay of the CES keynote by Steve Ballmer. I think this is the first time ever that I’ve seen Microsoft allow non-Microsoft software to be shown in a keynote product video. I was blown away to see the HP TouchSmart software actually shown and interacted with instead of the Windows Desktop. Thank you, Microsoft!

Word 2007 and Vista Speech Recognition – don’t say "delete document"!

December 10, 2008 8:35 pm

I had a very unpleasant experience today. My wife is trying to deal with pain in her arms and hands from too much typing by using Vista’s speech recognition feature along with Word 2007. She was writing a final paper for a college class and had just finished the last four of nine pages. That’s when she noticed an extra word in her paper, right at the end: “document”. It didn’t belong there, so she did what you’d do naturally and said “delete document”.

THAT’S WHEN BAD THINGS HAPPENED. Apparently the speech recognition software turned that phrase into a command and proceeded to empty the nine page paper of all content without hesitation. On top of that, the undo feature of Word seemed to not have noticed the command (or been bypassed somehow), so she couldn’t get the document back via undo either!

This all happened while I was in a meeting at work right before lunch. When I got back to my desk I had several panicked voice messages. Luckily, five pages from the day before could be salvaged because my wife had the presence of mind to close the document without saving, which let her recover all but the about four hours of work that had gone in before the disaster struck.

I went home over lunch to see if I could salvage any more. I decided that I needed support from Microsoft. Well, the call with Microsoft Product Support was less than pleasant (as support calls usually are) and didn’t get us the four pages back, either. Best I could tell nobody had ever reported such an issue before.

I’m surprised this glaring problem escaped all testing at Microsoft. One of the cardinal rules of software development was violated in this case: “Never, EVER, lose the user’s data.” I can’t believe there was no prompt to confirm if she really intended to delete everything in response to the phrase “delete document”. I can’t believe there was no undo possible.

I just can’t believe it. Yet, it’s true.

PDC 2008, Day 2 – HP TouchSmart front and center

October 28, 2008 11:55 pm

IMG_1781

The PDC keynote this morning was amazing to me. It felt like the HP TouchSmart PC was utilized for about half of the entire keynote by Steven Sinofski and Julie Larson Green. Four machines on stage, front and center.

Since the HP TouchSmart doesn’t have VGA out, there was a camera guy up on stage during the demos, which I thought worked out really well, sort of bringing the audience up on stage with Julie.

IMG_1793

IMG_1800

Naturally, the machines had been wiped clean and had a Windows 7 build with the new taskbar installed (6933, the build on “The Goods” is 6801 and doesn’t have it). NextWindow, the people making the touchscreen, are making a Windows 7 compatible driver available so you can start developing for Windows 7 touch today, using the TouchSmart. Of course, I’d rather you develop something for the HP TouchSmart UI that we’ve created, and you’ll be able to download some documentation for that soon, from the community site TouchSmartCommunity.com.

But I digress.

If you ever doubted that .NET and WPF were ready for “prime time”, doubt no longer. According to Scott Guthrie’s keynote, Visual Studio 2010 will have its user interface migrated to WPF. That almost blew my mind. Microsoft transitioning their bedrock developer tool to WPF – they wouldn’t do that lightly. Here’s a shot of how WPF in VS 2010 will enable useful visualizations and hookup to external tools:

IMG_1819

Scott, too used TouchSmart for his keynote:

IMG_1809

And Tesco used it for their demo as well:

IMG_1820

And the machines that were all covered up tightly in the big room yesterday:

IMG_1760

Yup, all TouchSmarts, ready for Multi Touch hands-on-labs:

IMG_1821

The Windows 7 booth had one:

IMG_1823

The WPF team did too, although I don’t have a picture of it.

The coolest “giveaway” of PDC 2008 has to be the Sensor development kit from the Windows 7 team. It’s got a hardware board from Freescale with a bunch of sensors, accelerometer and LEDs, all powered via USB, and accessible via the new Sensor APIs in Windows 7. Here’s a shot of the booth:

IMG_1824

I can’t wait to play with it.

What a day. Not sure it gets much better than that.