Hi

I am using Itoa function to convert int to string.

CTime aNow = CTime::GetCurrentTime();
char* month;
itoa(aNow.GetMonth(), month, 10);

But I am getting error

Unhandled exception at 0x00573deb in App_Name.exe: 0xC0000005: Access violation reading location 0x0000323d.

Am I missing something

Regards
Karan

try to use.. char month[n];

Hi

Thanks a lot

My problem is solved