Click here to Skip to main content
15,908,901 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to integrate cxxTest with Visual Studio IDE Pin
rajKR125-Jun-12 19:03
rajKR125-Jun-12 19:03 
QuestionCross Platform Development Pin
AmbiguousName27-May-12 0:49
AmbiguousName27-May-12 0:49 
AnswerRe: Cross Platform Development Pin
enhzflep27-May-12 6:16
enhzflep27-May-12 6:16 
AnswerRe: Cross Platform Development Pin
Aescleal28-May-12 5:06
Aescleal28-May-12 5:06 
QuestionApplication Watchdog Pin
Richard Andrew x6426-May-12 16:43
professionalRichard Andrew x6426-May-12 16:43 
AnswerRe: Application Watchdog Pin
«_Superman_»26-May-12 17:30
professional«_Superman_»26-May-12 17:30 
GeneralRe: Application Watchdog Pin
Richard Andrew x6426-May-12 17:42
professionalRichard Andrew x6426-May-12 17:42 
AnswerRe: Application Watchdog Pin
Ashish Tyagi 4029-May-12 19:41
Ashish Tyagi 4029-May-12 19:41 
QuestionTask Manager Pin
Bram van Kampen26-May-12 12:46
Bram van Kampen26-May-12 12:46 
AnswerRe: Task Manager Pin
Randor 26-May-12 13:07
professional Randor 26-May-12 13:07 
AnswerRe: Task Manager Pin
«_Superman_»26-May-12 17:23
professional«_Superman_»26-May-12 17:23 
GeneralRe: Task Manager Pin
Bram van Kampen27-May-12 4:44
Bram van Kampen27-May-12 4:44 
QuestionUsing namespace in VC6.0 ? Pin
Vaclav_26-May-12 6:53
Vaclav_26-May-12 6:53 
AnswerRe: Using namespace in VC6.0 ? Pin
jschell26-May-12 7:32
jschell26-May-12 7:32 
AnswerRe: Using namespace in VC6.0 ? Pin
Chris Losinger26-May-12 8:23
professionalChris Losinger26-May-12 8:23 
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 
Hello Ash,
here is a snippet of VC 6.0 generated CView header file with my add and resulting compliler errors:

class CTESTView : public CView
{
protected: // create from serialization only
CTESTView();
DECLARE_DYNCREATE(CTESTView)
// Attributes
public:
CTESTDoc* GetDocument();
using namespace test
{
int a;
int b;
}

// Operations
public:
.........

This is how iostram is included in STdAfx.h file:

#if !defined(AFX_STDAFX_H__D78D5AFB_F290_4B69_9F5A_23EC3FA245D9__INCLUDED_)
#define AFX_STDAFX_H__D78D5AFB_F290_4B69_9F5A_23EC3FA245D9__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include <iostream> <b>silly but the CodeProject edit box did not copy stuff in "arrow brackets" - but it is here - iostream

It did not show up in preview, go figure.

</b>
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
.....

And here is the full compiler output regardless of inclusion of iostream or not:

--------------------Configuration: TEST - Win32 Debug--------------------
Compiling...
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
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
Generating Code...
Error executing cl.exe.
TEST.exe - 4 error(s), 0 warning(s)


I am ready to stop trying this, I really do not need it, but the stuff I am modyfying is using it. After succes of using
pure virtual class / function ( BTW many thanks for all you input on that ) I am just "looking for punishment".

Is it possible that I have some kinda of conflict with std namespace?
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 
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 

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.