致命错误RC1015 [英] fatal error RC1015

查看:336
本文介绍了致命错误RC1015的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的是新的编程C + +,我被赋予了任务,以前是一个前雇员停止编程的Windows移动设备。我有模拟器工作在其他星期,现在当我加载程序,我得到致命错误RC1015:无法打开包含文件xxxx.h。我已经尝试了几乎我在互联网上看到的一切,没有一点运气。我认为我的一个include语句缺失,但每次我把一个工作,其他的东西打破了。

I am really new to programming for C++ and I was given the task to pick up were a previous employee left off with programming a windows mobile device. I had the emulator working the other week and now when I load the program I get fatal error RC1015: cannot open include file "xxxx.h". I have tried almost everything that I have seen on the internet without a single bit of luck. I think that one of my include statements is missing but every time I put one in that works something else breaks. Please any help will be greatly appreciated.

对不起
这是.rc文件说的

Sorry Here 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 (U.S.) 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

问题是#includeConnectLoginDlgsRes.h行。头文件位于共享文件夹中,如果添加它会在其他位置断开。

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

任何想法?

推荐答案

因为你为Windows Mobile编程,我们可以假设你使用VS2005或VS2008。您只需要为资源编译器设置搜索路径。

Since you program for Windows Mobile we can assume that you use VS2005 or VS2008. You just need to set the search path for the resource compiler.

查找缺少的文件ConnectLoginDlgsRes.h,并在项目属性对话框中添加路径。必须在配置属性 - > 中添加路径 - > - < $ c>。使用其他标准包含路径。

Lookup the missing file "ConnectLoginDlgsRes.h" and add the path in the project properties dialog. The path must be added in Configuration Properties->Resources->General. Use the "Additional Standard Include Path".

编辑:
由于您之前的员工可能已经给您一个工作项目,也检查构建环境。可能你需要一些脚本来执行,然后才能真正构建VS项目。

Since your previous employee might have given you a working project you should also check the build environment. Probably you need some scripts to be executed before you can actually build the VS project.

这篇关于致命错误RC1015的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆