Feng Yuan (袁峰)

CLR, Performance, Debugging, Parallel Computing, WPF, XPS, GDI, GDI+, Printing (www.fengyuan.com)

March, 2007

Posts
  • Feng Yuan (袁峰)

    Something useful from 'junk' mails

    • 2 Comments
    With a high school junior in the house, we're receiving tons of 'junk' mails from colleges these days. They usually pile up on the desk until we have time to read and discard them. Today, my wife found something useful, or rather something we have...
  • Feng Yuan (袁峰)

    XPS document with 100,000 pages?

    • 2 Comments
    Once a simple document format like XPS is created, it takes on a life of its own. Seeing the beauty of XPS, people are converting documents from differenent sources to XPS. People are trying to create XPS document with 10,000 pages, and even pushing for...
  • Feng Yuan (袁峰)

    Source code for Windows Graphics Programming: Win32 GDI and DirectDraw

    • 4 Comments
    Source code for Windows Graphics Programming: Win32 GDI and DirectDraw used to be on http://safariexamples.informit.com/0130869856/ . But link has been broken for quite sometimes. I've received a few emails from readers who has lost the CD of the book...
  • Feng Yuan (袁峰)

    Convert XAML Flow Document to XPS with Style (multiple page, page size, header, margin)

    • 28 Comments
    XPS is a fixed document format in which pages are pre-formated to a fixed page sixe. On the opposite of the spectrum, WPF provides flow document which can be paginated dynamically in XAML viewer. To bridge the two, WPF provides features to convert a flow...
  • Feng Yuan (袁峰)

    Anatomy of STL Vector: Data Size

    • 1 Comments
    In the last post, we discussed the cost of using STL vector to module size. Now let’s take a look at how STL vector manages its data. Dia2Dump (Source code available in Microsoft Visual Studio 8\Dia SDK\Samples\Dia2Dump directory) shows the following...
  • Feng Yuan (袁峰)

    Anatomy of STL vector: Module Size

    • 3 Comments
    If you need a dynamic array in C++, a widely used class is the vector template class in STL. There are even books recommending replacement of plain C++ array with STL vector. This series is going to look at how STL vector is implemented and what...
Page 1 of 1 (6 items)