Click here to Skip to main content
15,901,283 members
Home / Discussions / ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: Need Tutorial on ATL/WTL/STL Pin
Hamid_RT14-Feb-07 18:28
Hamid_RT14-Feb-07 18:28 
Questionwana close word application after sending mail Pin
salman kazi13-Feb-07 19:46
salman kazi13-Feb-07 19:46 
QuestionQuestion about PostMessage in ATL Pin
godspeed12312-Feb-07 13:57
godspeed12312-Feb-07 13:57 
AnswerRe: Question about PostMessage in ATL Pin
Igor Vigdorchik12-Feb-07 16:16
Igor Vigdorchik12-Feb-07 16:16 
QuestionAny clues out there???? Pin
Michael Bergman12-Feb-07 11:36
Michael Bergman12-Feb-07 11:36 
AnswerWhy did you create a server B? Pin
Igor Vigdorchik12-Feb-07 14:43
Igor Vigdorchik12-Feb-07 14:43 
GeneralRe: Why did you create a server B? Pin
Michael Bergman27-Feb-07 12:35
Michael Bergman27-Feb-07 12:35 
QuestionCompile errors in ATL/WTL application Pin
damir_tk11-Feb-07 12:07
damir_tk11-Feb-07 12:07 
In my ATL application I get a huge number of errors when trying to compile it.

This is my stdafx.h:
#pragma once

#ifndef STRICT
#define STRICT
#endif

#define WIN32_LEAN_AND_MEAN
#define WINVER 0x0500
#define _WIN32_WINNT 0x0500
#define _WIN32_IE 0x0501
#define _RICHEDIT_VER 0x0100

#define _ATL_ALL_WARNINGS

#include <atlbase.h>
#include <atlapp.h>
extern CAppModule _Module;
#include <atlwin.h>
#include <atlstr.h>
#include <atlcontrols.h>

#include "../FileEnc/resource.h"

using namespace ATL;

Any ideas? I tried changing the WTL 8.0 to WTL 7.1, but it is the same. I also updated the header files and moved the include WTL to the bottom of the list in the include options dialog, but to no avail.

This is the error list I get:

Error 2 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269
Error 3 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282
Error 4 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298
Error 5 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305
Error 6 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324
Error 7 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425
Error 8 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432
Error 9 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439
Error 10 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446
Error 11 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459
Error 12 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490
Error 13 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490
Error 14 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491
Error 16 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496
Error 17 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496
Error 18 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496
Error 19 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7497
Error 21 error C2061: syntax error : identifier 'TEXTRANGEA' e:\wtl80\include\atlctrls.h 7502
Error 22 error C2061: syntax error : identifier 'FINDTEXTA' e:\wtl80\include\atlctrls.h 7821
Error 23 error C2061: syntax error : identifier 'FINDTEXTEXA' e:\wtl80\include\atlctrls.h 7831
Error 24 error C2535: 'LONG WTL::CRichEditCtrlT<TBase>::FindText(DWORD) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7832
Error 25 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7841
Error 26 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7847
Error 27 error C2535: 'LONG WTL::CRichEditCtrlT<TBase>::FormatRange(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7848
Error 28 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7872
Error 29 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7878
Error 30 error C2143: syntax error : missing ';' before '*' e:\wtl80\include\atlctrls.h 7941
Error 31 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7941
Error 32 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7942
Error 34 error C2061: syntax error : identifier 'IRichEditOleCallback' e:\wtl80\include\atlctrls.h 7949
Error 35 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1318
Error 36 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1318
Error 37 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atldlgs.h 1332
Error 38 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atldlgs.h 1384
Error 39 error C2143: syntax error : missing ',' before '&' e:\wtl80\include\atldlgs.h 1384
Error 40 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1318
Error 41 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1318
Error 42 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atldlgs.h 1332
Error 43 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atldlgs.h 1384
Error 44 error C2143: syntax error : missing ',' before '&' e:\wtl80\include\atldlgs.h 1384
Error 45 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1461
Error 46 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1461
Error 49 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7269
Error 50 error C2061: syntax error : identifier 'CHARRANGE' e:\wtl80\include\atlctrls.h 7282
Error 51 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7298
Error 52 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7305
Error 53 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7324
Error 54 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7425
Error 55 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7432
Error 56 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7439
Error 57 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atlctrls.h 7446
Error 58 error C2061: syntax error : identifier 'PARAFORMAT' e:\wtl80\include\atlctrls.h 7459
Error 59 error C2146: syntax error : missing ';' before identifier 'GetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7490
Error 60 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7490
Error 61 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7491
Error 63 error C2146: syntax error : missing ';' before identifier 'SetWordBreakProcEx' e:\wtl80\include\atlctrls.h 7496
Error 64 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7496
Error 65 error C2061: syntax error : identifier 'EDITWORDBREAKPROCEX' e:\wtl80\include\atlctrls.h 7496
Error 66 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7497
Error 68 error C2061: syntax error : identifier 'TEXTRANGEA' e:\wtl80\include\atlctrls.h 7502
Error 69 error C2061: syntax error : identifier 'FINDTEXTA' e:\wtl80\include\atlctrls.h 7821
Error 70 error C2061: syntax error : identifier 'FINDTEXTEXA' e:\wtl80\include\atlctrls.h 7831
Error 71 error C2535: 'LONG WTL::CRichEditCtrlT<TBase>::FindText(DWORD) const' : member function already defined or declared e:\wtl80\include\atlctrls.h 7832
Error 72 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7841
Error 73 error C2061: syntax error : identifier 'FORMATRANGE' e:\wtl80\include\atlctrls.h 7847
Error 74 error C2535: 'LONG WTL::CRichEditCtrlT<TBase>::FormatRange(void)' : member function already defined or declared e:\wtl80\include\atlctrls.h 7848
Error 75 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7872
Error 76 error C2061: syntax error : identifier 'EDITSTREAM' e:\wtl80\include\atlctrls.h 7878
Error 77 error C2143: syntax error : missing ';' before '*' e:\wtl80\include\atlctrls.h 7941
Error 78 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7941
Error 79 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atlctrls.h 7942
Error 81 error C2061: syntax error : identifier 'IRichEditOleCallback' e:\wtl80\include\atlctrls.h 7949
Error 82 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1318
Error 83 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1318
Error 84 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atldlgs.h 1332
Error 85 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atldlgs.h 1384
Error 86 error C2143: syntax error : missing ',' before '&' e:\wtl80\include\atldlgs.h 1384
Error 87 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1318
Error 88 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1318
Error 89 error C2061: syntax error : identifier 'CHARFORMATA' e:\wtl80\include\atldlgs.h 1332
Error 90 error C4430: missing type specifier - int assumed. Note: C++ does not support default-int e:\wtl80\include\atldlgs.h 1384
Error 91 error C2143: syntax error : missing ',' before '&' e:\wtl80\include\atldlgs.h 1384
Error 92 error C2059: syntax error : '<cv-qualifer>' e:\wtl80\include\atldlgs.h 1461
Error 93 error C2334: unexpected token(s) preceding ':'; skipping apparent function body e:\wtl80\include\atldlgs.h 1461


Thank you.

AnswerRe: Compile errors in ATL/WTL application Pin
prasad_som11-Feb-07 21:48
prasad_som11-Feb-07 21:48 
GeneralRe: Compile errors in ATL/WTL application Pin
damir_tk12-Feb-07 10:35
damir_tk12-Feb-07 10:35 
AnswerRe: Compile errors in ATL/WTL application Pin
Alain Rist14-Feb-07 20:55
Alain Rist14-Feb-07 20:55 
Questionstd::map key std::basic_string&lt;TCHAR&gt; - How to achieve case in-sensitive string lookup ? [modified] Pin
anand_study9-Feb-07 0:37
anand_study9-Feb-07 0:37 
AnswerRe: std::map basic_string TCHAR - How to achieve case in-sensitive string lookup ? Pin
Sceptic Mole9-Feb-07 0:56
Sceptic Mole9-Feb-07 0:56 
GeneralRe: std::map basic_string TCHAR - How to achieve case in-sensitive string lookup ? Pin
anand_study9-Feb-07 16:24
anand_study9-Feb-07 16:24 
GeneralRe: std::map basic_string TCHAR - How to achieve case in-sensitive string lookup ? Pin
Stuart Dootson9-Feb-07 22:47
professionalStuart Dootson9-Feb-07 22:47 
GeneralRe: std::map basic_string TCHAR - How to achieve case in-sensitive string lookup ? Pin
Sceptic Mole10-Feb-07 1:58
Sceptic Mole10-Feb-07 1:58 
Questionread and write text from edit box Pin
Siddam6-Feb-07 5:38
Siddam6-Feb-07 5:38 
Questionread and write text from edit box Pin
Siddam6-Feb-07 5:38
Siddam6-Feb-07 5:38 
AnswerRe: read and write text from edit box Pin
ThatsAlok6-Feb-07 19:49
ThatsAlok6-Feb-07 19:49 
AnswerRe: read and write text from edit box Pin
Hamid_RT14-Feb-07 18:24
Hamid_RT14-Feb-07 18:24 
QuestionWTL Radio DDX function Pin
Konrad P5-Feb-07 20:03
Konrad P5-Feb-07 20:03 
AnswerRe: WTL Radio DDX function Pin
Michael Dunn5-Feb-07 20:42
sitebuilderMichael Dunn5-Feb-07 20:42 
QuestionShould I build my objects as ATL project? Pin
moonreflection20003-Feb-07 9:57
moonreflection20003-Feb-07 9:57 
AnswerRe: Should I build my objects as ATL project? Pin
Dmitry Khudorozhkov9-Feb-07 8:29
Dmitry Khudorozhkov9-Feb-07 8:29 
QuestionAggregation component ? Pin
cjpvscjp2-Feb-07 21:08
cjpvscjp2-Feb-07 21:08 

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.