Code:
_T(strToOpen),
You don't need the _T here because it is a CString, not a char*.