Re: error C2661: 'CStdStr<CT>::Format' : no overloaded function takes 19 argumentswith[CT=char]



shilpa schrieb:

I am getting following error,

error C2661: 'CStdStr<CT>::Format' : no overloaded function takes 19
arguments with[CT=char]

If you have the solution please provide it.

CStdString uses a typesafe template version of Format by default. But this template version only overloads Format functions with a max of 17 argumens, but you need 19.

Either split your format call into two calls, or undefine SS_SAFE_FORMAT in stdstring.h. This will revert the StdString::Format to a version using "...", supporting any number of arguments.

Norbert
.