CString::UnlockBuffer

Call this member function to unlock the buffer that was previously secured by calling LockBuffer. UnlockBuffer resets the reference count to 1.

The CString destructor implies UnlockBuffer to ensure that you do not leave the buffer locked when the destructor is called.

Syntax

void UnlockBuffer( );

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CString Overview, CString Member Functions, Simple Value Types, CString::LockBuffer, CString::GetBuffer, CString::ReleaseBuffer