Click here to Skip to main content
15,889,462 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
GeneralRe: How to get timer id from onTimer() in WTL Pin
Stuart Dootson7-Jan-09 23:24
professionalStuart Dootson7-Jan-09 23:24 
GeneralRe: How to get timer id from onTimer() in WTL Pin
josip cagalj7-Jan-09 23:56
josip cagalj7-Jan-09 23:56 
GeneralRe: How to get timer id from onTimer() in WTL Pin
Stuart Dootson8-Jan-09 0:30
professionalStuart Dootson8-Jan-09 0:30 
QuestionNot getting events in ATL Pin
DrkAngr6-Jan-09 8:56
DrkAngr6-Jan-09 8:56 
QuestionWTL Tab icon headache Pin
Nicolai M2-Jan-09 12:41
Nicolai M2-Jan-09 12:41 
AnswerRe: WTL Tab icon headache Pin
JaydeepB6-Jan-09 10:36
JaydeepB6-Jan-09 10:36 
QuestionRe: WTL Tab icon headache Pin
Nicolai M14-Jan-09 1:42
Nicolai M14-Jan-09 1:42 
QuestionSTL string::const_iterator problem converting code from VC6 to VS2008. Pin
Neville Franks28-Dec-08 12:55
Neville Franks28-Dec-08 12:55 
The following code compiled fine on VC6, but won't on VS2008. The first param to regex_search() does not match any of the function signatures.

    string::const_iterator ssource_pos;
    const boost::match_flag_type mflags = boost::match_default | boost::match_not_dot_newline | boost::format_default;
    const boost::regex re( sre, boost::regex::perl | boost::regex::icase );
    boost::match_results<std::string::const_iterator xmlns:std="#unknown"> what;
    const bool bstat = boost::regex_search( ssource_pos, what, re, mflags );
</std::string::const_iterator>


In VC6 it must have been happy using:

bool regex_search(const basic_string<chart,>& s, 
                  match_results<<br mode="hold" />                      typename basic_string<chart,>::const_iterator, 
                      Allocator>& m, 
                  const basic_regex<chart,>& e, 
                  match_flag_type flags = match_default); 


but in VS2008 I get:

1>s:\libs\saigcontrols\strlib\sgstr_parse.cpp(628) : error C2780: 'bool boost::regex_search(const std::basic_string<chart,st,sa> &,const boost::basic_regex<chart,traits> &,boost::regex_constants::match_flag_type)' : expects 3 arguments - 4 provided
1>        s:\libs\boost_1_33_1\boost\regex\v4\regex_search.hpp(152) : see declaration of 'boost::regex_search'
1>s:\libs\saigcontrols\strlib\sgstr_parse.cpp(628) : error C2780: 'bool boost::regex_search(const charT *,const boost::basic_regex<chart,traits> &,boost::regex_constants::match_flag_type)' : expects 3 arguments - 4 provided
1>        s:\libs\boost_1_33_1\boost\regex\v4\regex_search.hpp(144) : see declaration of 'boost::regex_search'
1>s:\libs\saigcontrols\strlib\sgstr_parse.cpp(628) : error C2782: 'bool boost::regex_search(BidiIterator,BidiIterator,const boost::basic_regex<chart,traits> &,boost::regex_constants::match_flag_type)' : template parameter 'BidiIterator' is ambiguous


I would have though using:

const bool bstat = boost::regex_search( *ssource_pos, what, re, mflags );


would resolve this but it doesn't.

Boost reference is here: http://www.boost.org/doc/libs/1_33_1/libs/regex/doc/regex_search.html[^]

I am not using the latest Boost release, yet.

Neville Franks, Author of Surfulater www.surfulater.com "Save what you Surf" and ED for Windows www.getsoft.com


AnswerRe: STL string::const_iterator problem converting code from VC6 to VS2008. Pin
Andy Moore29-Dec-08 6:52
Andy Moore29-Dec-08 6:52 
GeneralRe: STL string::const_iterator problem converting code from VC6 to VS2008. Pin
Neville Franks29-Dec-08 9:52
Neville Franks29-Dec-08 9:52 
GeneralRe: STL string::const_iterator problem converting code from VC6 to VS2008. Pin
Stuart Dootson29-Dec-08 14:04
professionalStuart Dootson29-Dec-08 14:04 
GeneralRe: STL string::const_iterator problem converting code from VC6 to VS2008. Pin
Neville Franks29-Dec-08 14:16
Neville Franks29-Dec-08 14:16 
QuestionCOM aggregation Pin
KASR121-Dec-08 19:59
KASR121-Dec-08 19:59 
AnswerRe: COM aggregation Pin
Stuart Dootson22-Dec-08 0:49
professionalStuart Dootson22-Dec-08 0:49 
QuestionDoubt in QueryInterface pointers Pin
KASR121-Dec-08 18:45
KASR121-Dec-08 18:45 
AnswerRe: Doubt in QueryInterface pointers Pin
Stuart Dootson22-Dec-08 0:46
professionalStuart Dootson22-Dec-08 0:46 
GeneralRe: Doubt in QueryInterface pointers Pin
KASR122-Dec-08 0:51
KASR122-Dec-08 0:51 
Questioncannot open include file 'atlres.h' Pin
josip cagalj19-Dec-08 1:53
josip cagalj19-Dec-08 1:53 
AnswerRe: cannot open include file 'atlres.h' Pin
Stuart Dootson19-Dec-08 2:16
professionalStuart Dootson19-Dec-08 2:16 
GeneralRe: cannot open include file 'atlres.h' Pin
josip cagalj19-Dec-08 2:35
josip cagalj19-Dec-08 2:35 
GeneralRe: cannot open include file 'atlres.h' Pin
Stuart Dootson19-Dec-08 2:38
professionalStuart Dootson19-Dec-08 2:38 
GeneralRe: cannot open include file 'atlres.h' Pin
josip cagalj19-Dec-08 2:42
josip cagalj19-Dec-08 2:42 
GeneralRe: cannot open include file 'atlres.h' Pin
josip cagalj19-Dec-08 2:47
josip cagalj19-Dec-08 2:47 
GeneralRe: cannot open include file 'atlres.h' Pin
Stuart Dootson19-Dec-08 3:05
professionalStuart Dootson19-Dec-08 3:05 
GeneralRe: cannot open include file 'atlres.h' Pin
josip cagalj19-Dec-08 3:13
josip cagalj19-Dec-08 3:13 

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.