Computers Windows

ATL smart device development with IE7


If you have tried to write ATL based smart device applications under Visual Studio 2005 on a computer running IE7 you may have seen this error message. This error is due to changes in IE7. Apparently the upcoming service pack for Visual Studio 2005 (scheduled for Q3 2006) will fix this issue but until that happens, this is how to do it.

Run regedit.exe and add an empty key under HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ Windows \ CurrentVersion \ Ext \ PreApproved. Name the new key “{D245F352-3F45-4516-B1E6-04608DA126CC}”. Then restart Visual Studio.

You may also use the attached file.


Computers Gadgets

Importing certificates on Samsung SGH-i320

As I wrote in a previous article I have recently got a Samsung SGH-i320. One of the first things I wanted to do was of course to set it up for push mail with an Exchange server. As probably just about every company out there has done, we have created our own root certificate which is used to secure the connection to the mail system over the web.

To enable the smartphone to synchronise over the air I did as I always do – I tried to downloade the public root certificate directly from our web site. I then got an error that said that my “security permission was insufficient to update my device”.

The problem stems from the changes to the security model of Windows Mobile 5. Different OEM manufacturers are probably free to control this to some extent because I did not have the same issue with my Qtek 9000 device.

Anyway, to fix this issue the solution is to find an application called RegeditSTG.exe. Allegedly, this is a HTC signed application but it worked fine on my Samsung phone. Search for the application on the net and copy the EXE file to your device and run it from the File Manager.

You will want to change a setting under HKLM\Security\Policies\Policies. The value to change is 00001017. It will probably be set to 128 and it should be changed to 144. Make a note of the old value in case you need to revert the change later on.

When this value was changed I could then install the root certificate, directly over the web or by running the file on the device.


First impressions of Samsung SGH-i320


I finally managed to get my hands on the Samsung smartphone SGH-i320. The size of this little beauty is 59x111x11,5mm but it was not until I held it in my hand that I felt how thin it really is.

The phones comes with a charger, a USB sync cable, two batteries and a stereo headset. Extra memory is not included so I recommend that one also buys a 1GB microSD. There is plenty of internal memory for basic operation so the extra memory would mainly be for music, podcasts and the like. After having synchronised the phone to my Exchange account I still had about 100MB of free memory in the phone.


The phone is GPRS/EDGE based and does not come with either UMTS or Wi-Fi. But on the other hand I have been using a Qtek 9000 for almost a year and noticed that I don't use Wi-Fi that much anyway since it drains the battery. As for UMTS, those using operators whose network supports EDGE might not notice the difference. Unfortunately I am stuck with Telenor, an operator that seems totally unwilling to upgrade their GPRS network. In the absence of higher speed networks I am using bluetooth both at home and at work to stay connected at higher speeds at no cost and with low battery consumption.


Samsung has done a good job with the keyboard. I don't have that small fingers but even so I find the keyboard quite easy to work with. And being Swedish I especially welcome the fact that Samsung has placed our special characters (åäö) on the keyboard. Even Sony Ericsson hasn't managed to do that on their M600i.

The size of the SGH-i320 is where it really shines. Sure, it is a little taller and wider than my previous phones (see image below) but it is the thickness of the phones that has really annoyed my in the past. Not so any more. The Samsung phone easily slips into the pocket and with the weight of just 95g I hardly feel it, even when I have it in my shirt pocket. Sony Ericsson M600i and Nokia E61 are both competing in the same segment and they are significantly bulkier.


The phone is equipped with a 1.3MP camera. This is certainly not the type of camera you would want to use to photograph things you actually want to save for posterity. And, as always with phone cameras, there must be just the right amount of light and not too much contrast to make the images be even half-decent.

The image below of the art museum in Göteborg has been scaled down to a sixteenth of the size. At that size it looks alright but a portion of the image at 100% size shows just how limiting the camera feature is. Still, the camera can probably successfully be put to use for photo blogging since the image will be scaled down anyway and the keyboard is handy when it comes to write captions for the images.


If there is one thing that I wish that Samsung had done another way it is to use a standard mini USB connector instead of their proprietary one. Now, instead of being able to charge the phone just about anywhere I will have to invest in a car charger and bring along the USB cable wherever I go.