Click here to Skip to main content
15,885,916 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: What is order of colors in bitmap pixel array? Pin
vgrigor26-Aug-03 5:04
vgrigor26-Aug-03 5:04 
GeneralRe: What is order of colors in bitmap pixel array? Pin
roel_26-Aug-03 6:12
roel_26-Aug-03 6:12 
GeneralSimple questions for the experts Pin
NewHSKid26-Aug-03 1:00
NewHSKid26-Aug-03 1:00 
GeneralRe: Simple questions for the experts Pin
Babayan Hovhannes26-Aug-03 1:05
Babayan Hovhannes26-Aug-03 1:05 
GeneralRe: Simple questions for the experts Pin
NewHSKid26-Aug-03 1:19
NewHSKid26-Aug-03 1:19 
GeneralRe: Simple questions for the experts Pin
Babayan Hovhannes26-Aug-03 2:37
Babayan Hovhannes26-Aug-03 2:37 
GeneralRe: Simple questions for the experts Pin
Bob Stanneveld26-Aug-03 5:43
Bob Stanneveld26-Aug-03 5:43 
GeneralProblem using Pred to sort a List of _bstr_t using STL Pin
Braulio Dez26-Aug-03 0:52
Braulio Dez26-Aug-03 0:52 
Hi,

I have a list of _bstr_t, and I'm trying to sort it using the cool features of STL ( this pred method, to make the sort I need an special compare, first removing two characters), my code looks something like:

Definition:

<br />
typedef std::list<bstr_t> CList;<br />
<br />
CList m_Files;<br />
<br />
bool pred(const bstr_t &x, const bstr_t &y);<br />


Predicate: ( just some silly test first)
<br />
bool pred(const bstr_t &x, const bstr_t &y)<br />
{<br />
    return true;<br />
}<br />


Call:
<br />
std::sort(m_Files.begin(), m_Files.end(), pred);<br />



And the error that it gives me:


error C2784: '_Distance __cdecl _STL::operator -(const class _STL::reverse_iterator<_RandomAccessIterator,_Tp,_Reference,_Pointer,_Distance> &,const class _STL::reverse_iterato
r<_RandomAccessIterator,_Tp,_Reference,_Pointer,_Distance> &)' : could not deduce template argument for 'const class _STL::reverse_iterator<_RandomAccessIterator,_Tp,_Reference,_Pointer,_Distance> &' from 'struct _STL::_List_iterator<class _bstr_t,s
<="" small="">


Cry | :(( , I know... all the thing that only have three letters are not compatible between them... ATL ... STL ... MFC... COM Smile | :)

Thanks in advance, greetings

GeneralRe: Problem using Pred to sort a List of _bstr_t using STL Pin
Johnny ²26-Aug-03 1:07
Johnny ²26-Aug-03 1:07 
GeneralRe: Problem using Pred to sort a List of _bstr_t using STL Pin
Braulio Dez26-Aug-03 1:19
Braulio Dez26-Aug-03 1:19 
GeneralRe: Problem using Pred to sort a List of _bstr_t using STL Pin
ZoogieZork26-Aug-03 2:46
ZoogieZork26-Aug-03 2:46 
GeneralRe: Problem using Pred to sort a List of _bstr_t using STL Pin
Nemanja Trifunovic26-Aug-03 5:15
Nemanja Trifunovic26-Aug-03 5:15 
QuestionHow to rename the &quot;OK&quot; and &quot;Cancel&quot; in a property sheet Pin
julych26-Aug-03 0:17
julych26-Aug-03 0:17 
AnswerRe: How to rename the "OK" and "Cancel" in a property sheet Pin
Anthony_Yio26-Aug-03 0:47
Anthony_Yio26-Aug-03 0:47 
AnswerRe: How to rename the &quot;OK&quot; and &quot;Cancel&quot; in a property sheet Pin
vcplusplus26-Aug-03 3:43
vcplusplus26-Aug-03 3:43 
QuestionHow to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Kyle Chen26-Aug-03 0:00
Kyle Chen26-Aug-03 0:00 
AnswerRe: How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Babayan Hovhannes26-Aug-03 0:10
Babayan Hovhannes26-Aug-03 0:10 
GeneralRe: How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Kyle Chen26-Aug-03 14:56
Kyle Chen26-Aug-03 14:56 
AnswerRe: How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Tibor Blazko26-Aug-03 3:08
Tibor Blazko26-Aug-03 3:08 
GeneralRe: How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Kyle Chen26-Aug-03 14:58
Kyle Chen26-Aug-03 14:58 
GeneralRe: How to show correct visual styles in Windows XP for CTabCtrl when tabs at the bottom ? Pin
Tibor Blazko26-Aug-03 19:26
Tibor Blazko26-Aug-03 19:26 
GeneralImage Processing Pin
Faizi25-Aug-03 23:55
Faizi25-Aug-03 23:55 
GeneralRe: Image Processing Pin
Babayan Hovhannes26-Aug-03 0:07
Babayan Hovhannes26-Aug-03 0:07 
GeneralOutlook plugin problem Pin
Snakebyte25-Aug-03 23:41
Snakebyte25-Aug-03 23:41 
GeneralRe: Outlook plugin problem Pin
Braulio Dez26-Aug-03 0:54
Braulio Dez26-Aug-03 0:54 

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.