Hello ,
We have the following code in our C++ layer.... we are using the DLL of this code as a COM component.. but the below line of throwing the below error? Would someone please help me on this?
Code:
sprintf(temp,"%02d%02d%04d",month,day,year);
here is the declaratio of temp object: char * temp;
Error Message:
Unhandled exception has occred in your application.If you click continue, the application will ignore this error and attempt to continue. If you click Quit, the application will close immediately.
Arithmetic operation resulted in an overflow.
Would you please let me know the equalent mehtod i can use to resolve the issue.?