Click here to Skip to main content
15,890,579 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
QuestionATL Object having event Pin
godspeed12324-Jan-07 12:35
godspeed12324-Jan-07 12:35 
AnswerRe: ATL Object having event Pin
Roger Stoltz24-Jan-07 21:07
Roger Stoltz24-Jan-07 21:07 
QuestionI can't see ListView Control.what's the problem ? Pin
shuaicarr23-Jan-07 14:39
shuaicarr23-Jan-07 14:39 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Michael Dunn23-Jan-07 15:37
sitebuilderMichael Dunn23-Jan-07 15:37 
AnswerRe: I can't see ListView Control.what's the problem ? Pin
Alain Rist24-Jan-07 0:16
Alain Rist24-Jan-07 0:16 
Answeri called AtlInitCommonControls() .and set proper styles. Pin
shuaicarr24-Jan-07 1:24
shuaicarr24-Jan-07 1:24 
AnswerRe: i called AtlInitCommonControls() .and set proper styles. Pin
Alain Rist24-Jan-07 8:54
Alain Rist24-Jan-07 8:54 
QuestionWTL compile problems Pin
damir_tk20-Jan-07 1:21
damir_tk20-Jan-07 1:21 
Hello everybody.

I get the following errors when compiling a small dialog app. I am using WTL 8.0 with VS 2005, but the same goes if I use 7.5 or 7.1, and I did everything correctly, moving the Platform SDK include to the top of the list in the include options, etc. Any help is appreciated.

Error 94 error C2446: '==' : no conversion from 'int' to 'LPCTSTR' e:\wtl80\include\atlmisc.h 3878
Error 95 error C2040: '==' : 'LPCTSTR' differs in levels of indirection from 'int' e:\wtl80\include\atlmisc.h 3878
Error 96 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269
Error 97 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282
Error 98 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298
Error 99 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305
Error 100 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324
Error 101 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425
Error 102 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432
Error 103 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439
Error 104 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446
Error 105 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459
Error 106 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490
Error 107 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490
Error 108 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491
Error 110 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496
Error 111 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496
Error 112 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496
Error 113 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7497
Error 115 error C2061: syntax error : identifier 'TEXTRANGEA' e:\wtl80\include\atlctrls.h 7502
Error 116 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7532
Error 117 error C2535: 'DWORD WTL::CRichEditCtrlT<tbase>::GetDefaultCharFormat(void) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7533
Error 118 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7539
Error 119 error C2535: 'BOOL WTL::CRichEditCtrlT<tbase>::SetCharFormat(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7540
Error 120 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7546
Error 121 error C2535: 'BOOL WTL::CRichEditCtrlT<tbase>::SetDefaultCharFormat(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7547
Error 122 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7553
Error 123 error C2535: 'DWORD WTL::CRichEditCtrlT<tbase>::GetSelectionCharFormat(void) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7554
Error 124 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7560
Error 125 error C2535: 'BOOL WTL::CRichEditCtrlT<tbase>::SetSelectionCharFormat(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7561
Error 126 error C2061: syntax error : identifier 'CHARFORMAT2A' e:\wtl80\include\atlctrls.h 7567
Error 127 error C2535: 'BOOL WTL::CRichEditCtrlT<tbase>::SetWordCharFormat(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7568
Error 128 error C2061: syntax error : identifier 'PARAFORMAT2' e:\wtl80\include\atlctrls.h 7574
Error 129 error C2535: 'DWORD WTL::CRichEditCtrlT<tbase>::GetParaFormat(void) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7575
Error 130 error C2061: syntax error : identifier 'PARAFORMAT2' e:\wtl80\include\atlctrls.h 7581
Error 131 error C2535: 'BOOL WTL::CRichEditCtrlT<tbase>::SetParaFormat(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7582
Error 132 error C2146: syntax error : missing ';' before identifier 'GetTextMode' e:\wtl80\include\atlctrls.h 7588
Error 133 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7588
Error 134 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7589
Error 136 error C2061: syntax error : identifier 'TEXTMODE' e:\wtl80\include\atlctrls.h 7594
Error 137 error C2146: syntax error : missing ';' before identifier 'GetUndoName' e:\wtl80\include\atlctrls.h 7600
Error 138 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7600
Error 139 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7601
Error 141 error C2146: syntax error : missing ';' before identifier 'GetRedoName' e:\wtl80\include\atlctrls.h 7606
Error 142 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7606
Error 143 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7607
Error 145 error C2061: syntax error : identifier 'GETTEXTEX' e:\wtl80\include\atlctrls.h 7645
Error 146 error C2061: syntax error : identifier 'GETTEXTLENGTHEX' e:\wtl80\include\atlctrls.h 7663
Error 147 error C2061: syntax error : identifier 'SETTEXTEX' e:\wtl80\include\atlctrls.h 7680
Error 148 error C2061: syntax error : identifier 'FINDTEXTA' e:\wtl80\include\atlctrls.h 7821
Error 149 error C2061: syntax error : identifier 'FINDTEXTEXA' e:\wtl80\include\atlctrls.h 7831
Error 150 error C2535: 'LONG WTL::CRichEditCtrlT<tbase>::FindTextA(DWORD) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7832
Error 151 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7841
Error 152 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7847
Error 153 error C2535: 'LONG WTL::CRichEditCtrlT<tbase>::FormatRange(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7848
Error 154 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7872
Error 155 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7878
Error 156 error C2143: syntax error : missing ';' before '*' e:\wtl80\include\atlctrls.h 7941
Error 157 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7941
Error 158 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7942
Error 160 error C2061: syntax error : identifier 'IRichEditOleCallback' e:\wtl80\include\atlctrls.h 7949
Error 163 error C2446: '==' : no conversion from 'int' to 'LPCTSTR' e:\wtl80\include\atlmisc.h 3878
Error 164 error C2040: '==' : 'LPCTSTR' differs in levels of indirection from 'int' e:\wtl80\include\atlmisc.h 3878
Error 193 error C2872: 'CPoint' : ambiguous symbol e:\microsoft visual studio .net 2005 team edition\vc\atlmfc\include\atlimage.h 199
Error 194 error C2872: 'CPoint' : ambiguous symbol e:\microsoft visual studio .net 2005 team edition\vc\atlmfc\include\atlimage.h 199
Error 222 error C2872: 'CPoint' : ambiguous symbol e:\microsoft visual studio .net 2005 team edition\vc\atlmfc\include\atlimage.h 199
Error 223 error C2872: 'CPoint' : ambiguous symbol e:\microsoft visual studio .net 2005 team edition\vc\atlmfc\include\atlimage.h 199

Most of the problems seems to be in the atlctrls.h, and I did not include UNICODE in the project settings.

Thanks.
QuestionVBScript code to extract Window title Pin
B.L.Praveen17-Jan-07 1:12
B.L.Praveen17-Jan-07 1:12 
QuestionRedrawing problems while using ATL Dialog and Bitmaps Pin
rknrajesh15-Jan-07 22:50
rknrajesh15-Jan-07 22:50 
QuestionOutlook Toolbar Pin
_AnsHUMAN_ 15-Jan-07 22:34
_AnsHUMAN_ 15-Jan-07 22:34 
AnswerRe: Outlook Toolbar Pin
Laxman Auti30-Jan-07 22:18
Laxman Auti30-Jan-07 22:18 
Questionsubclassing without resource Pin
merlinos15-Jan-07 11:12
merlinos15-Jan-07 11:12 
AnswerRe: subclassing without resource Pin
prasad_som15-Jan-07 19:12
prasad_som15-Jan-07 19:12 
GeneralRe: subclassing without resource Pin
Jörgen Sigvardsson15-Jan-07 21:14
Jörgen Sigvardsson15-Jan-07 21:14 
GeneralRe: subclassing without resource Pin
prasad_som15-Jan-07 21:31
prasad_som15-Jan-07 21:31 
AnswerRe: subclassing without resource Pin
Jörgen Sigvardsson15-Jan-07 21:14
Jörgen Sigvardsson15-Jan-07 21:14 
QuestionVS7.0 and Above: SafeArray, VB.NET and VC++ Pin
Jeffrey Walton13-Jan-07 6:26
Jeffrey Walton13-Jan-07 6:26 
Questionalter class-style before creation in ATL/WTL ? Pin
shuaicarr9-Jan-07 21:39
shuaicarr9-Jan-07 21:39 
AnswerRe: alter class-style before creation in ATL/WTL ? Pin
Stephen Hewitt10-Jan-07 12:24
Stephen Hewitt10-Jan-07 12:24 
QuestionInterface Definition (No Implementation) Pin
Jeffrey Walton9-Jan-07 14:20
Jeffrey Walton9-Jan-07 14:20 
AnswerRe: Interface Definition (No Implementation) Pin
Stephen Hewitt9-Jan-07 15:40
Stephen Hewitt9-Jan-07 15:40 
AnswerRe: Interface Definition (No Implementation) Pin
Michael Dunn9-Jan-07 22:09
sitebuilderMichael Dunn9-Jan-07 22:09 
QuestionToolbars on internet explorer and tooltips Pin
Member 35534028-Jan-07 23:05
Member 35534028-Jan-07 23:05 
AnswerRe: Toolbars on internet explorer and tooltips Pin
Michael Dunn9-Jan-07 0:39
sitebuilderMichael Dunn9-Jan-07 0:39 

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.