Gen 8.6 build "RC1015: cannot open include file 'afxres.h'"
search cancel

Gen 8.6 build "RC1015: cannot open include file 'afxres.h'"

book

Article ID: 132576

calendar_today

Updated On:

Products

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

Issue/Introduction

Using Gen 8.6 with Microsoft Visual Studio Professional 2017 (15.9.12) or 2019 (16.6.3)

Building Gen sample model application for Windows C. The CASCADE triggers and all load modules fail the resource compile in the Build Tool e.g. 
=== 
...Compiling Load Module version information 
copy "C:\Program Files (x86)\CA\Gen86\gen\version\applno.bat" "C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\applno.bat" 
1 file(s) copied. 
call "C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\applno.bat" YES "C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\" P900 
APPLNO.BAT : CA Gen BUILDTIME and BUILDVER update file 
rc -r -DWIN -DIEF_BITMAP=. -I"%IEF_BITMAP%" -I"C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\." -I"C:\Program Files (x86)\CA\Gen86\gen\version" -DCUSTOMER_APPL -fo"C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\P900.RES" "C:\Users\Administrator\Documents\CA\Gen 8.6\Models\samp86.ief\c\P900.rc" 
Microsoft (R) Windows (R) Resource Compiler Version 10.0.10011.16384 

Copyright (C) Microsoft Corporation. All rights reserved. 


C:\Program Files (x86)\CA\Gen86\gen\version\generic.rc(21) : fatal error RC1015: cannot open include file 'afxres.h'. 

NMAKE : fatal error U1077: 'rc' : return code '0x1' 
Stop. 
**************************** 
Resource compile for load module P900 failed with errors. 
**************************** 
File Not Found 
IEFSIGNAL:FAIL 
*** Build for Load Module P900 Failed. *** 
Important! Review above for any errors. 

===

Environment

Release: 8.6
Component: CA Gen Build Tool

Microsoft Visual Studio Professional 2017
Microsoft Visual Studio Professional 2019


Cause

The root cause of the problem is that the Microsoft Foundation Classes for C++ are missing from the Microsoft Visual Studio Professional 2017 or 2019 installation.

Resolution

The Microsoft Visual Studio Professional 2017 or 2019 installation had these 4 workloads selected at install time:
===
Windows (3)
.NET desktop development
Universal Windows Platform development 
Desktop development with C++ 

Web & Cloud (7)
ASP.NET and web development 
===

However under "Desktop development with C++"  there is an optional MFC feature that needs to be selected as follows.

For VS 2017 select "Visual C++ MFC for x86 and x64":

For VS 2019 select "C++ MFC for latest v142 build tools (x86 & x64)":


After modifying the VS install to include the required feature the resource compile problem was resolved.

Additional Information

1. NOTE:
Required Gen 8.6 PTFs for VS 2017 and VS 2019 support are as follows.
VS 2017:
Gen 8.6 Complete: WKS86200/SO09618

VS 2019:
Gen 8.6 Complete: WKS86200/SO09618
TSN86209/ SS13873
BTN86201/SS13871
RTN86208/SS13872

 

2. Other useful links:
Related KB article: Gen 8.6 required MS Visual Studio 2017 or 2019 options
For further details of Gen 8.6 PTFs see: CA Gen 8.6 Solutions & Patches
GEN 8.6 > Technical Requirements > Third-Party Software Version - see "Compilers"