CString.Format and CString.FormatMessage

Hi all,

I am not asking the difference between CString's Format and FormatMessage, but we are currently trying to create rules that could detect issues in the codes. One of the issue we have is when one uses Format() on itself as below,
1
2
CString str;
str.Format("%s%d", str, 123);


This is an issue and the application crashes. As FormatMessage() does a lot that Format can do, I was wondering if FormatMessage could be an issue somehow. I tried to search over internet and didn't find any warnings. I also created sample applications to test this and nothing wrong happens. But wanted to ask some experts before considering this as a safe function to eliminate from our rule.
Last edited on
Can anybody help me with this?
Topic archived. No new replies allowed.