Gen 8.6/VS2015 build error C1083: Cannot open ... 'afxwin.h'
search cancel

Gen 8.6/VS2015 build error C1083: Cannot open ... 'afxwin.h'

book

Article ID: 205332

calendar_today

Updated On:

Products

Gen Gen - Workstation Toolset Gen - Run Time Distributed Gen - Host Encyclopedia

Issue/Introduction

Attempting to build a Gen 8.6 module in the Gen Build Tool and get error:

 "fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory"  

Using compiler - Visual Studio 2015

Environment

Release : 8.6

Component : CA Gen Build Tool

Resolution

For this specific member ('afxwin.h' ) for VS2015, you will need to modify the VS2015 install to include "Microsoft Foundation Classes for C++" option.  Here is steps to modify....

- Go to your control panel
- Navigate to 'Programs and Feature' uninstall/change a program.
- Scroll down until you see your visual studio installation
- Right-click and select 'Change'
- Once the Visual Studio install panel displays
- Near the top under "Programming Languages" -> "Visual C++".... Make sure "Microsoft Foundation Classes for C++" is checked. - If it isn't, select it and click 'Update'.