2576
T-Clock / Re: T-Clock 2010 (download)
« Last post by Stoic Joker on October 31, 2012, 06:20 PM »I took a quick try on the font rendering issue today. I replaced the TextOut function call by DrawThemeTextEx which is supposed to paint text on glass surfaces. But the API is highly different. Not only the layouting works differntly, it also requires a Unicode string as opposed to the plain ANSI char* used in the programme. These are obstacles that I cannot easily pass. My C++ skills are too limited, not to mention even more ancient C. If somebody could explain me how to replace TextOut with DrawThemeTextEx correctly, I could possibly make it work. Until now, I only see some random pixels, and for some time, my TClock build won't respond and eventually crash Explorer. Guess I should restart Windows first.
Update: I should restart Explorer correctly. Integrity level Low and High are both wrong, it must be Medium. (Using Process Hacker) This is a bit more complicated to run as, but it works. Then TClock (and all other applications...) works correctly again.-LonelyPixel (October 31, 2012, 05:12 PM)
That's the downside of inheriting a program that was originally written in the mid 90's
The unicode handling was one of the things that tripped me up as well - The project requires a massive rewrite to resolve this I suspect.The DrawThemeTextEx (and friends) function(s) was a (really clever) home grown export by Two_toNe, I tried to do what I could with it...But I too have my limits. Best advice I can give is do most of your testing in a VM because T-Clock hooks directly into the shell and will crash it in a flash if something (test code level) goes sideways. During development I ran 3 VMs and 2 Remote Desktop sessions for testing purposes to avoid crashing the shell (constantly...) on my main development machine.

Recent Posts
...Just in the nick of to late there guys. 
...But I don't have a prayer of hitting that target. 