Click here to Skip to main content
15,905,504 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: BSTR Conversion Pin
Eddie_NG27-Nov-06 6:35
Eddie_NG27-Nov-06 6:35 
QuestionStrange behavior with MessageBox() [modified] Pin
Makakuin27-Nov-06 5:13
Makakuin27-Nov-06 5:13 
AnswerRe: Strange behavior with MessageBox() Pin
Tony Hill27-Nov-06 5:44
professionalTony Hill27-Nov-06 5:44 
GeneralRe: Strange behavior with MessageBox() Pin
Makakuin27-Nov-06 5:53
Makakuin27-Nov-06 5:53 
QuestionChanging RichEdit font Pin
jsumm27-Nov-06 4:58
jsumm27-Nov-06 4:58 
GeneralNo ideas??? Pin
jsumm27-Nov-06 9:55
jsumm27-Nov-06 9:55 
AnswerRe: Changing RichEdit font Pin
Scott Holt27-Nov-06 14:40
Scott Holt27-Nov-06 14:40 
Questionhow to use stl? Pin
wuren873427-Nov-06 3:39
wuren873427-Nov-06 3:39 
Wink | ;) I have writen a program :
#include <string>
using namespace std;

int main()
{
string a("a");
return 0;

}
when i compile it
then it is the result :
--------------------Configuration: abc - Win32 Debug--------------------
Compiling...
abc.cpp
c:\program files\microsoft visual studio\vc98\include\xstring(600) : error C2838: illegal qualified name in member declaration
c:\program files\microsoft visual studio\vc98\include\xstring(618) : see reference to class template instantiation 'std::basic_string<_E,_Tr,_A>' being compiled
c:\program files\microsoft visual studio\vc98\include\stdexcept(19) : error C2629: unexpected 'class std::logic_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(19) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(29) : error C2146: syntax error : missing ';' before identifier '_Str'
c:\program files\microsoft visual studio\vc98\include\stdexcept(29) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdexcept(29) : error C2501: '_Str' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdexcept(34) : error C2629: unexpected 'class std::domain_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(34) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(45) : error C2629: unexpected 'class std::invalid_argument ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(45) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(56) : error C2629: unexpected 'class std::length_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(56) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(67) : error C2629: unexpected 'class std::out_of_range ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(67) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(78) : error C2629: unexpected 'class std::runtime_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(78) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(88) : error C2146: syntax error : missing ';' before identifier '_Str'
c:\program files\microsoft visual studio\vc98\include\stdexcept(88) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdexcept(88) : error C2501: '_Str' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\stdexcept(93) : error C2629: unexpected 'class std::overflow_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(93) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(104) : error C2629: unexpected 'class std::underflow_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(104) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\stdexcept(115) : error C2629: unexpected 'class std::range_error ('
c:\program files\microsoft visual studio\vc98\include\stdexcept(115) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xlocinfo(39) : error C2039: '_Collvec' : is not a member of '`global namespace''
c:\program files\microsoft visual studio\vc98\include\xlocinfo(39) : error C2146: syntax error : missing ';' before identifier '_Collvec'
c:\program files\microsoft visual studio\vc98\include\xlocinfo(39) : error C2868: '_Collvec' : illegal syntax for using-declaration; expected qualified-name
c:\program files\microsoft visual studio\vc98\include\xlocinfo(40) : error C2039: '_Ctypevec' : is not a member of '`global namespace''
c:\program files\microsoft visual studio\vc98\include\xlocinfo(40) : error C2146: syntax error : missing ';' before identifier '_Ctypevec'
c:\program files\microsoft visual studio\vc98\include\xlocinfo(40) : error C2868: '_Ctypevec' : illegal syntax for using-declaration; expected qualified-name
c:\program files\microsoft visual studio\vc98\include\xlocinfo(41) : error C2039: '_Cvtvec' : is not a member of '`global namespace''
c:\program files\microsoft visual studio\vc98\include\xlocinfo(41) : error C2146: syntax error : missing ';' before identifier '_Cvtvec'
c:\program files\microsoft visual studio\vc98\include\xlocinfo(41) : error C2868: '_Cvtvec' : illegal syntax for using-declaration; expected qualified-name
c:\program files\microsoft visual studio\vc98\include\xlocinfo(47) : error C2146: syntax error : missing ';' before identifier '_Getname'
c:\program files\microsoft visual studio\vc98\include\xlocinfo(47) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocinfo(48) : warning C4183: '_Getname': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2146: syntax error : missing ';' before identifier '_Days'
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2501: '_Days' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2501: '_Months' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2501: '_Oname' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocinfo(85) : error C2501: '_Nname' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocale(86) : error C2146: syntax error : missing ';' before identifier '_Name'
c:\program files\microsoft visual studio\vc98\include\xlocale(86) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocale(86) : error C2501: '_Name' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocale(90) : error C2143: syntax error : missing ',' before '&'
c:\program files\microsoft visual studio\vc98\include\xlocale(90) : error C2059: syntax error : '&'
c:\program files\microsoft visual studio\vc98\include\xlocale(112) : error C2146: syntax error : missing ';' before identifier 'name'
c:\program files\microsoft visual studio\vc98\include\xlocale(112) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocale(113) : warning C4183: 'name': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\vc98\include\xiosbase(19) : error C2504: 'runtime_error' : base class undefined
c:\program files\microsoft visual studio\vc98\include\xiosbase(21) : error C2629: unexpected 'class std::ios_base::failure ('
c:\program files\microsoft visual studio\vc98\include\xiosbase(21) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xiosbase(118) : error C2146: syntax error : missing ';' before identifier 'getloc'
c:\program files\microsoft visual studio\vc98\include\xiosbase(118) : error C2501: 'locale' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xiosbase(119) : warning C4183: 'getloc': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\vc98\include\xiosbase(120) : error C2146: syntax error : missing ';' before identifier 'imbue'
c:\program files\microsoft visual studio\vc98\include\xiosbase(120) : error C2501: 'locale' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xiosbase(120) : error C2143: syntax error : missing ',' before '&'
c:\program files\microsoft visual studio\vc98\include\xiosbase(120) : error C2059: syntax error : '&'
c:\program files\microsoft visual studio\vc98\include\xiosbase(168) : error C2146: syntax error : missing ';' before identifier '_Loc'
c:\program files\microsoft visual studio\vc98\include\xiosbase(168) : error C2501: 'locale' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xiosbase(168) : error C2501: '_Loc' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocnum(21) : error C2653: 'locale' : is not a class or namespace name
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(21) : error C2504: 'facet' : base class undefined
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(26) : error C2653: 'locale' : is not a class or namespace name
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(26) : error C2146: syntax error : missing ';' before identifier 'id'
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(26) : error C2501: 'id' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(31) : error C2146: syntax error : missing ';' before identifier 'grouping'
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(31) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(32) : warning C4183: 'grouping': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(39) : error C2629: unexpected 'class std::numpunct<_E> ('
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(39) : error C2334: unexpected token(s) preceding ':'; skipping apparent function body
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(49) : error C2143: syntax error : missing ',' before '&'
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(49) : error C2059: syntax error : '&'
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(60) : error C2146: syntax error : missing ';' before identifier 'do_grouping'
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(60) : error C2433: 'string' : 'virtual' not permitted on data declarations
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(60) : error C2501: 'string' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(61) : warning C4183: 'do_grouping': member function definition looks like a ctor, but name does not match enclosing class
c:\program files\microsoft visual studio\vc98\include\xlocnum(69) : see reference to class template instantiation 'std::numpunct<_E>' being compiled
c:\program files\microsoft visual studio\vc98\include\xlocnum(83) : error C2653: 'locale' : is not a class or namespace name
c:\program files\microsoft visual studio\vc98\include\xlocnum(83) : error C2143: syntax error : missing ';' before 'tag::id'
c:\program files\microsoft visual studio\vc98\include\xlocnum(83) : error C2501: 'id' : missing storage-class or type specifiers
c:\program files\microsoft visual studio\vc98\include\xlocnum(83) : error C2059: syntax error : ';'
c:\program files\microsoft visual studio\vc98\include\xlocnum(83) : fatal error C1903: unable to recover from previous error(s); stopping compilation
Error executing cl.exe.

abc.exe - 80 error(s), 5 warning(s)

please help me
i will very appreciate


help!!!
AnswerRe: how to use stl? Pin
spielehelfer27-Nov-06 3:43
spielehelfer27-Nov-06 3:43 
GeneralRe: how to use stl? Pin
David Crow27-Nov-06 3:53
David Crow27-Nov-06 3:53 
GeneralRe: how to use stl? Pin
Stephen Hewitt27-Nov-06 13:13
Stephen Hewitt27-Nov-06 13:13 
AnswerRe: how to use stl? Pin
toxcct27-Nov-06 3:55
toxcct27-Nov-06 3:55 
GeneralRe: how to use stl? Pin
BlitzPackage27-Nov-06 6:21
BlitzPackage27-Nov-06 6:21 
GeneralRe: how to use stl? Pin
Stephen Hewitt27-Nov-06 13:12
Stephen Hewitt27-Nov-06 13:12 
GeneralRe: how to use stl? Pin
toxcct27-Nov-06 21:20
toxcct27-Nov-06 21:20 
GeneralRe: how to use stl? Pin
Stephen Hewitt28-Nov-06 12:13
Stephen Hewitt28-Nov-06 12:13 
AnswerRe: how to use stl? Pin
David Crow27-Nov-06 4:06
David Crow27-Nov-06 4:06 
AnswerRe: how to use stl? Pin
Pierre Leclercq27-Nov-06 6:22
Pierre Leclercq27-Nov-06 6:22 
QuestionSizing-End Pin
baerten27-Nov-06 3:24
baerten27-Nov-06 3:24 
AnswerRe: Sizing-End Pin
spielehelfer27-Nov-06 3:41
spielehelfer27-Nov-06 3:41 
GeneralRe: Sizing-End Pin
baerten27-Nov-06 4:11
baerten27-Nov-06 4:11 
GeneralRe: Sizing-End Pin
Waldermort27-Nov-06 4:42
Waldermort27-Nov-06 4:42 
GeneralRe: Sizing-End Pin
baerten27-Nov-06 5:03
baerten27-Nov-06 5:03 
QuestionProblem with canc button on list box Pin
Ing.Raiz8227-Nov-06 3:10
Ing.Raiz8227-Nov-06 3:10 
QuestionRe: Problem with canc button on list box Pin
CPallini27-Nov-06 3:19
mveCPallini27-Nov-06 3: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.