Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

link *.res files??

Status
Not open for further replies.

260481

Technical User
Sep 4, 2003
2
CH
Hi there,

I am a greenhorn in visual C++ and just getting started.
I have to complete a project for my school and need HELP here.

I want to include an animated Cursor to my Program.
What I tried so far is creating a RC-file (hammer.rc):

HAMMER ANICURSOR Hammer.ani

I then created the res-file:
brcc32.exe hammer.rc

which completed with no errors and generated the hammer.RES file.

Now I am trying to link it to my Program by typing the following in my Code:

{$R hammer.RES}

But this fails. It tells me that I did not finish the declaration correctly and markes that line ({$R hammer.RES}). What am I doing wrong??? Can someone help me?
:(

THANKS!!!
 
Your question is for BorlandC++ forum, but I have a piece of makefile:
Code:
!include <x:\flib\include\includes.mak>
this_dir=&quot;X:\corba\IonFilipski-statistics\db2orb3\bc\client&quot;
......
compile:
  bcc32 -n$(this_dir)\bc_release  -D_RTLDLL -c       -Iincludedirectoryes; -w-8026 -w-8027 -w-8066 -tW       $(this_dir)\*.cpp>err.txt
compile_rc:
  brcc32 -IsomeIncludes; -fo$(this_dir)            \bc_release\client.res $(this_dir)\client.rc
link:
  il[COLOR=black]in[/color]k32 -Tpe -Isomedirectory -j$otherdirectory          -Lc:\bcc55\lib\PSDK;$(f_lib);$(orb_lib) -aa -E3                   c0w32 dataobject db2orb_c                   AllYourObjectFiles\ 
                    db2orb_ConnectView                   db2orb_MainFrame db2orb_MapView                   db2orb_s db2orb_view dropsource                   enumformatetc main, $(this_dir)                   \bc_release\db2orb_client.exe                    ,,                   cw32 user32 kernel32 ole32                  import32 fwnd fcln,,client.res otherRes.res


Ion Filipski
[img]http://ournet.md/~ifilipski/1c.bmp[/img]
ICQ: 95034075
AIM: IonFilipski
filipski@excite.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top