Thanks for finding the issue. I have no idea why strcpy_s would suddenly fail though, that code worked fine before.
Could you test one last thing? Try replacing it with this:
memcpy(pchData, m_contents.toAnsiString().c_str(), m_contents.getSize() + 1);
It is stupid that I handled this line differently in v0.6 and v0.7. In TGUI 0.6 I
replaced strcpy with memcpy while for TGUI 0.7 I decided on using strcpy_s.
Also a GlobalFree i beleive is missing from get(). Not sure...
I just looked it up again and the MSDN example on clipboards doesn't has a free so I guess it is not needed since there is no alloc call like in the set function.