Results 1 to 5 of 5

Thread: Microsoft visual studio 2008 gives error related to afxdisp.h file

  1. #1
    Join Date
    Aug 2009
    Posts
    51

    Microsoft visual studio 2008 gives error related to afxdisp.h file

    Hello to all,
    I am new to this forum. I recently purchased microsoft visual studio 2008 via online. Last night when I tried to run samples code from microsoft forum I receive error related to afxdisp.h file. I don't know what is that mean. I don't know why Microsoft visual studio 2008 gives error related to afxdisp.h file. Please help me to fix this problem.
    Thank you.

  2. #2
    Join Date
    Nov 2005
    Posts
    1,323

    Re: Microsoft visual studio 2008 gives error related to afxdisp.h file

    Hey it seems that you are tried to run code which is not supported by Microsoft visual studio 2008 and that's why you are getting such type of problem. In this case first try to check whether it is compatible with Microsoft visual studio 2008 or not. If it is not compatible then look out for some other code which are same in functionality and then try to run that code in Microsoft visual studio 2008. Now you will not get any problem.

  3. #3
    Join Date
    Oct 2005
    Posts
    2,393

    Re: Microsoft visual studio 2008 gives error related to afxdisp.h file

    I think you are tried to run program with library that is not supported by Microsoft visual studio 2008 and for this reason you are getting such tyep of problem. You have to use VS2008 Express library for your program to run on Microsoft visual studio 2008. In this case try to remove that library and again try to run your program. This time you will not get any problem.

  4. #4
    Join Date
    Apr 2008
    Posts
    1,948

    Re: Microsoft visual studio 2008 gives error related to afxdisp.h file

    Hey afxres.h is part of your program. It means that there is some problem in your code. Mostly in MSVC examples, afxdisp.h file always comes along with afxres.h which is present in stdafx.h. Where stdafx.h file is the header of your project. These header files are indirectly related with MFC, and if you don't have MFC support then the compiler will complain about not finding the needed headers. For this reason you are getting such type of error message. In this case you have to install MFC in your project to get rid out of this problem.

  5. #5
    Join Date
    May 2008
    Posts
    2,012

    Re: Microsoft visual studio 2008 gives error related to afxdisp.h file

    From your information it seems that you have using some wrong version of Microsoft visual studio 2008 and that's why you are getting such type of problem. Because afxdisp.h file is related with Microsoft visual studio 2008 and such type of error message comes when you use some wrong studio version. In this case try to uninstall Microsoft visual studio 2008 from your computer and again install new version of it in your computer. After this you will not get any problem.

Similar Threads

  1. Replies: 2
    Last Post: 16-02-2011, 02:49 PM
  2. Replies: 3
    Last Post: 22-12-2010, 02:37 AM
  3. error in Data Source Configuration Wizard in Visual Studio 2008
    By BlackRedRobin in forum Software Development
    Replies: 2
    Last Post: 31-05-2010, 11:29 AM
  4. Microsoft visual studio 2008 certification
    By depesh in forum Education Career and Job Discussions
    Replies: 3
    Last Post: 13-08-2009, 11:35 AM
  5. Difference between Visual studio 2005 and Visual studio 2008
    By RohanS in forum Software Development
    Replies: 3
    Last Post: 12-06-2009, 10:48 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,257,885.67747 seconds with 16 queries