Click here to Skip to main content
15,886,199 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 14:51
Vaclav_26-May-12 14:51 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger26-May-12 17:48
professionalChris Losinger26-May-12 17:48 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 18:32
Vaclav_26-May-12 18:32 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 3:02
professionalChris Losinger27-May-12 3:02 
AnswerRe: Using namespace in VC6.0 ? Pin
Aescleal26-May-12 20:53
Aescleal26-May-12 20:53 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_26-May-12 23:50
Vaclav_26-May-12 23:50 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 2:57
professionalChris Losinger27-May-12 2:57 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_27-May-12 4:53
Vaclav_27-May-12 4:53 
Thanks Chris,
and this is the compiler output after your suggestion:


TEST.cpp
z:\0\0 mdi\test\bamesapce\test\testview.h(23) : error C2059: syntax error : 'namespace'
z:\0\0 mdi\test\bamesapce\test\testview.h(24) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
TESTDoc.cpp
TESTView.cpp
z:\0\0 mdi\test\bamesapce\test\testview.h(23) : error C2059: syntax error : 'namespace'
z:\0\0 mdi\test\bamesapce\test\testview.h(24) : error C2334: unexpected token(s) preceding '{'; skipping apparent function body
Z:\0\0 MDI\TEST\BAMESAPCE\TEST\TESTView.cpp(60) : error C2873: 'test' : symbol cannot be used in a using-declaration
Generating Code...
Error executing cl.exe.
TEST.exe - 5 error(s), 0 warning(s)



And here is what my ancient MSDN say about namespace:



namespace Declaration
C++ Specific —>
namespace [identifier] { namespace-body }
A namespace declaration identifies and assigns a name to a declarative region.
The identifier in a namespace declaration must be unique in the declarative region in which it is used. The identifier is the name of the namespace and is used to reference its members.
The declarative region of a namespace declaration is its namespace-body.
END C++ Specific

Notice - no semicolon.

And if it is a keyword it must not be in my VC6.0 Sp6 stuff.

I give up.
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger27-May-12 5:00
professionalChris Losinger27-May-12 5:00 
GeneralRe: Using namespace in VC6.0 ? Pin
Aescleal28-May-12 5:32
Aescleal28-May-12 5:32 
GeneralRe: Using namespace in VC6.0 ? Pin
Chris Losinger28-May-12 5:54
professionalChris Losinger28-May-12 5:54 
GeneralRe: Using namespace in VC6.0 ? Pin
Aescleal28-May-12 5:29
Aescleal28-May-12 5:29 
GeneralRe: Using namespace in VC6.0 ? Pin
Vaclav_28-May-12 7:22
Vaclav_28-May-12 7:22 
QuestionBest Approach to process KeyStrokes in Rich Edit Pin
ForNow25-May-12 10:47
ForNow25-May-12 10:47 
AnswerRe: Best Approach to process KeyStrokes in Rich Edit Pin
«_Superman_»26-May-12 17:35
professional«_Superman_»26-May-12 17:35 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
JohnCz27-May-12 8:07
JohnCz27-May-12 8:07 
GeneralRe: Best Approach to process KeyStrokes in Rich Edit Pin
ForNow28-May-12 18:25
ForNow28-May-12 18:25 
Questionquality metrics for edge detection Pin
Mamatha Eswaraiah24-May-12 7:26
Mamatha Eswaraiah24-May-12 7:26 
QuestionIs SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 2:34
002comp24-May-12 2:34 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
TomasRiker224-May-12 10:53
TomasRiker224-May-12 10:53 
AnswerRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 16:18
professional«_Superman_»24-May-12 16:18 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 19:56
002comp24-May-12 19:56 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
«_Superman_»24-May-12 20:12
professional«_Superman_»24-May-12 20:12 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 20:40
002comp24-May-12 20:40 
GeneralRe: Is SetCursorPos() Calling MouseMove ? Pin
002comp24-May-12 21:19
002comp24-May-12 21: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.