Click here to Skip to main content
11,568,157 members (38,067 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VC7 C++ MFC VS2010 VC++
My code was working fine till yesterday but today... It is coming up with this error:
c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(4038): error C2039: 'exception' : is not a member of 'std'
c:\program files\microsoft visual studio 10.0\vc\atlmfc\include\afxwin.h(4038): error C3861: 'exception': identifier not found
I just changed the name of the folder containing my project....

Please help.
Posted 10-Oct-12 18:46pm
Edited 16-Oct-12 19:30pm
Joan Murt85.8K
v2
Comments
Mohibur Rashid at 11-Oct-12 0:55am
   
What is the change you have made since yesterday?
Sharath2790 at 11-Oct-12 0:59am
   
Nothing..... just changed my folder name.
Mohibur Rashid at 11-Oct-12 1:00am
   
your reply does not make sense. what folder name did you change?
Andrew Cherednik at 11-Oct-12 1:00am
   
are you sure that you have the right file? my afxwin.h does not contain a symbol called exception.
Sharath2790 at 11-Oct-12 1:02am
   
I just changed the name of the folder containing my project....
enhzflep at 11-Oct-12 2:14am
   
So, what happened when you changed it back? If nothing, just move-on - create a new project and copy the code into it. Done.
Joan Murt at 17-Oct-12 1:30am
   
No change means equal result.
I've updated the question for you to allow other members to know that you've renamed a folder before they need to read all the comments to understand what is happening...

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Check out what you are including

#include <exception.h></exception.h>

or
#include <exception></exception>


Second one should work in your case.
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


Advertise | Privacy | Mobile
Web03 | 2.8.150624.2 | Last Updated 17 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100