Especally because a rever std::map lookup ends up looking something like
this:
[...]
case AUTHTYPE:
TRACE_VARIANTTYPE(g);
for (const pair<unsigned short,="" wstring="">& p : s_AuthTypeNames)
{
unsigned short num = p.first;
wstring _tmp = p.second.c_str();</unsigned>
This will be pretty once boost::bimap gets pulled in, so you can can do a
reverse lookup. This is how it will look (aproximately) done manually. Not
pretty.
I've reached a point where putting more settings into the program will do
more harm than good.
This should be good enough for a "proof-of-concept".
I will now direct my attention elsewhere.
The menu / toolbar
The connection between the Mail detail window (To, From, BCC, CC, ATTACHED)
and the actual document.
The Splashscreen.
I81n will be last. Especially because the static settings enum->string
settings will have to be i18n'ed too.
Regards.
Especally because a rever std::map lookup ends up looking something like
this:
[...]
case AUTHTYPE:
TRACE_VARIANTTYPE(g);
for (const pair<unsigned short,="" wstring="">& p : s_AuthTypeNames)
{
unsigned short num = p.first;
wstring _tmp = p.second.c_str();</unsigned>
string tmp(_tmp.begin(), _tmp.end());
TRACE("first: [%ld], second: [%s]\n", num, tmp.c_str());
wstring nv(g.bstrVal, SysStringLen(g.bstrVal));
string _nv(nv.begin(), nv.end());
if (_nv == tmp)
{
TRACE("SELECTED: [%s], first: [%ld], second: [%s]\n", _nv.c_str(), num,tmp.c_str());
g = p.first;
break;
}
}
break;
[...]
This will be pretty once boost::bimap gets pulled in, so you can can do a
reverse lookup. This is how it will look (aproximately) done manually. Not
pretty.
Regards,
Søren
On Fri, Jan 18, 2019 at 8:04 PM sbrothy@gmail.com wrote: