Fatal error RC1015

I am really new to programming for C ++, and I was given the task to choose, the previous employee stopped on programming a Windows mobile device. I had an emulator working the other week, and now when I download the program, I get a fatal error RC1015: I can not open the include file "xxxx.h". I tried almost everything that I saw on the Internet, without any luck. I think one of my included statements is missing, but every time I put in it something else works. Please any help would be greatly appreciated.

Unfortunately, this is what the .rc file says.

// Microsoft Visual C++ generated resource script. // #include "resourceppc.h" #define APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // // Generated from the TEXTINCLUDE 2 resource. // #include "afxres.h" #include "ConnectLoginDlgsRes.h" #include "AboutDlgRes.h" ///////////////////////////////////////////////////////////////////////////// #undef APSTUDIO_READONLY_SYMBOLS ///////////////////////////////////////////////////////////////////////////// // English (US) resources #if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) #ifdef _WIN32 LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US #pragma code_page(1252) #endif //_WIN32 #ifdef APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // TEXTINCLUDE // 1 TEXTINCLUDE BEGIN "resourceppc.h\0" END 2 TEXTINCLUDE BEGIN "#include ""afxres.h""\r\n" "#include ""ConnectLoginDlgsRes.h""\r\n" "#include ""AboutDlgRes.h""\r\0" END 3 TEXTINCLUDE BEGIN "#define _AFX_NO_SPLITTER_RESOURCES\r\n" "#define _AFX_NO_OLE_RESOURCES\r\n" "#define _AFX_NO_TRACKER_RESOURCES\r\n" "#define _AFX_NO_PROPERTY_RESOURCES\r\n" "\r\n" "#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)\r\n" "LANGUAGE 9, 1\r\n" "#pragma code_page(1252)\r\n" "#include ""res\\J3ItemListsppc.rc2"" // non-Microsoft Visual C++ edited resources\r\n" "#include ""afxres.rc"" // Standard components\r\n" "#include ""ConnectLoginDlgs.rc""\r\n" "#include ""AboutDlg.rc""\r\n" "#endif\r\0" END #endif // APSTUDIO_INVOKED ///////////////////////////////////////////////////////////////////////////// // // Icon // // Icon with lowest ID value placed first to ensure application icon // remains consistent on all systems. IDR_MAINFRAME ICON "res\\J3ItemLists.ico" ///////////////////////////////////////////////////////////////////////////// // // Dialog // IDD_J3ITEMLISTS_DIALOG DIALOG 0, 0, 156, 169 STYLE DS_SETFONT | DS_FIXEDSYS | WS_POPUP | WS_VISIBLE | WS_CAPTION EXSTYLE WS_EX_APPWINDOW | 0x80000000L 

The problem is the line #include "ConnectLoginDlgsRes.h". The header file is in the shared folder if it is added that it is being split somewhere else.

Any ideas? As I said, someone started this, and I realized what it is.

+4
source share
2 answers

Since you are programming for Windows Mobile, we can assume that you are using VS2005 or VS2008. You just need to set the search path for the resource compiler.

Find the missing "ConnectLoginDlgsRes.h" file and add the path in the project properties dialog box. The path must be added in Configuration PropertiesResourcesGeneral . Use the "Optional Standard Enable Path".

Edit: Since your previous employee could give you a working draft, you should also check the build environment. You may need some scripts that you need to run before you can actually build a VS project.

+5
source

If you are not using the resource.h file that is created in Visual Studio. Make sure you remove the line that includes resource.h from [Solution] → [Project] → Resource Files-> app.rc.

In your case, this is the line: '#include "resourceppc.h"'

0
source

Source: https://habr.com/ru/post/1484272/


All Articles