problems building my VS2008 project...?

  arminmckidd 18:33 20 Feb 2010
Locked

I am having problems with building projects from Visual Studio 2008.

Specifically the error I receive is the same each time. I have checked online for any help on this but wasn't able to find anything. I also found out that this error is about the MFC support for ribbons and control bars.

The error I get is this:

Error 1 fatal error C1083: Cannot open include file: 'afxcontrolbars.h': No such file or directory

I have located this error in the stdafx.h file under the header files folder of my project.

Just for reference purposes I am running:
Win7 64bit
Visual Studio 2008 Professional

Some help or feedback would be appreciated

Thanks!

  VoG II 19:43 20 Feb 2010

I almost certainly can't help with this but at very least you'll have to post some code and indicate the line on which it is erroring.

  johnnyrocker 19:46 20 Feb 2010

maybe web designer forum would be of use?


johnny

  arminmckidd 20:03 20 Feb 2010

this is not a web related query. It is network programming.

Here is the code:


// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently,
// but are changed infrequently

#pragma once

#ifndef _SECURE_ATL
#define _SECURE_ATL 1
#endif

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN // Exclude rarely-used stuff from Windows headers
#endif

#include "targetver.h"

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS // some CString constructors will be explicit

// turns off MFC's hiding of some common and often safely ignored warning messages
#define _AFX_ALL_WARNINGS

#include <afxwin.h> // MFC core and standard components
#include <afxext.h> // MFC extensions


#include <afxdisp.h> // MFC Automation classes



#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h> // MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h> // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <afxcontrolbars.h> // MFC support for ribbons and control bars


#include <afxsock.h> // MFC socket extensions







#ifdef _UNICODE
#if defined _M_IX86
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='x86' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_IA64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='ia64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#elif defined _M_X64
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='amd64' publicKeyToken='6595b64144ccf1df' language='*'\"")
#else
#pragma comment(linker,"/manifestdependency:\"type='win32' name='Microsoft.Windows.Common-Controls' version='6.0.0.0' processorArchitecture='*' publicKeyToken='6595b64144ccf1df' language='*'\"")
#endif
#endif


im afraid this is only part of the code as there are various other files. However, this is the code where the error originates.

  johnnyrocker 20:08 20 Feb 2010

then what about networking forum?



johnny

  VoG II 20:09 20 Feb 2010

I have no knowledge if this programming language!

Try deleting this line


// stdafx.h : include file for standard system include files,

and replace with

#include <stdafx.h>

  arminmckidd 20:14 20 Feb 2010

i did exactly what you suggested 'VoG' but i still got an error:

Error 1 fatal error C1083: Cannot open include file: 'stdafx.h': No such file or directory

  VoG II 20:37 20 Feb 2010

You'll need to check in Project > Properties (or whatever, sorry but I am totally unfamiliar with this language) that that file or its parent is referenced. If you find a Missing just untick it.

Hope this helps - based on nothing but experience in other languages.

  onionskin 22:09 20 Feb 2010

Have you downloaded the MFC Feature Pack?
See:
click here

There are several videos on using ribbons.
click here

And scroll down to Feature Pack.

  onionskin 23:24 20 Feb 2010

Does the file AssemblyInfo.cpp start with #include "stdafx.h"

Have you got a stdafx.cpp file which also starts with #include "stdafx.h"

  onionskin 23:32 20 Feb 2010

And does your main project file (appname.cpp) also start with #include "stdafx.h"

This thread is now locked and can not be replied to.

Elsewhere on IDG sites

Galaxy Note 8 vs iPhone X

5 best 3D model websites

iPhone 8 vs iPhone X

WhatsApp : comment lire vos messages sans que l’expéditeur le sache