Click here to Skip to main content
15,915,324 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: convertion vc6 to dotnet2008 Pin
Stuart Dootson23-Apr-09 21:16
professionalStuart Dootson23-Apr-09 21:16 
GeneralRe: convertion vc6 to dotnet2008 Pin
Rajeesh MP24-Apr-09 0:40
Rajeesh MP24-Apr-09 0:40 
GeneralRe: convertion vc6 to dotnet2008 Pin
rana ray27-Apr-09 2:58
rana ray27-Apr-09 2:58 
QuestionDebuge the COM(ATL) [modified] Pin
anzhiyue16-Apr-09 15:00
anzhiyue16-Apr-09 15:00 
AnswerRe: Debuge the COM(ATL) Pin
Stuart Dootson16-Apr-09 20:40
professionalStuart Dootson16-Apr-09 20:40 
QuestionActiveX [modified] Pin
siva45515-Apr-09 23:16
siva45515-Apr-09 23:16 
QuestionSTL vector, search for a sequence Pin
kaminem13-Apr-09 22:16
kaminem13-Apr-09 22:16 
AnswerRe: STL vector, search for a sequence Pin
Stuart Dootson14-Apr-09 22:46
professionalStuart Dootson14-Apr-09 22:46 
The simplest algorithm is probably this:

std::pair<size_t, size_t> find_first_subsequence(std::vector<std::string> const& v1,
                                                 std::vector<std::string> const& v2)
{
   std::vector<std::string>::const_iterator pos = std::find(v1.begin(), v1.end(), v2[0]);
   const size_t firstPos = pos-v1.begin();
   if (pos == v1.end()) return std::make_pair(-1, -1);
   size_t numEqual = 0;
   while(numEqual < v2.size() && pos != v1.end() && *pos == v2[numEqual])
   {
      ++numEqual;
      ++pos;
   }
   return std::make_pair(firstPos, numEqual);
}


Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

AnswerRe: STL vector, search for a sequence Pin
Stephen Hewitt15-Apr-09 0:58
Stephen Hewitt15-Apr-09 0:58 
GeneralRe: STL vector, search for a sequence Pin
Stuart Dootson16-Apr-09 20:34
professionalStuart Dootson16-Apr-09 20:34 
GeneralRe: STL vector, search for a sequence Pin
Stephen Hewitt19-Apr-09 4:43
Stephen Hewitt19-Apr-09 4:43 
QuestionAtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
bfoo759-Apr-09 13:19
bfoo759-Apr-09 13:19 
AnswerRe: AtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
Stuart Dootson14-Apr-09 22:14
professionalStuart Dootson14-Apr-09 22:14 
GeneralRe: AtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
bfoo7521-Apr-09 11:07
bfoo7521-Apr-09 11:07 
GeneralRe: AtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
Stuart Dootson21-Apr-09 11:16
professionalStuart Dootson21-Apr-09 11:16 
GeneralRe: AtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
bfoo7522-Apr-09 9:45
bfoo7522-Apr-09 9:45 
AnswerRe: AtlAxAttachControl - An outgoing call cannot be made since the application is dispatching an input-synchronous call. Pin
weir750343-Feb-10 17:30
weir750343-Feb-10 17:30 
QuestionCan CAxWindow's subclass implement in a dll, and create in exe program? Pin
SearchDream30-Mar-09 23:39
SearchDream30-Mar-09 23:39 
AnswerRe: Can CAxWindow's subclass implement in a dll, and create in exe program? Pin
Stuart Dootson31-Mar-09 6:56
professionalStuart Dootson31-Mar-09 6:56 
GeneralRe: Can CAxWindow's subclass implement in a dll, and create in exe program? Pin
SearchDream31-Mar-09 18:25
SearchDream31-Mar-09 18:25 
QuestionIs there anyway to authenticate the COM client? Pin
lucyh3h30-Mar-09 6:05
lucyh3h30-Mar-09 6:05 
AnswerRe: Is there anyway to authenticate the COM client? Pin
Stuart Dootson30-Mar-09 6:57
professionalStuart Dootson30-Mar-09 6:57 
GeneralRe: Is there anyway to authenticate the COM client? Pin
lucyh3h30-Mar-09 10:37
lucyh3h30-Mar-09 10:37 
GeneralRe: Is there anyway to authenticate the COM client? Pin
Stuart Dootson30-Mar-09 11:28
professionalStuart Dootson30-Mar-09 11:28 
GeneralRe: Is there anyway to authenticate the COM client? Pin
lucyh3h31-Mar-09 4:19
lucyh3h31-Mar-09 4:19 

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.