Thread: Resources in Borland

  1. #1
    HappyDude
    Guest

    Resources in Borland

    I'm using the free command line compiler tools from Borland, and I can't figure out how to link a resource to my .exe file. The brc32.exe which comes with the compiler can compile the .rc files into .res files, but it won't link it to the .exe for me... anyone know what I have to do?

  2. #2
    Registered User
    Join Date
    Sep 2001
    Posts
    22

    Talking

    I ran into this same problem a while back. Here is what you need to use. Just make a batch file like I did and then run it like makeapp mysource.cpp where makeapp is you batch file containing this:

    bcc32 -c -w- -O1 -tW %1
    brcc32 -32 %1.rc
    ilink32 -Tpe -aa c032win.obj %1.obj , %1.exe, ,CW32TINY.lib import32.lib, ,%1.res

    del *.ils
    del *.ilf
    del *.ilc
    del *.ild
    del *.tds
    del *.map
    del *.obj
    del *.res

    the Del *.bla stuff at the end just takes away all those extra files I don't want, you may want/need them. I've attach the batch file I use for further study.
    I can't say for sure.....but that doesn't look work related.

  3. #3
    Registered User
    Join Date
    Sep 2001
    Posts
    22

    Red face

    sorry, my batch file and stuff uses the TinyCRT stuff I got from the net. If you just want to use the native stuff that comes with the command lines tools use this.

    bcc32 -c -w- -tW %1
    brcc32 -w32 myrsrce.rc // I usually have it as %1.rc since my .rc file will ahve the same name as my source
    ilink32 -Tpe -aa c0w32.obj %1.obj , %1.exe, ,import32.lib cw32mt.lib, ,%1.res
    I can't say for sure.....but that doesn't look work related.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  2. Converting resources from Borland to Microsoft
    By jrp43 in forum C++ Programming
    Replies: 1
    Last Post: 09-22-2005, 04:51 AM
  3. Borland 5.5 Compiling error =(
    By Gregthatsme in forum Windows Programming
    Replies: 2
    Last Post: 05-25-2003, 04:04 PM
  4. Problem with Borland 5.5
    By Gregthatsme in forum C++ Programming
    Replies: 2
    Last Post: 05-25-2003, 08:07 AM
  5. Borland C++ v.5 & Borland Turbo C++ 4.5
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 07-21-2002, 03:30 AM