...STR ( ) const;说明:返回指向储存在CString类对象内的字符串指针。8.MidMid函数有两个重载函数:CString Mid( int nFirst ) const; throw( CMemoryException );获取从nFirst位置开始的子串。CString Mid( int nFirst, int nCount ) const; throw( CMemoryException );获取从nFirst...
...rray:CPtrArray:CUIntArray:CWordArray:CStringArray:常用成员函数1.int Add( ARG_TYPE newElement ); throw( CMemoryException );2.TYPE& ElementAt( int nIndex );3.void FreeExtra( );4.TYPE GetAt( int nIndex ) const5.int ...
...rator +( const CString& string1, const CString& string2 );throw( CMemoryException ); friend CString operator +( const CString& string, TCHAR ch );t...
...ASSERT( s.IsEmpty() );请参阅 CString::GetLength 2.CString::LeftCString Left( int nCount ) const;throw( CMemoryException );返回值:返回的字符串是前nCount个字符。示例:CString s( _T("abcdef") );ASSERT( s.Left(2) == _T("ab&quo...
...例CStrings;ASSERT(s.IsEmpty());请参阅CString::GetLength2.CString::LeftCStringLeft(intnCount)const;throw(CMemoryException);返回值:返回的字符串是前nCount个字符。示例:CStrings(_T("abcdef"));ASSERT(s.Left(2)==_T("ab"));3....
...ve=FALSE,BOOLbReadOnly=FALSE,LPCSTR lpszConnect=”ODBC;”,BOOL bUseCursorLib=TRUE);throw(CDBException,CmemoryException);如果成功形成连接,则返回非 0 值。功能:打开新构造的 CDatabase 对象,并将它初始化。1.1.2.3、OpenEx() 函数:函数原型: virtual BOOL OpenEx(LPCS...
...用(如果Left,Mid),要用ReleaseBuffer解锁一.函数原型CString::GetBufferLPTSTR GetBuffer( int nMinBufLength );throw( CMemoryException );Return ValueAn LPTSTR pointer to the object’s (null-terminated) character buffer.ParametersnMinBu...
...); 请参阅 CString::GetLength 2.CString::Left CString Left( int nCount ) const; throw( CMemoryException ); 返回值:返回的字符串是前nCount个字符。 示例: CString s( _T("abcdef") ); ASSERT( s.Left(2) ==...
... CArchive::CArchive CArchive(CFile*pFile,UINTnMode,int nBufSize=4096,void*lpBuf=NULL ); throw(CmemoryException,CArchiveException,CFileException); 参数 pFileCFile 对象的指针。CFile对象是永久数据的最终的源或目标。 nMode标识。它指定了对象...