Wednesday, December 04, 2013

Life as a programmer: CDateTimeCtrl

Being a programmer gives me "joy". There are of course ups and down in coding.

I am rather new to MFC, specially with C++. Somehow my current manager take the risk to employ me regardless of my lack of C/C++  industrial experience. I was a Java developer before. Somehow he believed that I can cope up with the work.

Anyway, I was working with CDateTimeCtrl the other day, trying to make a living. So my boss said,

Mr D: "Ayu, you need to add enable & disable control over it, you know..."
Me: ".... really? So how should the from date & to date behave then? The function should work for both or one of them...?"
Mr D: "Both please."

So I was browsing around digging out some code (in order to maintain source code convention) see how is the correct way to do it. Its already evening before I finally knew how to show the checkbox in the CDateTimeCtrl. Such bloody DTS_SHOWNONE... it doesn't even give me a clue its related to a checkbox. I felt so miserably stupid. Urghhh! :bang_head:

For my own reference, please keep this link.

I'm stil struggling with the create new events UI aftermath. This is when you fix something and something else goes wrong. Please...please... let me sleep in peace tonight. Need to keep trying.

Like i said... Failure is when you stop trying...

No comments: