I'm trying to do something like a countdown timer where you set a time and start it, however I'm having strange problems with setting time, I have static control with "00:00:00" as base string, this is my code for setting time
after one of those and one of those strings (sHour, sMinute or sSecond), but that's not the problem, everything AFTER ANY sprintf function will stop working, so any sprintf function (wsprintf, sprintf, sprintf_s) is stopping my application...
Ah, I just noted the issue: You think you can pass a std::string object (a C++ object) to a C function like wsprintf(). You need to pass the return value of c_str(). It is called that for a reason: It returns a C string. C functions use C strings.
I thought about this too, but I told myself that compiler should tell me it too since I HAVE to use .c_str() in, for example, GetDlgItemText, but it didn't tell me anything so I left it like it is, and yes, it's compiling without any errors or warnings