Click here to Skip to main content
15,905,612 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
Questionhow to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin21-Apr-08 15:23
shwlin21-Apr-08 15:23 
AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin24-Apr-08 15:01
shwlin24-Apr-08 15:01 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
Charles Spirz27-Apr-08 11:51
Charles Spirz27-Apr-08 11:51 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl [modified] Pin
shwlin4-May-08 20:51
shwlin4-May-08 20:51 
AnswerRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
shwlin18-May-08 15:54
shwlin18-May-08 15:54 
GeneralRe: how to create a docable or vertical toolbar based on WTL CToolBarCtrl Pin
rajas6-May-09 6:04
rajas6-May-09 6:04 
GeneralFast search of a vector of strings Pin
bruccutler15-Apr-08 12:40
bruccutler15-Apr-08 12:40 
GeneralRe: Fast search of a vector of strings Pin
Andy Moore16-Apr-08 6:39
Andy Moore16-Apr-08 6:39 
This will not return a string but an iterator to the matching string. Your code would look something like this.

bool Comparer : public std::binary_function<wchar_t*, wchar_t*,bool>
{
 public:
    bool operator()(const wchar_t* s1, const wchar_t* s2) const
    {
        return (wcscmp(s1, s2) == 0);
    }
};

std::vector<wchar_t*> paths;
std::vector<wchar_t*>::const_iterator it;

it = std::find_if(paths.begin(), paths.end(), std::bind2nd(Comparer(), L"some string"));

if (it != paths.end())
{
  /*Found it*
  const wchar_t* sz = *it;
}

...

Pax Domini sit semper vobiscum

Generalerror MIDL2025 : syntax error Pin
Ganesh_T14-Apr-08 0:53
Ganesh_T14-Apr-08 0:53 
QuestionRe: error MIDL2025 : syntax error Pin
Nathan Holt at EMOM16-Apr-08 10:56
Nathan Holt at EMOM16-Apr-08 10:56 
GeneralCoCreateInstanceAsAdmin Pin
swamy Narasimha13-Apr-08 23:14
swamy Narasimha13-Apr-08 23:14 
GeneralRe: CoCreateInstanceAsAdmin Pin
Jörgen Sigvardsson1-May-08 0:19
Jörgen Sigvardsson1-May-08 0:19 
QuestionVB Client Crashes while using ATL COM build in C++ Pin
garammasala13-Apr-08 22:56
garammasala13-Apr-08 22:56 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM16-Apr-08 11:35
Nathan Holt at EMOM16-Apr-08 11:35 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
garammasala21-Apr-08 18:15
garammasala21-Apr-08 18:15 
GeneralRe: VB Client Crashes while using ATL COM build in C++ Pin
Nathan Holt at EMOM22-Apr-08 6:27
Nathan Holt at EMOM22-Apr-08 6:27 
GeneralRe: VB Client Crashes while using ATL COM build in C++ [modified] Pin
garammasala28-Apr-08 2:49
garammasala28-Apr-08 2:49 
GeneralConverting MFC code to WTL [modified] Pin
Rune Andersen11-Apr-08 3:18
Rune Andersen11-Apr-08 3:18 
GeneralDoubt in templates Pin
C.P.Rajesh11-Apr-08 1:57
C.P.Rajesh11-Apr-08 1:57 
GeneralRe: Doubt in templates Pin
Johann Gerell14-May-08 21:34
Johann Gerell14-May-08 21:34 
QuestionHow to use multi byte character set in vs2008 ATL Pin
Robe10-Apr-08 18:16
Robe10-Apr-08 18:16 
AnswerRe: How to use multi byte character set in vs2008 ATL Pin
Nathan Holt at EMOM16-Apr-08 11:41
Nathan Holt at EMOM16-Apr-08 11:41 
GeneralRe: How to use multi byte character set in vs2008 ATL Pin
dlocarnini9-Jun-08 3:57
dlocarnini9-Jun-08 3:57 
Generalconversion from char* to string Pin
gReaen9-Apr-08 3:35
gReaen9-Apr-08 3:35 
GeneralRe: conversion from char* to string Pin
Hamid_RT14-Apr-08 21:49
Hamid_RT14-Apr-08 21:49 

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.