Click here to Skip to main content
15,881,204 members
Articles / Desktop Programming / WTL

Boost.Range support for ATL/WTL CString

Rate me:
Please Sign up or sign in to vote.
4.12/5 (9 votes)
2 Sep 20052 min read 36K   262   11  
Consistent interfaces to CString using Boost.Range.
#pragma once

namespace tomato {

// primary template
template< class Profile >
inline bool query_qword_value(Profile& pr, LPCTSTR pszValueName, ULONGLONG& qwValue)
{
	ATLASSERT(false);
	return false; // not implemented yet
}

// ALT7::CRegKey
#if (_ATL_VER >= 0x0700)
inline bool query_qword_value(ATL::CRegKey& key, LPCTSTR pszValueName, ULONGLONG& qwValue)
{
	return key.QueryQWORDValue(pszValueName, qwValue) == ERROR_SUCCESS;
}
#endif // (_ATL_VER >= 0x0700)

} // namespace tomato

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Japan Japan
I am worried about my poor English...

Comments and Discussions