.rc files problem

This is a discussion on .rc files problem within the C Programming forums, part of the General Programming Boards category; Hi there, i'm making a small windows application, and I am trying to use resource script files, but i don't ...

  1. #1
    Registered User
    Join Date
    Nov 2005
    Posts
    14

    .rc files problem

    Hi there, i'm making a small windows application, and I am trying to use resource script files, but i don't really know how to use them. I made my own, but while using Visual C++. i couldn't compile. Now i'm trying Dev-C++. How do I use rc files on this one? Thanks a lot.

  2. #2
    Registered User
    Join Date
    Aug 2005
    Posts
    1,267
    I think this tutorial will show you.

  3. #3
    Registered User
    Join Date
    Nov 2005
    Posts
    14
    My app makes a window. I made my resource script file to create de menus and the icons, like it is said on that tutorial. But, he doesn't say how to compile. I only done cl /DWIN32 window.c user32.lib, and it compiled successfuly. But the window has no menu nor icons. Then, I tryed cl /DWIN32 window.c user32.lib /link resoure.h and an error ocurred:

    resource.h : fatal error LNK1107: invalid or corrupt file: cannot read at 0x135

    Can you help me? Thanks a lot.

    PS: I included de file resource.h on my window.c
    PS2: i've been reading that faq a while
    Last edited by RevengerPT; 12-09-2005 at 11:33 AM.

  4. #4
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,059
    Use resource compiler as follows
    rc myrcfile.rc

    If successful, it will create a myrcfile.res

    Then:

    cl /DWIN32 mycfile.c myrcfile.res user32.lib

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. .rc files in VC8
    By jsrig88 in forum Windows Programming
    Replies: 6
    Last Post: 05-10-2008, 07:01 PM
  2. Strange problem with classes in header files
    By samGwilliam in forum C++ Programming
    Replies: 2
    Last Post: 02-29-2008, 04:55 AM
  3. Problem with linking files
    By slippy in forum C Programming
    Replies: 2
    Last Post: 11-23-2007, 11:35 PM
  4. problem with resource files
    By nickeax in forum Windows Programming
    Replies: 1
    Last Post: 03-14-2003, 02:32 AM
  5. Problem with cgi script - can't rename files
    By bjdea1 in forum C Programming
    Replies: 2
    Last Post: 12-12-2001, 04:09 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21