I don't have a window machine convenient for checking this out, but I think CString should accept this:
querySQLStr.Format("%I64d", dirID);
It may be worth noting that it depends on Windows, but since you are using CString, I think that everything is in order.
source
share