How to write INT64 to CString

Posted by sxingfeng on Stack Overflow See other posts from Stack Overflow or by sxingfeng
Published on 2010-06-18T08:19:51Z Indexed on 2010/06/18 8:23 UTC
Read the original article Hit count: 391

Filed under:
|
|
|
|

I am coding in c++ windows.

INT64 dirID = -1;
CString querySQLStr = _T("");
querySQLStr.Format(L"select * from ImageInfo where FolderPath=%64d;", dirID);

querySQLStr always like this:
select * from ImageInfo where FolderPath=                                                            1214;

is it right to use %64d? Many Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about Windows