Yves Dolce

MCS Partner ISV

Browse by Tags

Tagged Content List
  • Blog Post: My blog home...

    It's now on http://concrt.spaces.live.com . concrt was available so as that's what's on my mind nowadays, I decided to pick that. This won't be just about ConcRT! :-)
  • Blog Post: How to add the application compatibility section with Visual C++ 2008?

    If you wonder what I’m talking about when mentioning the compatibility section, have a look at my previous blog entry . To start with, I added a Compatibility.manifest file to my project: <? xml version = " 1.0 " encoding = " utf-8 " standalone = " yes " ?> < assembly xmlns = " urn...
  • Blog Post: The new compatibility section in the Application Manifest

    This is still the same Application Manifest that you store in your Win32 Resource or put next to your executable (i.e. "MyExecutable.exe.manifest" ). Under Windows XP, this manifest allowed you to create Isolated Applications and Side-by-side Assemblies . Under Windows Vista, we added the DPI Awareness...
  • Blog Post: Consider not using the Frame Pointer Optimization when building your software

    Stack tracing is a very useful functionality for tracking both the causes of performance problems and reliability issues. With F rame P ointer O ptimization disabled , one can easily build the call chain by walking through the stack frame pointers. Because of potential code size increase and performance...
  • Blog Post: UI0Detect, WlS0WndH and a lie...

    http://blogs.msdn.com/yvesdolc/archive/2009/09/11/ui0detect-wls0wndh-and-a-lie.aspx In my prior to last entry , I took a shortcut: your Windows Service user interface can be seen on Windows Vista and still on Windows 7. But beware, it’s not by default, not without additional end user involvement...
  • Blog Post: If you develop/test on Windows 7, you might want to turn off the Fault Tolerant Heap…

    It might interfere with your testing and after your software has crashed a couple of times, your application might start to no longer behave erratically. As JohnFrum wrote: “ I learned about this feature a few weeks ago while debugging my service. It had been crashing and then it seemed fixed...
  • Blog Post: Do you still use the MessageBox API in your Windows Service?

    Or do you display any type of User Interface? Starting with Windows Vista and above, user interfaces generated by Windows services can’t be seen. And even worst, your service could be stuck waiting for some user input that the user cannot give as she does not see anything! Why did we do that? Well...
  • Blog Post: Developing native applications for Windows 7 in C++

    A gentleman from Germany asked on one of our forums: “I am interested in developing native Windows 7 Apps (64 and 32-Bit) with Visual C/C++. How can I do this?” You’ll first need a C++ compiler. You can find that on the MSDN Visual C++ page. Then the Windows 7 Software Development Kit...
  • Blog Post: No TOUCH utility on Windows to help refreshhing the Fusion Cache? MS-DOS copy command syntax...

    After reading the November '06 " Manifest and the fusion cache " blog entry that one my peers wrote, I immediately thought about the *nix style TOUCH utility. But it's not available out-of-the-box on Windows... I was surprised to learn that the Updating the Date and Time Stamps on Files trick worked...
  • Blog Post: Windows 7 redirection (a.k.a. virtualization) application I use to demonstrate the effect:

    C:> cl /W4 /EHsc Redirection.cpp Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86 Copyright (C) Microsoft Corporation. All rights reserved. Redirection.cpp Microsoft (R) Incremental Linker Version 9.00.30729.01 Copyright (C) Microsoft Corporation. All rights reserved...
  • Blog Post: Windows 7 Libraries and the Common File Dialog…

    As you can read in the application cookbook: When using IFileDialog, you must use GetResult method instead of combination of GetFolder and GetFilename. Use the Shell APIs where possible to interact with and manipulate items in the Shell Namespace (for example, IShellItem). So let me share a...
  • Blog Post: Getting a list of all the subscribers to an event with WinDbg and SOS

    I was wondering and Lee Culver from the CLR Quick Response Team was kind enough to give me an answer. The output below is for CLR V4 so the format might be a bit different than V2. " The debugging session below was identical in v2 except for SOS formatting differences. " Enjoy and thanks Lee! There...
  • Blog Post: The OEM Ready Program and RMTool.exe

    On the The OEM Ready Program page, OEM’s can download the OEM Ready Program Test Cases for Windows Vista . The 7 th test is to verify that the application is Restart Manager Aware. To test this, you must use RMTool.exe but where do you get it from? Mentioned in the appendix of the document is a...
  • Blog Post: Windows Resource Protection API call and PowerShell 2.0

    A month ago, I was lucky enough to give a presentation on Isolated Applications and Side-by-side Assemblies to an ISV . Later, Maarten asked me if the side-by-side cache was protected by Windows Resource Protection . I checked and answered (“Yes”) but still wished I had a tool to quickly check if a file...
  • Blog Post: Native Manifests: let's do COM and forget the Registry...

    You might have heard about it, might have seen those filenames ending with the .manifest extension, heard about the side-by-side directory ($env:windir\WinSxS), seen those project properties in Visual C++ but have you ever done anything explicit with that feature? I would like to share a simple example...
  • Blog Post: C++: Class hierarchy diagrams for MFC (including Visual C++ 2008 Feature Pack ones)

    These diagrams show the relationship of classes within the MFC, including the original classes released with Visual Studio 2008 plus the additional classes provided with the Visual C++ 2008 Feature Pack . http://www.microsoft.com/downloads/details.aspx?FamilyID=294EB161-6855-4ABD-99B4-325C66A78377&displaylang...
  • Blog Post: C++: Digging into C++ Technical Report 1 (TR1)

    If you're a C++ developer and not using yet the shared_ptr<> class, you're in for a surprise: http://channel9.msdn.com/ShowPost.aspx?PostID=385821 The discussion below the video is also quite interesting: something like the "GC" camp vs. the "ref counting"... Thanks Stephan!
  • Blog Post: Microsoft Visual C++ Floating-Point Optimization

    As you might already know, there's such an article from Eric Fleegal on MSDN: http://msdn2.microsoft.com/en-us/library/aa289157(vs.71).aspx . Dave, a peer of mine, asked a related question to the C++ team and I thought the answer would be valuable to others. From Marko Radmilac : We haven’t provided...
  • Blog Post: C++ Variadic Templates

    Found this interesting documents/primer on that topic: http://www.osl.iu.edu/~dgregor/cpp/variadic-templates.pdf I wonder when we'll see this in our own compiler and thus have efficient make_shared<T> and allocate_shared<T> . Bonne fin de semaine.
  • Blog Post: C# 3.0 var keyword + Enumerable.AsEnumerable

    On my way back from México, I read Pro LINQ: Language Integrated Query in C# 2008 . Just like Charles Petzold first introducing WPF through code (and not markup), I like Joseph Rattz’ introduction of LINQ through [extension] methods first instead of the using query expressions. I do think this makes...
  • Blog Post: System.Xml.Linq and Office Open XML

    Starting to play with those. So just FYE, here is what I wrote yesterday: // create the new document.xml package part Uri documentUri = new Uri ( "/word/document.xml" , UriKind .Relative); PackagePart documentPart = package.CreatePart(documentUri, "application/vnd.openxmlformats-officedocument...
  • Blog Post: Exceptions in C++

    This keeps being an entertaining topic: Ale Contenti and Louis Lafreniere: Understanding Exceptions and When/How to Handle Them .
  • Blog Post: C++/CLI : IntPtr to an HWND

    I was fed up with always having to write different code for x86 or x64 so I wrote intptr_cast<>. Still a lot of things to think about here but I wrote those couple of lines as a sample. I thought this might not only give you ideas but maybe trigger some comments: // Cheap static_assert...
  • Blog Post: HRESULT for managed code? HResult!

    As usual, comments are welcomed! HResult.h #pragma once namespace Microsoft { namespace MCS { namespace PartnerISV { using namespace System; public ref class HResult { HRESULT _hResult; String ^_description; public : HResult(HRESULT hResult); HResult( bool severity...
  • Blog Post: Find-Item that used to be DIR /S

    Under CMD.EXE, I used DIR /S a lot. Under PowerShell, this would translate as gci -r –fi . So I added the following to my profile: Function Find-ItemWithFilter { param ([ string ] $filter = $ ( throw "You must specify a filter ( e.g. * .doc )")) Get-ChildItem -recurse -filter " $filter " } set...
Page 1 of 7 (172 items) 12345»