using namespace std;
using namespace progrock;
template<>
wstring cppx::wide::stringFrom( GUID const& uuid )
{
enum{ idStringLength = 38 };
wstring result( idStringLength + 1, L'x' );
int const nChars = StringFromGUID2( uuid, &result[0], result.size() );
(nChars > 0) || throwX( "stringFrom: StringFromGUID2 failed" );
result.resize( nChars - 1 );
return result;
}
extern "C"
{
HRESULT __stdcall DllRegisterServer()
{
try
{
HKEY const classKey = reg::createKey(
HKEY_CLASSES_ROOT,
S() << L"CLSID\\" << clockToolbar::classId()
);
return S_OK;
}
catch( exception const& x )
{}
return E_FAIL;
}
}