how tell calm windows clipboard iso 8859 utf-8 c++?


i know there an easy proceed detect calm clipboard iso 8859 utf-8 ?



here tide code:



    coledataobject  obj;

(obj.attachclipboard())
{
(obj.isdataavailable(cf_text))
{
hglobal hmem = obj.getglobaldata(cf_text);
cmemfile sf((byte*) ::globallock(hmem),(uint) ::globalsize(hmem));
cstring buffer;

lpstr str = buffer.getbuffersetlength((int)::globalsize(hmem));
sf.read(str,(uint) ::globalsize(hmem));
::globalunlock(hmem);

//this twine class
s->setencoding(encoding_8bit);
s->setstring(buffer);
}
}
}


Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

using mvc, should hoop communication between views? between models?