Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17825

C++ Getting unicode from an ini file

$
0
0
Hi, this is my first post here and i hope to get an answer My question is i am reading the section names from an file Unfortunately these section name contains unicode chars so when i read them i just get ???? here's my code ... TCHAR buffer[4096]; int Lsize = sizeof(buffer),length; GetPrivateProfileSectionNames(buffer,Lsize,".//Test.txt"); TCHAR *Get = buffer; while (*Get){ length = strlen(Get); Get += length; Get++; }

Viewing all articles
Browse latest Browse all 17825

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>