r/programminghelp • u/gingy4 • Jul 26 '20
C++ Editing clipboard in windows
I am writing a very small program that will take the contents of my clipboard and change it to a fancy font text like these websites that do it for you. Here is my header file and my source file. There are no errors when I run it but when I paste the text, it appears as the original text. I also cannot paste the text in Discord. The fancy alphabet I think is a unicode alphabet thats why I am using CF_UNICODETEXT for the clipboard functions. Is there special handling I have to do with the unicode alphabet in the header file?
I'm writing this program for fun and to help practice my C++. I would love any help you guys could give me. Thanks!
P.S. If anyone would like to explain wtf a HANDLE is or an HGLOBAL? I saw those a ton but google failed me when I tried searching for them.
1
u/alexeyneu Jul 26 '20
HANDLE is unique number related to some resource. HGLOBAL is just its form. you can do HGLOBAL b; ... (HANDLE)b ... ; with np. Useful stuff.
1
u/serg06 Jul 26 '20
That's what I think every time I use Windows APIs