Click here to Skip to main content
15,898,222 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Drag n Drop with remote files Pin
Alex_Y28-Jul-05 8:40
Alex_Y28-Jul-05 8:40 
GeneralRe: Drag n Drop with remote files Pin
Henrik Pettersson28-Jul-05 21:33
Henrik Pettersson28-Jul-05 21:33 
GeneralRe: Drag n Drop with remote files Pin
Alex_Y29-Jul-05 8:52
Alex_Y29-Jul-05 8:52 
QuestionHow to set caret position in Edit Control? Pin
ClockDivider28-Jul-05 4:12
ClockDivider28-Jul-05 4:12 
AnswerRe: How to set caret position in Edit Control? Pin
John R. Shaw28-Jul-05 4:36
John R. Shaw28-Jul-05 4:36 
GeneralRe: How to set caret position in Edit Control? Pin
ClockDivider29-Jul-05 4:18
ClockDivider29-Jul-05 4:18 
AnswerRe: How to set caret position in Edit Control? Pin
Alexander M.,28-Jul-05 8:55
Alexander M.,28-Jul-05 8:55 
GeneralErrors using Regex++ with VS .NET 2003 Pin
Franz Klein28-Jul-05 3:56
Franz Klein28-Jul-05 3:56 
I am trying to use regular expressions in my application but I get these errors that I don't seem to be able to solve.
In the properties page of the Solution I have provided links to the Regex++ libraries and includes. My code is as follows (basically a copy of what is given as examples in the Regex documentation)

#include <boost/regex.hpp> <br />
 <br />
 using namespace boost; <br />
  <br />
 bool grep_callback(const match_results<wstring::const_iterator, regex::alloc_type>& result) <br />
{ <br />
   return true;<br />
}

....
{ ...
wstring str_exp = L"[^\\\"]";
wstring expression = str_exp + *searchword + str_exp;
wregex e(expression);
wstring::const_iterator start = text.begin();
wstring::const_iterator end = text.end();
regex_grep(grep_callback, start, end, e, match_default);
}

Can anybody help me?
These are the errors I get:

c : \ B o o s t \ i n c l u d e \ b o o s t \ r e g e x \ v 4 \ r e g e x _ g r e p . h p p ( 5 2 ) : e r r o r C 2 6 6 4 : ' b o o l ( c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > & ) ' : c a n n o t c o n v e r t p a r a m e t e r 1 f r o m ' b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r > ' t o ' c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > & '
w i t h
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
R e a s o n : c a n n o t c o n v e r t f r o m ' b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r > ' t o ' c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > '
w i t h
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
N o c o n s t r u c t o r c o u l d t a k e t h e s o u r c e t y p e , o r c o n s t r u c t o r o v e r l o a d r e s o l u t i o n w a s a m b i g u o u s
c : \ C + + P r o g r a m s \ C C M e t r i c V i e w e r \ W o r d S e a r c h e r . c p p ( 1 0 8 ) : s e e r e f e r e n c e t o f u n c t i o n t e m p l a t e i n s t a n t i a t i o n ' u n s i g n e d i n t b o o s t : : r e g e x _ g r e p < b o o l ( _ _ c d e c l * ) ( c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > & ) , s t d : : b a s i c _ s t r i n g < _ E l e m , _ T r a i t s , _ A x > : : c o n s t _ i t e r a t o r , c h a r T , t r a i t s , s t d : : a l l o c a t o r < _ T y > > ( P r e d i c a t e , B i d i I t e r a t o r , B i d i I t e r a t o r , c o n s t b o o s t : : r e g _ e x p r e s s i o n < c h a r T , t r a i t s , s t d : : a l l o c a t o r < _ T y > > & , b o o s t : : r e g e x _ c o n s t a n t s : : m a t c h _ f l a g _ t y p e ) ' b e i n g c o m p i l e d
w i t h
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e ,
_ E l e m = w c h a r _ t ,
_ T r a i t s = s t d : : c h a r _ t r a i t s < w c h a r _ t > ,
_ A x = s t d : : a l l o c a t o r < w c h a r _ t >,
c h a r T = w c h a r _ t ,
t r a i t s = b o o s t : : r e g e x _ t r a i t s < w c h a r _ t > ,
_ T y = w c h a r _ t ,
P r e d i c a t e = b o o l ( _ _ c d e c l * ) ( c o n s t b o o s t : : m a t c h _ r e s u l t s < s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r , b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e > & )
]
c : \ B o o s t \ i n c l u d e \ b o o s t \ r e g e x \ v 4 \ r e g e x _ g r e p . h p p ( 6 7 ) : e r r o r C 2 6 6 4 : ' b o o l ( c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > & ) ' : c a n n o t c o n v e r t p a r a m e t e r 1 f r o m ' b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r > ' t o ' c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > & '
w i t h
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
R e a s o n : c a n n o t c o n v e r t f r o m ' b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r > ' t o ' c o n s t b o o s t : : m a t c h _ r e s u l t s < B i d i I t e r a t o r , A l l o c a t o r > '
w i t h
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r
]
a n d
[
B i d i I t e r a t o r = s t d : : b a s i c _ s t r i n g < w c h a r _ t , s t d : : c h a r _ t r a i t s < w c h a r _ t > , s t d : : a l l o c a t o r < w c h a r _ t > > : : c o n s t _ i t e r a t o r ,
A l l o c a t o r = b o o s t : : r e g _ e x p r e s s i o n < c h a r > : : a l l o c _ t y p e
]
N o c o n s t r u c t o r c o u l d t a k e t h e s o u r c e t y p e , o r c o n s t r u c t o r o v e r l o a d r e s o l u t i o n w a s a m b i g u o u s

I am the handsome one in the crowd.
QuestionHow to show full vector graphics in a splitter view Pin
greenwyx28-Jul-05 3:19
greenwyx28-Jul-05 3:19 
AnswerRe: How to show full vector graphics in a splitter view Pin
John R. Shaw28-Jul-05 4:44
John R. Shaw28-Jul-05 4:44 
GeneralLink 2001 errors using Glui - glui32.lib Pin
Lombert28-Jul-05 3:11
Lombert28-Jul-05 3:11 
GeneralProblem with CFrameWnd and CPropertySheet Pin
Member 209601128-Jul-05 2:41
Member 209601128-Jul-05 2:41 
GeneralRe: Problem with CFrameWnd and CPropertySheet Pin
Alex_Y28-Jul-05 3:11
Alex_Y28-Jul-05 3:11 
GeneralRe: Problem with CFrameWnd and CPropertySheet Pin
Member 209601128-Jul-05 4:12
Member 209601128-Jul-05 4:12 
GeneralRe: Problem with CFrameWnd and CPropertySheet Pin
Alex_Y28-Jul-05 8:36
Alex_Y28-Jul-05 8:36 
GeneralProblem with DirectShow Pin
perroflaco28-Jul-05 1:59
perroflaco28-Jul-05 1:59 
GeneralRe: Problem with DirectShow Pin
mark novak28-Jul-05 4:57
mark novak28-Jul-05 4:57 
GeneralRe: Problem with DirectShow Pin
perroflaco28-Jul-05 8:08
perroflaco28-Jul-05 8:08 
GeneralRe: Problem with DirectShow Pin
mark novak28-Jul-05 13:00
mark novak28-Jul-05 13:00 
GeneralRe: Problem with DirectShow Pin
Alexander M.,28-Jul-05 8:51
Alexander M.,28-Jul-05 8:51 
GeneralRe: Problem with DirectShow Pin
perroflaco31-Jul-05 23:02
perroflaco31-Jul-05 23:02 
Questiondynamic class instantiation in c++? Pin
ThinkingPrometheus28-Jul-05 1:38
ThinkingPrometheus28-Jul-05 1:38 
AnswerRe: dynamic class instantiation in c++? Pin
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX28-Jul-05 2:02
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX28-Jul-05 2:02 
AnswerRe: dynamic class instantiation in c++? Pin
berndg28-Jul-05 2:12
berndg28-Jul-05 2:12 
AnswerRe: dynamic class instantiation in c++? Pin
Bob Stanneveld28-Jul-05 5:14
Bob Stanneveld28-Jul-05 5:14 

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.