Advertisement

Help please

Started by August 07, 2002 06:47 PM
1 comment, last by Mage_gr 22 years, 5 months ago
Hi I am trying to create a simple window with my own cursor and menu.With the cursor it is ok but when it comes to the menu and I add the code I get these errors: --------------------Configuration: try5 - Win32 Debug-------------------- Compiling resources... C:\Documents and Settings\M@ge\Desktop\try 1\resource.rc (20): error RC2144 : PRIMARY LANGUAGE ID not a number C:\Documents and Settings\M@ge\Desktop\try 1\resource.rc (55): error RC2135 : file not found: 100 C:\Documents and Settings\M@ge\Desktop\try 1\resource.rc (56): error RC2135 : file not found: cursor2.cur Error executing rc.exe. try5.exe - 3 error(s), 0 warning(s) Help?
When you see a roller coaster, get on it,put your hands in the air,and ride it to the very end.Life doesn't remember you unless you kick,scream,and claw your way to the top.There is nothing in the world that is impossible.If you believe that you can do it, you will.
Dude, first of all, send me your program(your c source code(*.c/*.cpp), your resource header file(*.h), and your resource file(*.rc)). Okay, but read the compiler's output or the debugger's output:

"resource.rc (55): error RC2144 : file not found: 100"
(On line 55, I'm guessing you put a number in instead of a filename.)
"resource.rc (56): error RC2144 : file not found: cursor2.cur"
(On line 56, well, the file "cursor2.cur" does not exist)

Anyway, send it to me and I'll post a solution.

Later,
--Ax

(CBRThrash@netscape.net)

[edited by - Ax on August 7, 2002 11:49:15 PM]
-Ax
Advertisement
Mage_gr,

I think this is happening because the C compiler is trying to compile the Resource (.rc) file. the resource script has to be compiled with it''s own compiler.

If you are using MSVC, this is caused by you #including the resource file.

remove the #include "filename.rc"

add in #include "resource.h"

If the .RC file is part of your project, it will get compiled automatically. All you have to include in your .CPP file is the header. the resource.h file is created automatically by MSVC and put in your project directory.

Good luck!
WyrmSlayer RPG - In Early Development

This topic is closed to new replies.

Advertisement