Resource help?

This is a discussion on Resource help? within the C++ Programming forums, part of the General Programming Boards category; [edit] Compiled the .rc into .res, still doesnt work, read below for details. [/edit] (Borland C++ Free Command Line Compiler) ...

  1. #1
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379

    Resource help?

    [edit]
    Compiled the .rc into .res, still doesnt work, read below for details.
    [/edit]

    (Borland C++ Free Command Line Compiler)

    Ok, I'm just starting with theForgers winapi tutorial, but I'm stuck on Resources. I made a resource.rc file and a resource.h file and included them aporpriately. But when I add resource.rc using #pragma, it says the file could not be opened. Heres my include pragma code:

    Code:
    #pragma resource "resource.rc" //I tried using plain #include to, didint work.
    #include "resource.h"
    And I get roughly "Line 1: The file could not be opened"

    This is my first time working with resources. What did I do wrong?
    Last edited by Blackroot; 01-18-2006 at 03:24 AM.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  2. #2
    Registered User Tonto's Avatar
    Join Date
    Jun 2005
    Location
    New York
    Posts
    1,465
    Compile the resource script first, and then:

    Code:
    #pragma resource "resource.res"

  3. #3
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    >.< >>..<< Gah! So simple yet so complicated >.>. Tyvm! Ah well, If i need to precompile all my resources, let it be done!

    [edit]
    Damn, doesnt work. I get:

    [Linker error]
    Error: Unable to open file "Forgers.res"

    I compiled forgers.rc into a res file, its not working though. I tried using a makefile, but I dont have the slightest clue how to use it...
    Code:
    #include "forgers.h"
    #include <windows.h>
    #pragma resource "forgers.res"
    Is what i'm using.

    I'm so lost >.<
    Last edited by Blackroot; 01-17-2006 at 05:49 PM.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

  4. #4
    60% Braindead
    Join Date
    Dec 2005
    Posts
    379
    Anyone? Sorry to bump but this is becoming a real problem >.>.
    Code:
    Error W8057 C:\\Life.cpp: Invalid number of arguments in function run(Brain *)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Sorting out a resource manager
    By psychopath in forum Game Programming
    Replies: 1
    Last Post: 11-10-2008, 06:12 PM
  2. unmanaged resource
    By George2 in forum C++ Programming
    Replies: 2
    Last Post: 01-03-2008, 03:23 AM
  3. CreateProcess with Resource of executable, not the Filename
    By Ktulu in forum Windows Programming
    Replies: 4
    Last Post: 11-04-2006, 12:07 AM
  4. resource problem/question
    By stallion in forum Windows Programming
    Replies: 4
    Last Post: 01-29-2003, 01:08 PM
  5. Serial Communications in C
    By ExDigit in forum Windows Programming
    Replies: 7
    Last Post: 01-09-2002, 09:52 AM

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