Sunday, January 11, 2009

SL unmanaged helpers on codeplex

I posted updated version of unmanaged helpers for accessing SL object model. With helpers you can write code in C++ which matches C# or jscript.

For example here is how to add an event handler to an object

vObj.addEventListener(L"MouseEnter",
CXcpDelegateT(CObject)::create(this, &CObject::OnMouseEnter));

Source code is available on http://www.codeplex.com/mydock

Back to basics

I spent last few month designing new UI for myDock. Test version of UI did not work very well, so I am returning back to original code.

On the good side, I mastered a process of hosting SL2.0 including managed code from unmanaged applications. See details on http://www.codeplex.com/mydock

1051 version will be available in few days

Tuesday, September 23, 2008

Saturday, September 20, 2008

Change MSI to run under custom actions under user account

MSI package generated by VS2008 will run custom actions under SYSTEM account. This "feature" was implemented to work around Vista's UAC.

There is no way to change this behavior from VS2008, but you can adjust MSI package using ORCA tool (available in SDK).

Start ORCA tool, open MSI package, navigate to custom actions. Select action which you would like to run under user account and subtract 0x800 from Type. In my case, value generated by VS2008 is 3090, new value should be 1042.

Save MSI back. Done

Saturday, September 13, 2008

Problem with 0.9.1031 and Silverlight1.0

0.9.1031 crashes when running with SL1.0. SL2.0 Beta2 works fine. If you run into this problem, you can either install SL1.0 or use MyDock0.9.1027

Tuesday, September 9, 2008

myDock 0.9.1031

New version of myDock is available on http://alexezh.googlepages.com

Monday, September 1, 2008