Mombu the Microsoft Forum sponsored links

Go Back   Mombu the Microsoft Forum > Microsoft > GetColumnSortData() always returns S_FALSE
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st April 12:40
eric voskuil
External User
 
Posts: 1
Default GetColumnSortData() always returns S_FALSE


problem:
GetColumnSortData() always returns S_FALSE

simplified code:
===========
DWORD dwIdSize = ( strwColumnSetId.GetLength() ) * sizeof( wchar_t );
DWORD dwAllocSize = sizeof( SColumnSetID ) + dwIdSize;
SColumnSetID* pColumnSetId = reinterpret_cast<SColumnSetID*>( new
BYTE[dwAllocSize] );
pColumnSetId->dwFlags = RESERVED;
pColumnSetId->cBytes = dwIdSize;
::lstrcpyW( reinterpret_cast<LPWSTR>(pColumnSetId->id), strwColumnSetId );
MMC_SORT_SET_DATA* pColumnSortSetData = NULL;
hr = piColumnData->GetColumnSortData( pColumnSetId, &pColumnSortSetData );

notes:
there is defiantely a current result view and a sort (and icon) on the
column set
the data object is being queried for the column set for this scope item
(CCF_COLUMN_SET_ID)
the data object is returning the same value (strwColumnSetId) as is being
provided to GetColumnSortData
IColumnData is a current query from the IConsole2 drawn from the appropriate
IComponent

Stumped.

TIA,

Eric
  Reply With Quote


  sponsored links


2 30th April 23:02
eric voskuil
External User
 
Posts: 1
Default GetColumnSortData() always returns S_FALSE


No takers? Can anyone tell me if they've had any success with the method?

Eric
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666