Welcome to MSDN Blogs Sign in | Join | Help

jaredpar's WebLog

Code, rants and ramblings of a programmer.

Syndication

News

Now Reading

Expert F#

What's a better book to read when learning F#?

Essential WPF

Thus far the best book I've read on WPF. Gets right down to working with WPF and the goals/history.

Purely Functional Data Structures

Reading this book makes me feel like I'm back in college. It will really get your mind going and is best read with a whiteboard handy.

Blog Roll

Eric Lippert
Dustin Campbell
Jon Skeet
Coding Horror
Brian McNamara
Brian Bondy
Hub FS
Full List

Browse by Tags

All Tags » Templates » C++   (RSS)
Thread Local Storage template
Thread local storage is another method of synchronization between threads. It is different that most synchronization cases because instead of sharing state between threads it enables developers to have independent, thread specific pieces of data which Read More...

Posted Monday, April 21, 2008 1:52 PM by Jared Parsons | 1 Comments

Filed under: , ,

Gotcha: CComPtrBase<T> assignment
Today what started out as a crash due to a pure virtual call turned into finding a gotcha in CComPtrBase<T>. Essentially the code in question boiled down to the following. Can you spot the problem? void GetAStudent(CComPtrBase<T> &spStudent) Read More...

Posted Tuesday, April 08, 2008 11:44 AM by Jared Parsons | 2 Comments

Filed under: , ,

Reference values in C++
Reference values are a powerful feature of C++ but I find they have one significant detractor. A developer can not look at an API call and determine if a parameter is being passed by reference or value (VB has the same problem). IMHO this is one item Read More...

Posted Thursday, April 03, 2008 10:24 AM by Jared Parsons | 2 Comments

Filed under: , ,

Multiple paths to IUnknown
ATL has a lot of great tools for COM programming and CComPtr is a good example. It's a smart pointer class which manages the reference count of an underlying COM object. One of it's limitations though is it will only work properly when the inheritance Read More...

Posted Friday, February 22, 2008 1:21 AM by Jared Parsons | 0 Comments

Filed under: , ,

C++ Placement New: Tracking down a crash
See my previous two posts on an introduction to placement new if you are unfamiliar with the subject. http://blogs.msdn.com/jaredpar/archive/2007/10/16/c-new-operator-and-placement-new.aspx http://blogs.msdn.com/jaredpar/archive/2007/10/17/c-placement-new-and-allocators.aspx Read More...

Posted Thursday, October 18, 2007 1:05 PM by Jared Parsons | 1 Comments

Filed under: , ,

Page view tracker