Tuesday, January 27, 2009

Sometimes it is useful to leverage a general Visual Studio Project up to a Windows Workflow Project. To setup Workflow-Designer-support, a manual modification of the targeted ".csproj"-file is needed. Otherwise errors come up like this:

"The service 'System.Workflow.ComponentModel.Design.IIdentifierCreationService' must be installed for this operation to succeed. Ensure that this service is available. "

The entry for the project-guid has to be replaced by this:

<ProjectTypeGuids>{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>

Tuesday, January 27, 2009 10:31:56 PM (GMT Standard Time, UTC+00:00)

Quite a long time ago I scribbled down a small Windows Mobile utility for german car number plates (Kfz-Kennzeichen). Now I catch up on posting it. Download the setup or the sources.

KFZKennzeichen

Tuesday, January 27, 2009 9:00:04 PM (GMT Standard Time, UTC+00:00)
 Saturday, January 10, 2009
Copying collected TomTom Favorites from one device to another is not supported by TomTom software right now. Some manual action is needed. The favorites are stored in a file called "MapSettings.cfg" within the directory containing the map files (e.g. "DE_AT_and_CH_plus_major_roads_of_WE"). So just copy this file from one device to another.
Saturday, January 10, 2009 7:36:21 PM (GMT Standard Time, UTC+00:00)
 Saturday, October 11, 2008
Samples of a guy recording his own voice for over 10 years. Complete sample here. Page can be found here.
Friday, October 10, 2008 11:27:47 PM (GMT Standard Time, UTC+00:00)
 Thursday, September 18, 2008

Viral marketing at its best.

Fun
Thursday, September 18, 2008 5:30:23 PM (GMT Standard Time, UTC+00:00)
 Thursday, August 14, 2008

When doing a text search in Visual Studio it sometimes happens that no appropriate matches are returned at all. This although you are sure that the correct search options are set and the queried text really does exist. By pure coincidence the following workaround was found: Just press Ctrl-Scroll and studio is back on the path!
This behaviour occurs in Visual Studio 2005 and 2008 as well.

Thursday, August 14, 2008 9:54:15 PM (GMT Standard Time, UTC+00:00)
 Wednesday, May 21, 2008

If you declare a read-only property as defined by the two ways below, you cannot bind a property to it by using IDE (database icon is not available in this case):

1.

private static DependencyProperty TextToDisplayProperty =

    DependencyProperty.Register("TextToDisplay", typeof(System.String), typeof(Activity1));

 

[Description("The text to output to the console")]

public string TextToDisplay

{

    get { return (string)base.GetValue(Activity1.TextToDisplayProperty); }

}

 

2.

 

private static DependencyProperty TextToDisplayProperty =

    DependencyProperty.Register("TextToDisplay", typeof(System.String), typeof(Activity1), new PropertyMetadata(DependencyPropertyOptions.ReadOnly));

 

[Description("The text to output to the console")]

public string TextToDisplay

{

    get { return (string)base.GetValue(Activity1.TextToDisplayProperty); }

    set { base.SetValue(Activity1.TextToDisplayProperty, value); }

}

 

Although there exists a crippled way to make it happen anyway here's the statement of the Microsoft Product Group :


"General guidance is that read only properties should not be bound. The UI allows it due to the bug. In dev10 we will fix this and it should no longer be possible through the designer, but probably still possible in code. Please avoid using this pattern. We know it works, but it’s not supported or tested. Anyway, we will not disable it in code, since we now know someone has a dependency on it."

.NET | WF
Wednesday, May 21, 2008 8:15:48 PM (GMT Standard Time, UTC+00:00)
 Thursday, February 28, 2008

A quite new portal worth mentioning is Downloadpedia. It is a free content software encyclopedia project and can be seen as a 'wikipedia' for software running under the open source label.

Thursday, February 28, 2008 10:31:51 PM (GMT Standard Time, UTC+00:00)
 Sunday, January 20, 2008

It took me quite a time finding useful hints on how to play MP3 with Windows Mobile. So here is what was found:

public class Sound

{

    static IntPtr hSound = IntPtr.Zero;

    const int SND_SCOPE_PROCESS = 0x1;

 

    [DllImport("aygshell.dll")]

    static extern uint SndOpen(string pszSoundFile, ref IntPtr phSound);

 

    [DllImport("aygshell.dll")]

    static extern uint SndPlayAsync(IntPtr hSound, uint dwFlags);

 

    [DllImport("aygshell.dll")]

    static extern uint SndClose(IntPtr hSound);

 

    [DllImport("aygshell.dll")]

    static extern uint SndStop(int SoundScope, IntPtr hSound);

 

    public static void Play(string fileName)

    {

        // filename must be absolute

        // e.g. \\Program Files\\Test\\phone.mp3

        SndOpen(fileName, ref hSound);

        SndPlayAsync(hSound, 0);

    }

 

    public static void Stop()

    {

        SndClose(hSound);

        SndStop(SND_SCOPE_PROCESS, IntPtr.Zero);

    }

}

 

Tested with Windows Mobile 6.

Sunday, January 20, 2008 7:06:56 PM (GMT Standard Time, UTC+00:00)
Latest Postings
Tags
History
<January 2009>
SunMonTueWedThuFriSat
28293031123
45678910
11121314151617
18192021222324
25262728293031
1234567
License
Except where otherwise noted, content on this site is licensed under Creative Commons Attribution 3.0 Unported License:
Creative Commons Attribution 3.0 Unported License