Entries:
Comments:
Posts:

Loading User Information from Channel 9

Something went wrong getting user information from Channel 9

Latest Achievement:

Loading User Information from MSDN

Something went wrong getting user information from MSDN

Visual Studio Achievements

Latest Achievement:

Loading Visual Studio Achievements

Something went wrong getting the Visual Studio Achievements

Discussions

gaelhatchue gaelhatchue
  • Paint Shop Pro Error Message ​Configurati​on is incorrect need help!

    Raine wrote:
    When attempting to install my Paint Shop Pro 9 and other graphic software programs I get errors one as such that reads...

    "Failed to start. Configuration is incorrect."


    I can get the program on my computer but I can seem to run it.

    Any suggestions on how to correct configurations?
    to what it is that I have to do to get the program to run?

    I am not the most technical person in the world so if you could explain and give me a step by step instruction that would be greatly appreciated!

    and also I got an error about the dynamic library...





    Try deleting the paint shop pro folder in your user AppData folder.
    In vista, it's in C:\Users\Username\AppData\Local\

  • IE8 Beta1 breaks WPF 3.5 (Vista & XP)

    CannotResolveSymbol wrote:
    

    I'll report this to the IE beta newsgroup later tonight if it hasn't been reported there before then, though (that's the proper feedback mechanism for users of the public beta).


    I looked at the list of known bugs, and this issue is not listed yet, so feel free to report it whenever you can.

    Thanks

  • IE8 Beta1 breaks WPF 3.5 (Vista & XP)

    After installing IE8 Beta 1, WPF can no longer display images that have a web URI.

    I un-installed IE8, it fixed the problem, re-installed it and the problem showed up again.

    Here is a test program that illustrates the problem:

            private void Window_Loaded(object sender, RoutedEventArgs e)
            {
                try
                {
                    BitmapImage bitmap = new BitmapImage();
                    bitmap.BeginInit();
                    bitmap.UriSource = new Uri(
                        "http://www.microsoft.com/presspass/images/gallery/logos/web/mslogo-1.jpg",
                        UriKind.Absolute);
                    bitmap.EndInit();

                    Image img = new Image();
                    img.Source = bitmap;
                    grid.Children.Add(img);
                }
                catch (Exception ex)
                {
                    MessageBox.Show(string.Format("{0}\r\n\r\n{1}", ex.Message, ex.StackTrace));
                }
            }



    Here are some details on the exception that is thrown at bitmap.EndInit():

    ex.Message
    Value does not fall within the expected rage.

    ex.StackTrace
    at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)

    at MS.Win32.WinInet.get_InternetCacheFolder()

    at System.Windows.Media.Imaging.BitmapDownload.BeginDownload(
       BitmapDecoder decoder, Uri uri, RequestCachePolicy uriCachePolicy, Stream stream)

    at System.Windows.Media.Imaging.LateBoundBitmapDecoder..ctor(
       Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions,
       BitmapCacheOption cacheOption, RequestCachePolicy requestCachePolicy)

    at System.Windows.Media.Imaging.BitmapDecoder.CreateFromUriOrStream(
       Uri baseUri, Uri uri, Stream stream, BitmapCreateOptions createOptions,
       BitmapCacheOption cacheOption, RequestCachePolicy uriCachePolicy,
       Boolean insertInDecoderCache)

    at System.Windows.Media.Imaging.BitmapImage.FinalizeCreation()

    at System.Windows.Media.Imaging.BitmapImage.EndInit()

    at WpfApplication5.Window1.Window_Loaded(Object sender, RoutedEventArgs e)



    Here are a few "high level" things I tried to do to fix the problem:
    - Changing the UriCachePolicy of the BitmapImage: none of the RequestCacheLevel enumeration values was able to fix the problem.
    - Deleting the IE Cache: no luck here
    - Running the test Program as Admin: no luck either


    The next thing I did was setting up the .NET Framework Source Code Debugging (link):

    I stepped into the code from the bitmap.EndInit() call to the MS.Win32.WinInet.get_InternetCacheFolder() call, I found that the problem occurs in the native calls to GetUrlCacheConfigInfo, which is located in wininet.dll. This DLL fails to return the internet cache folder properly.


        internal static Uri InternetCacheFolder
        {
            [SecurityCritical]
            get
            {
                // copied value 260 from orginal implementation in BitmapDownload.cs
                const int maxPathSize = 260;
                const UInt32 fieldControl = (UInt32)maxPathSize;
     
                NativeMethods.InternetCacheConfigInfo icci =
                    new NativeMethods.InternetCacheConfigInfo();

                icci.CachePath = new string(new char[maxPathSize]);
                UInt32 size = (UInt32)Marshal.SizeOf(icci);
                bool passed = UnsafeNativeMethods.GetUrlCacheConfigInfo(
                    ref icci,
                    ref size,
                    fieldControl);

                if (!passed)
                {
                    int hr = Marshal.GetHRForLastWin32Error();

                    if (hr != 0)
                    {
                        Marshal.ThrowExceptionForHR(hr);
                    }
                }

                return new Uri(icci.CachePath);
            }
        }


    I checked the version number of this DLL, and it matches IE8 Beta1's version number: 8.0.6001.17184


    Now that I know the problem is not in WPF itself, I would like to know if XP users are having the same problem. You could simply create a simple wpf program like my test program, or xaml like this:

    <Window x:Class="WpfApplication5.Window1"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Window1" Height="300" Width="300" Loaded="Window_Loaded">
        <Grid Name="grid">
            <Image Source="http://www.microsoft.com/presspass/images/gallery/logos/web/mslogo-1.jpg"/>
        </Grid>
    </Window>

  • LiveZoom for Windows Vista

    You only need to press Ctrl+~ to activate the zoom window, assuming that Aero is enabled.

    To change the hot key that activates the zoom window, you can go to the file LiveZoom.cpp (currently, on line 85), and change the last parameter to the RegisterHotKey function. It is currently set to 0xC0 which is the the code for the tilda key on US keyboards.

    // Register hot-key
    if (!RegisterHotKey(hWnd, HOT_KEY_ID, MOD_CONTROL, 0xC0))
       SendMessage(hWnd, WM_DESTROY, 0, 0);

    You can set to something like 0x31 which is the code for the
    1-key.
    For more key codes, you can look on this page: http://msdn2.microsoft.com/en-us/library/ms927178.aspx

    When I have some free time, I might update the app with a Settings window and some performance improvements.

  • LiveZoom for Windows Vista

    I love Mark Russinovich's ZoomIt tool, which one of the best zoom utilities for Windows.

    I wanted to see if I could use Vista's DWM API to build a similar utility, with the addition of live window updates, so I put together this small program (372 lines).

    The keyboard shortcut to activate is Ctrl+~
    Use the mouse wheel of up/down arrows to zoom in/out.

    Some feedback would be apreciated.



    Edit: Source Code added to zip file.

  • How to cancel overlapped socket IO in Windows CE

    I would like to cancel an overlapped IO operation on a socket without having to close the socket or exit the thread that initiated the IO.

    Unfortunately, the CancelIo function is not supported in windows CE.

    Any ideas?

  • Vista ReadyBoost Questions!

    Here is a ReadyBoost Q&A that should answer most of your questions.

  • Photosynth Tech Preview is live!!!

    The sanmarco collection is not the only one available. You can view more collections here.

  • Photosynth Tech Preview is live!!!

    It looks great.

    Try it out.



    Edit: There are four collections currently available.

  • Anyone writing gadgets?

    Wells wrote:
    It takes up too much space on 1024x768 and there is no shortcut key to quickly show/hide the damn thing.

    When you have the sidebar open or minimized in the tray, press Windows Key + SPACE BAR to show it.