Hi,

I've just started using C++ and I keep getting stuck and could use some help. Currently I am using a SDK that controls a camera I got from a company (I'm doing a project for school). The SDK included an app that was built with MFC. I'd like to save an image in "bmp" format with a time stamp but I am not having a much luck. Here is what my code currently looks like:

char mystring[200] = "C:\\";
time_t mytime = time(0);
strcpy(tempStuff, ctime(&mytime));

char test[] = ".bmp";
strcat(mystring,tempStuff);
strcat(mystring,test);

The issue is that when I try to save it with the time stamp my picture doesn't show up anywhere. If I remove the timestamp and just concat mystring to test (skipping tempStuff), I would be able to get the image.

Another thing I'd like to do is save the filename string into a text file but I have no idea how to do this. Can someone help me?

Thank you.