Click here to Skip to main content
15,891,777 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionIs is possible to make TransparentBlt without flickering ? Pin
vgrigor26-Aug-03 2:11
vgrigor26-Aug-03 2:11 
AnswerRe: Is is possible to make TransparentBlt without flickering ? Pin
roel_26-Aug-03 3:57
roel_26-Aug-03 3:57 
GeneralRe: Is is possible to make TransparentBlt without flickering ? Pin
vgrigor26-Aug-03 4:42
vgrigor26-Aug-03 4:42 
GeneralRe: Is is possible to make TransparentBlt without flickering ? Pin
l a u r e n26-Aug-03 14:20
l a u r e n26-Aug-03 14:20 
GeneralHelp Saving a drawing piece by piece in XML Pin
lxxrya00126-Aug-03 1:40
lxxrya00126-Aug-03 1:40 
GeneralRe: Help Saving a drawing piece by piece in XML Pin
roel_26-Aug-03 4:00
roel_26-Aug-03 4:00 
QuestionWhat is order of colors in bitmap pixel array? Pin
vgrigor26-Aug-03 1:03
vgrigor26-Aug-03 1:03 
AnswerRe: What is order of colors in bitmap pixel array? Pin
Babayan Hovhannes26-Aug-03 2:06
Babayan Hovhannes26-Aug-03 2:06 
GeneralRe: What is order of colors in bitmap pixel array? Pin
vgrigor26-Aug-03 2:12
vgrigor26-Aug-03 2:12 
GeneralRe: What is order of colors in bitmap pixel array? Pin
Babayan Hovhannes26-Aug-03 2:45
Babayan Hovhannes26-Aug-03 2:45 
GeneralRe: What is order of colors in bitmap pixel array? Pin
roel_26-Aug-03 3:59
roel_26-Aug-03 3:59 
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 

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.