March 31, 2008

It must be spring

It must be spring now (I know it has been technically for over a week), because I've started the grill season. It's nice to actually have a backyard to grill in and not just a driveway like last year. Now I just need people to come visit to grill for...

Posted by adyer at 6:57 AM

March 26, 2008

Rough Day?

Is it a bad thing if the thought actually crossed my mind to put some Peppermint Schnapps in with my coffee this morning? Guess it's gonna be another long day of programming...

Posted by adyer at 6:51 AM

March 21, 2008

Microsoft SmartDevice Connectivity API

I recently found that applications using Microsoft's SmartDevice Connectivity API does not transfer well to other computers. I could not find anything on the web about these problems, so there is the reason for this article. I hope if someone else has a problem similar to mine, that this is useful.

There were a series of steps I had to take to get my desktop application which was written using the Smart Device Connectivity API (Also called CoreCon in some places) to run on another computer and communicate with the WIndows CE device I use.

First off, I had to register several Visual Studio 2008 SmartDevice assemblies into the Global Assembly Cache. To do this, there is a utility called "gacutil" which makes it a piece of cake.

I also ended up copying the "CoreCon" folder from two different places into the same location on the other computers. These locations are (for Windows XP) "C:\Program Files\Common Files\Microsoft Shared\corecon" and "C:\Documents and Settings\All Users\Application Data\Microsoft\CoreCon". I then needed to register the DLL's in the common files path using regsvr32.

After that was done, I was getting another strange error (a 32-bit hex error code which corresponded to some generic COM error) when I tried to connect. I traced these down to not having other required DLL's. To overcome this, I had to install the .NET 2.0 SDK (about a 350 MB setup file). I'm sure that there is a better way to get the necessary files, but everything I read said you had to have Visual Studio 2008 installed, and that was not an option for the other computers I wanted to use this application.

At this point I thought for sure it would work. I was now getting an error about versions. Out of curiousity, I compared both CoreCon folders mentioned earlier with the corresponding one on my computer (using WinMerge, a great open source compare utility on SourceForge). I found that the assemblies on the other computer were older than mine (because I was using .NET 3.5 and I installed the 2.0 SDK on the other machine because I could not find an SDK for 3.5, and just the framework didn't put on the required files, although I did have to install that as well). Anyway, I updated the files with the copy on my computer, and suddenly it all worked.

What a mess of stuff to get an application running on another computer. Of course this took me about a half a day to solve because Microsoft does not have any documentation anywhere on this even being an issue.

I know I don't have a lot of detail in this blurb, but hopefully it at least gives someone enough general direction to save them from spending the time I had to in order to get this working.

Posted by adyer at 12:21 PM

Comments

Thanks dude....you just made my Easter. I didn't have to waste my whole day figuring this one out..haha.
Later,
Dut

Post a comment

(If you haven't left a comment here before, you may need to be approved by the site owner before your comment will appear. Until then, it won't appear on the entry. Thanks for waiting.)


March 4, 2008

The End of an Era

Brett Favre has officially retired. One of the greatest players ever to play the game, and definitely the toughest quarterback ever. I'm sad to say I never did get to see him in person at a game. I don't even remember the Packers without Favre, so it should be an interesting season this fall.

We'll miss you Favre.

This article summed it up better than anything else I've seen:
http://sports.espn.go.com/nfl/news/story?id=3276537

Posted by adyer at 9:51 PM