Re: MySQL with SSGM? [message #432908 is a reply to message #432883] |
Sat, 17 July 2010 01:44 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma:
|
General (5 Stars) |
|
|
Yes, I believe StrFormat would expect C strings for %s parameters and would crash if you gave it std::string instead. You should also convert Text[0] to a C string.
Internally StrFormat simply uses sprintf (or an equivalent of) and expects a character array for the relevant parameter to a %s tag and passing anything other than a char array (c string) would cause a crash.
[Updated on: Sat, 17 July 2010 01:45] Report message to a moderator
|
|
|