MFC CPtrList, CStringList 클래스 배열 사용 예제 CStringList [New, Delete] 123CStringList* pA1 = new CStringList;delete( pA1 );CStringList CR1( 5 );cs [GetHeadPosition] 12POSITION PS1;PS1 = CR1.GetHeadPosition( );cs [AddHead] 12CString S10("AAA");PS1 = CR1.AddHead( (LPCTSTR)S10 );cs [Insert, etc...] 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455S10 = ..
[MFC강좌] CStringArray, CPtrList, CList 사용법 CStringArray[New, Delete] 12CStringArray* pA5 = new CStringArray;delete( pA5 );cs [SetSize, SetAt, GetUpperBound, GetAt] 12345678910CStringArray AL5;AL5.SetSize( 2 );CString S5("AAA");AL5.SetAt( 0, (LPCTSTR)S5 );AL5 [1] = "BBB"; int N5 = AL5.GetUpperBound( );CString D5;D5 = AL5.GetAt( 0 );D5 = AL5 [1];cs CPtrList[New, Delete] 123456CPtrList* pA3 = new CP..
[MFC강좌] 3가지 배열 예제 (CByteArray, CWordArray, CUnitArray) MFC에서 제공하는 배열들은 아래와 같습니다. Class Name - Data Type CByteArray : 8-bit bytes (BYTEs) CWordArray : 16-bit words (WORDs) CDWordArray : 32-bit double words (DWORDs) CUIntArray : Unsigned integers (UINTs) CStringArray : CStrings CPtrArray : void pointers CObArray : CObject pointers CWordArray WORD: unsigned short int [New, Delete] 12CWordArray* pA2..