Use this casting operator to access the null-terminated C string contained in a CString object. No characters are copied; only a pointer is returned. Be careful with this operator. If you change a CString object after you have obtained the character pointer, you may cause a reallocation of memory that invalidates the pointer.
operator LPCTSTR ( ) const;
| Header File | Afx.h | 
| Platforms | |
| Versions | 1.0 and later | 
| Complete documentation | Visual C++ documentation | 
CString Overview, CString Operators, Simple Value Types