Yves Dolce

MCS Partner ISV

  • Yves Dolce

    Discussion of Marshal.ReleaseComObject and its dangers

    • 6 Comments
    David Mortenson sent this on an internal Distribution List. I'm sure you'll find it useful if you do any COM Interop: This is a good time to discuss the risks of using Marshal.ReleaseComObject. This API does indeed allow you to force the release to...
  • Yves Dolce

    MSN Web Messenger Beta

    • 9 Comments
    From http://webmessenger.msn.com/ : " MSN Web Messenger lets you talk online and in real-time with friends and family using just a web browser! Use it on any shared computer - at school, at work, at a friend's house or anywhere you can't install the MSN...
  • Yves Dolce

    MFC 8 (VC++ 2005) and Windows Forms

    • 4 Comments
    I know that some of you have managed to use some Windows Forms forms in your MFC applications via ActiveX Control hosting or just plain Win32 calls and hosting the CLR manually. I’m sure you are suffering the accelerator/tab navigation issues, among others...
  • Yves Dolce

    Enumerating the assemblies in the GAC.

    • 0 Comments
    This is a version that fulfills my needs but if you need filtering, the information required is in the documents I’m pointing to in Gac.h file. As usual, comments are welcome! Example of use: for each ( String ^ s in gcnew Gac() ) Console...
  • Yves Dolce

    Microsoft Visual C++ Toolkit 2003

    • 13 Comments
    All the details are on the page but here is the Q&A (as of 4/17/04) so that you can decide if you are interested to click on the link: Visual C++ Toolkit 2003 Q&A What is the Visual C++ Toolkit 2003? The Visual C++ Toolkit is a free edition...
  • Yves Dolce

    PowerShell: (Get-ChildItem | Get-Member | ? { $_.Name -eq "Mode"}).Definition

    • 0 Comments
    I was curious about that *nix like mode for the item ('d----') [13] gci     Directory: Microsoft.PowerShell.Core\FileSystem::C:\Users\yvesdolc Mode               ...
  • Yves Dolce

    StockIcons for Windows Presentation Framework?

    • 1 Comments
    Windows Vista introduces a new native API that allows you to retrieve system-defined Shell icons: SHGetStockIconInfo . Those icons are stored in %SystemRoot%\System32\ImageRes.dll. To understand that API documentation, I read About Icons again: last...
  • Yves Dolce

    How to add the application compatibility section with Visual C++ 2008?

    • 0 Comments
    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...
  • Yves Dolce

    Modern C++ Design

    • 2 Comments
    A dev lead in the C++ team advised me to look at that book . I just finished 1.5.1 Implementing Policy Classes with Template Template Parameters . And I thought I knew C++! I feel so humble now...
  • Yves Dolce

    Managed C++ or C++/CLI Double Thunking

    • 3 Comments
    On an internal discussion list, we're discussing the performance impact of virtual functions in managed C++. David Schwartz from VC++ User Education sent us a draft of a related documentation that will be in Whidbey (Visual Studio 2005). He has agreed...
  • Yves Dolce

    Native Manifests: let's do COM and forget the Registry...

    • 1 Comments
    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...
  • Yves Dolce

    Efficiently bulk-load a SQL Server table with data from a collection using SqlBulkCopy

    • 2 Comments
    I did not want to create and then fill a Data[Set|Table] if the information I wanted to insert in SQL was already present in memory, in a collection! The documentation about SqlBulCopy is on http://msdn2.microsoft.com/library/30c3y597.aspx (as of 11/8...
  • Yves Dolce

    MFC 8 (VC++ 2005) and Windows Forms (Part II)

    • 2 Comments
    Let's now look at another example, one where the Windows Forms user control is used as a dialog, not just part of one. For that purpose, I have replaced the “Pen Widths” dialog in the Scribble application with a user control based one. In Scribble...
  • Yves Dolce

    IID_PPV_ARGS macro

    • 0 Comments
    You'll find it in ObjBase.h: // IID_PPV_ARGS(ppType) // ppType is the variable of type IType that will be filled // // RESULTS in: IID_IType, ppvType // will create a compiler error if wrong level of indirection is used. // extern...
  • Yves Dolce

    Do you still use the MessageBox API in your Windows Service?

    • 0 Comments
    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...
  • Yves Dolce

    Online Chat: Upgrading COM Applications to .NET with Visual C++ 2005

    • 2 Comments
    Many applications consume and expose COM interfaces as their object models today. And .NET has tools such as tlbimp, tlbexp and COM Interop support for RCWs and CCWs to help integrate managed code with COM objects. In addition, there are also a number...
  • Yves Dolce

    Command Prompt Explorer Bar

    • 4 Comments
    I've been using this tool for a while now, I love it and wonder why we do not provide it out of the box! From http://www.codeproject.com/csharp/CommandBar.asp : This tool extends explorer with functionality of a command prompt. Implemented as a...
  • Yves Dolce

    Visual C++ 6.0 mainstream support will end on September 30, 2004

    • 5 Comments
    I still see a lot of people running VC++ 6.0 [SP3|SP4| SP5 ]. As of today, the status is that mainstream support will end on September 30, 2004! Check http://support.microsoft.com/default.aspx?scid=fh;[ln];LifeAn11 for more information.
  • Yves Dolce

    Alternative to Directory.GetFiles and co.

    • 6 Comments
    ( 8/8/05: I fixed the source code ) Just like String::Split , I dislike those GetFiles methods that put more load on the managed heap when all I need is just one piece of information among the several it gives me (130,000 filenames in my project!)...
  • Yves Dolce

    C++/CLI : IntPtr to an HWND

    • 0 Comments
    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...
  • Yves Dolce

    __FILE__ macro under VC++ 6.0, 7.x and 8.0

    • 0 Comments
    Under VC++ 6.0, the __FILE__ macro always gets the full file path returned; under VC++ 7.x it typically does not. To get the VC++ 6.0 behaviour under VC++ 7.x and 8.0, use the /FC (Full Path of Source Code File in Diagnostics) compiler command line option...
  • Yves Dolce

    /CLR effect on the way DLLs are loaded

    • 0 Comments
    Yesterday evening, I had an issue that manifested itself (no pun intended) at runtime only when compiling with /CLR:pure. /CLR and /CLR:safe did not exhibit it. The exception was: The type initializer for '<Module>' threw an exception. Unable...
  • Yves Dolce

    Cosmic Recycling: We are Made of Stars

    • 2 Comments
    Yesterday evening, I caught the end of that lecture on UWTV : fascinating and entertaining! From http://www.uwtv.org/programs/displayevent.asp?rid=1067 : Scientists today understand the universe in a very different way than they did 50 years ago. They...
  • Yves Dolce

    Secure CRT code sample

    • 6 Comments
    When built in debug mode with the Visual Studio 2005 Community Technology Preview May 2004 , the following source code: #include <stdio.h> #include <stdlib.h> // _invalid_parameter_handler, _set_invalid_parameter_handler #include...
  • Yves Dolce

    System::String -> std::string

    • 0 Comments
    Stan has an entry about converting a System::String to an std::string. Wouldn't it be better to minimize the time the string^ is pinned to minimize the effect this code has on the garbage collection process? bool To_CharStar( String^ source, char...
Page 1 of 9 (223 items) 12345»