RE: error C3646: 'exception' : unknown override specifier

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Yes that sound good.

Just two questions
1. Where on my system do I see the Upgrade Wizard log?

2. I tried to use Outlook express Mail reader to access this forum and get
the following error:
-------------
502 cv.net: Access denied to your node - news@xxxxxx

Configuration:
Account: MSDN
Server: news.optonline.net
Protocol: NNTP
Port: 119
Secure(SSL): 0
Error Number: 502
Code: 800ccca0
---------
I can access other forums like microsoft.public.dotnet.framework.aspnet
which also give that error but then go on to list all the postings. But this
vc.language forum does not display any postings.

Thanks again for your help

--
Thanks
Morris


""Jialiang Ge [MSFT]"" wrote:

Hello Morris

I performed more researches on the subject and find that the root cause of
the issue is a break change of _STD_USING after VC6.

In VC6, when we include the header <exception>, the std namespace is
automatically used. We do not need to additionally add the line 'using
namespace std;'. The relevant code is:

In the file ..\VC98\Include\YVALS.H (the header is used by <exception>
indirectly)

#if defined(__cplusplus)
#define _STD std::
#define _STD_BEGIN namespace std {
#define _STD_END };
#define _STD_USING
#else
......

The line #define _STD_USING indicates that, if the current project is a
C++ project, we define _STD_USING

However, after VC6, say in VC2008, std namespace is not used by default:

..\Microsoft Visual Studio 9.0\VC\include\yvals.h

#if defined(__cplusplus)
#define _STD_BEGIN namespace std {
#define _STD_END }
#define _STD ::std::

We need to manually add the line 'using namespace std;'.

It is this change that causes the error C3646: 'exception' : unknown
override specifier when we upgrade a VC6 project to VC2008. There is no
error in the upgrade, but the default setting in the different header files
causes the problem.

Please let me know whether this explanation answers your question?

Regards,
Jialiang Ge (jialge@xxxxxxxxxxxxxxxxxxxx, remove 'online.')
Microsoft Online Community Support

=================================================
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
msdnmg@xxxxxxxxxxxxxx

This posting is provided "AS IS" with no warranties, and confers no rights.
=================================================



.



Relevant Pages

  • Re: is auto_ptr part of STL?
    ... My company uses VC6, and no current plans to upgrade. ... you should handle crashes and exit gracefully. ... Allocation fails. ...
    (microsoft.public.vc.language)
  • Re: Tearing My Hair Out!! gl.h version problem
    ... No. I'm using VC++ 6.0 Standard . ... The upgrade from VC6 to VC++ Express 2005 is definitely worth ...
    (comp.graphics.api.opengl)
  • RE: error C3646: exception : unknown override specifier
    ... In VC6, when we include the header, the std namespace is ... However, after VC6, say in VC2008, std namespace is not used by default: ... Microsoft Online Community Support ... You can send feedback directly to my manager at: ...
    (microsoft.public.vc.language)
  • Re: using a .Net custom control in vc6 code
    ... If you want to use Managed code at all you will need to upgrade from V6 and, ... You cannot use VC6 for it. ... How about a managed control created using vc++.net.Can this directly be ...
    (microsoft.public.vc.mfc)
  • Re: Upgrading compiler versions.
    ... So you should not be in a hurry to upgrade, ... one reason to upgrade is if you are running into C++ compiler ... VC6 projects without some tweaking of source code. ...
    (microsoft.public.vc.mfc)