OK, im using sprintf, what im doing is taking what's in my combo box and edit boxes, and putting them into one char array, so im using sprint f, and all the things are there in the chars. but it keeps giving me an assertion failure.
here's the code:
Code:
sprintf(time_on,"%s%s%s%s%s%s",year,month,day,hour,min,sec);
in this year is equal to 2004, month is equal to january and so on. i used the debugger to check if the data was coming in, and they all were. time_on is equal to "". i dont know if thats whats causing it, but i hope someone can help me.
thanks.