Tuesday, April 24, 2007

Adobe Reader on Vista Ultimate x64

After a lot of work and googling I finally managed to get Adobe Reader to install. The funny thing is that Adobe says that version 8 is Vista compatible. I'd like to question that, at least regarding the installer..


Adobe Reader 8 for Windows Vista

Started the installer, got the downloaded file warning but not the UAC dialog, then... absolutely nothing happened.

Then I tried "Run as administrator", still the same... absolutely nothing happened.

Googled around and found indication that running in XP SP2 compatibility mode might help. It did..

But come on Adobe, get your act together and produce an installer that Joe Average can use without extra fuzzing about!

Tuesday, April 03, 2007

Somasegar's WebLog : Listening to your feedback - Expression and MSDN

It seems a miracle has happened. Microsoft revaluated their decision about not including Expression Blend in MSDN subscription. Now it seems both Web and Blend (after its release) are included. Whoohoo! 

Link to Somasegar's WebLog : Listening to your feedback - Expression and MSDN

Simple properties

What do you prefer?


private int m_foo;
public int Foo
get { return m_foo; }
set { m_foo = value; }

public int Foo { get; set; }

int Foo;

The first is C#, the second C# 3.0 and the third one is C++/CLI

Monday, April 02, 2007

Nullable in C++/CLI

I was recently working on a C++/CLI project (which I only rarely do, as you'll soon find out)where there was a need to have a method returning a nullable DateTime.

I look up Nullable in the help, I see "ref class Nullable", think that the following will do it.

Nullable<DateTime>^ GetStuff();

I implement the thing and am a happy camper until I try to use it from a C# project. The intellisense says ValueType GetStuff(), WTF !?!

I take a look once again and find out that Nullable<T> is "public value class", so the correct incantation should have been:

Nullable<DateTime> GetStuff();

oh, and to return a null value you just do:

return Nullable<DateTime>();

(Anyone else finds the C# ? syntax for nullable types more easily digested?)