WinAsm Studio, The Assembly IDE - Free Downloads, Source Code
Sponsors
Articles
Programming Quick Start
32-bit Assembler is Easy
Porting Iczelion tutorials
What is FASM
What is FASM G
Hard Drive Recovery
Wiring your own LAN
Personal menu
Welcome Guest
User:
Pass:
Register!
Resend Validation Email
 
Forum
 

Some Problem about compilation of RC file, fatal error RC1015: cannot open include file 'resource.h'.

zellloveyy
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 972
Joined: 27-January 05


Sponsored Links
I want to compile a RC file in winasm. In the RC file there is "#include <resource.h>". The output told me:

RC: RCPP -CP 936 -f E:\WinAsmProject\Test\RCa02784 -g E:\WinAsmProject\Test\RDa02784 -DRC_INVOKED -D_WIN32 -pc\:/ -E -I. -I E:\WinAsmProject\Test\ -I .
E:\WinAsmProject\Test\test.rc(1) : fatal error RC1015: cannot open include file 'resource.h'.

But I have set the include path D:\masm32\include. The file "resource.h" is in the path.

So I open the cmd window and go to D:\masm32\bin. I Type:
RC E:\winasmproject\test\test.rc
It also told me that cannot open include file 'resource.h'.

At last I copy the file resource.h to the path where the RC file is and compile it. It's OK.

I don't know why~ Did it mean that I should copy the include file to the RC file's path to make it compiled?
PMEmail Poster
Top
shoorick
Quote Post


Extremely Active Member
******

Group: Admins
Posts: 2342
Member No.: 160
Joined: 22-June 04


in first try to use more complete path, as in masm32 examples:
#include "\masm32\include\resource.h"
PMEmail PosterUsers Website
Top
zellloveyy
Quote Post


New Member
*

Group: Members
Posts: 4
Member No.: 972
Joined: 27-January 05


But this time the output is:
cannot open include file 'include'
so strange~
PMEmail Poster
Top
akyprian
Quote Post


Administrator
******

Group: Admins
Posts: 2328
Member No.: 1
Joined: 12-May 04


Welcome zellloveyy,

QUOTE
But I have set the include path D:\masm32\include

The include path is used by the Assembler (ml.exe) ONLY. For your resource files you have to specify where your resource.h is. Please bear in mind that after saving your rc file (in Visual Mode) from within WinAsm Studio, include resource.h statement is NOT NEEDED AT ALL.

Please let me know if you still have problems

Antonis
PMEmail PosterUsers Website
Top
JimG
Quote Post


Extremely Active Member
******

Group: Moderators
Posts: 728
Member No.: 11
Joined: 16-May 04


QUOTE
Please bear in mind that after saving your rc file (in Visual Mode) from within WinAsm Studio, include resource.h statement is NOT NEEDED AT ALL.

unless you have downloaded a .rc file from elsewhere and it uses something like IDC_STATIC for every static. (IDC_STATIC is -1 in resource.h) or something like VK_F5 for accelerators. Or one of the standard Dialog Box Command IDs like IDOK or IDCANCEL.
PMEmail Poster
Top
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

Topic Options Reply to this topicStart new topicStart Poll

 

Sponsors
Computer Science

Internet
C/C++
Hardware & PC maintenance

HiEditor

General Discussions
Suggestions/Bug Reports
WinAsm Studio

General Discussions
Suggestions/Bug Reports
WinAsm Studio FAQ
Multilingual User Interface
Add-Ins
Assembly Programming

Main
Newbies
Projects
Custom Controls
Snippets
Announcements & Rules

Announcements

General

Online Degrees - Distance Learning
The Heap
Russian
Google