CRegKey::QueryStringValue

Seriously, who decided that MFC’s CRegKey::QueryStringValue should return a LONG instead of a CString?  It’s an MFC class.  MFC has a string class.  The purpose of this function is to query a string.  Why do I have to pass in a buffer and a buffer size?  Why can’t it just return me a string?

I miss working with the .NET Framework.

 

One Response to “CRegKey::QueryStringValue”

  1. Patrick Rynhart Says:

    CRegKey is an ATL class. See http://msdn2.microsoft.com/en-us/library/xka57xy4.aspx

Leave a Reply