Click here to Skip to main content
15,917,060 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:10
ns3-Oct-02 6:10 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:13
ns3-Oct-02 6:13 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 6:11
Tomasz Sowinski3-Oct-02 6:11 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:28
ns3-Oct-02 6:28 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 6:35
Tomasz Sowinski3-Oct-02 6:35 
GeneralRe: crash on exit Pin
ns3-Oct-02 6:51
ns3-Oct-02 6:51 
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 6:54
Tomasz Sowinski3-Oct-02 6:54 
GeneralRe: crash on exit Pin
ns3-Oct-02 7:10
ns3-Oct-02 7:10 
Trying. I cant strip out their pid and arrpsz stuff safely, and its tied in with their variable optionals. Heres my attempt:

int CSortListCtrl::AddItem2( CString pArray[], int ArraySize)
{
//make a local pArray1[]
	const int iIndex = InsertItem( GetItemCount(), pArray1[0] );

	LPTSTR* arrpsz = new LPTSTR[ ArraySize ];
	arrpsz[ 0 ] = new TCHAR[ lstrlen( pArray1[0] ) + 1 ];
	(void)lstrcpy( arrpsz[ 0 ], pArray1[0] );

 //	va_list list;
//	va_start( list, pszText );

	for( int iColumn = 1; iColumn < ArraySize; iColumn++ )
	{
	//	pszText = va_arg( list, LPCTSTR );
	//	ASSERT_VALID_STRING( pszText );
		 CListCtrl::SetItemText( iIndex, iColumn,  pArray1[iColumn] );

		arrpsz[ iColumn ] = new TCHAR[ lstrlen( pArray1[iColumn] ) + 1 ];
		(void)lstrcpy( arrpsz[ iColumn ], pArray1[iColumn] );
	}

//	va_end( list );

	VERIFY( SetTextArray( iIndex, arrpsz ) );

	return iIndex;
}


Appreciate your help,
ns
GeneralRe: crash on exit Pin
Tomasz Sowinski3-Oct-02 7:19
Tomasz Sowinski3-Oct-02 7:19 
Generalits working!!!! Pin
ns3-Oct-02 7:37
ns3-Oct-02 7:37 
GeneralRe: its working!!!! Pin
Ravi Bhavnani3-Oct-02 7:57
professionalRavi Bhavnani3-Oct-02 7:57 
GeneralRe: its working!!!! Pin
ns3-Oct-02 8:08
ns3-Oct-02 8:08 
QuestionActiveX Question? Pin
Mr_Byte3-Oct-02 5:26
Mr_Byte3-Oct-02 5:26 
AnswerRe: ActiveX Question? Pin
Stephane Rodriguez.3-Oct-02 6:53
Stephane Rodriguez.3-Oct-02 6:53 
AnswerRe: ActiveX Question? Pin
Nitron3-Oct-02 7:14
Nitron3-Oct-02 7:14 
AnswerRe: ActiveX Question? Pin
l a u r e n3-Oct-02 7:15
l a u r e n3-Oct-02 7:15 
QuestionHow to display Internet mail Pin
hien_ng803-Oct-02 5:22
hien_ng803-Oct-02 5:22 
AnswerRe: How to display Internet mail Pin
jmkhael3-Oct-02 5:44
jmkhael3-Oct-02 5:44 
AnswerRe: How to display Internet mail Pin
ColinDavies3-Oct-02 11:04
ColinDavies3-Oct-02 11:04 
GeneralRe: How to display Internet mail Pin
hien_ng803-Oct-02 21:01
hien_ng803-Oct-02 21:01 
Generalactual IP on a local Computer Pin
hien_ng803-Oct-02 5:14
hien_ng803-Oct-02 5:14 
GeneralRe: actual IP on a local Computer Pin
jmkhael3-Oct-02 5:46
jmkhael3-Oct-02 5:46 
GeneralRe: actual IP on a local Computer Pin
Jon Hulatt3-Oct-02 6:08
Jon Hulatt3-Oct-02 6:08 
GeneralRe: actual IP on a local Computer Pin
hien_ng803-Oct-02 21:08
hien_ng803-Oct-02 21:08 
GeneralRe: actual IP on a local Computer Pin
Hanzo25-Oct-02 18:41
Hanzo25-Oct-02 18:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.