Resources Problem

Resources Problem

Postby sajith » Fri Jul 31, 2009 6:34 am

Can anyone help me
when iam trying to include a resource file to my project following error are showing in the output console.The resource file include a bitmap and iam using Pelles C IDE.

Code For Calling Resource Name "SavePic "
Code: Select all  Expand view


  @288,395 BUTTONBMP oBtnSave  prompt "SAVE"  TEXTRIGHT  SIZE 45,20 PIXEL OF odlg;
        RESOURCE  "SavePic"    lTrans TRANSPARENT ;
       FONT oFontBtn MESSAGE "Click here to Save"
 


SavePic .rc code (Resource)
Code: Select all  Expand view

#include <windows.h>
#include <commctrl.h>
#include <richedit.h>
LANGUAGE LANG_ENGLISH,SUBLANG_ENGLISH_US
SavePic BITMAP "Icons\\Save.bmp"

 


Error in the OutPutConsole
Code: Select all  Expand view

Done.
[1]:Bcc32.Exe -M -c -O2  -tW -v- -X -DHB_OS_WIN_32 -ID:\FWH\include -ID:\Borland\BCC55\Include;D:\xHarbour\Include  -nD:\PAYROL~3\Obj Report.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
Report.c:
[1]:Harbour.Exe PayrollFiles\PaySlipMain.prg  /m /n /gc0 /w0 /es2 /a /iD:\FWH\include /iD:\xHarbour\Include /d__EXPORT__ /oObj\PaySlipMain.c
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'PayrollFiles\PaySlipMain.prg'...
Lines 740, Functions/Procedures 13
Generating C source output to 'Obj\PaySlipMain.c'...
Done.
[1]:Bcc32.Exe -M -c -O2  -tW -v- -X -DHB_OS_WIN_32 -ID:\FWH\include -ID:\Borland\BCC55\Include;D:\xHarbour\Include  -nD:\PAYROL~3\Obj PaySlipMain.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
PaySlipMain.c:
[1]:Harbour.Exe PayrollFiles\ModificationDtls.prg  /m /n /gc0 /w0 /es2 /a /iD:\FWH\include /iD:\xHarbour\Include /d__EXPORT__ /oObj\ModificationDtls.c
xHarbour Compiler build 1.2.1 (SimpLex) (Rev. 6406)
Copyright 1999-2009, http://www.xharbour.org http://www.harbour-project.org/
Compiling 'PayrollFiles\ModificationDtls.prg'...
Lines 125, Functions/Procedures 3
Generating C source output to 'Obj\ModificationDtls.c'...
Done.
[1]:Bcc32.Exe -M -c -O2  -tW -v- -X -DHB_OS_WIN_32 -ID:\FWH\include -ID:\Borland\BCC55\Include;D:\xHarbour\Include  -nD:\PAYROL~3\Obj ModificationDtls.c
Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland
ModificationDtls.c:
[1]:PORC.EXE Resource\Icon.rc   /I D:\PellesC\include /I
Pelles Resource Compiler, Version 5.00.0
Copyright (c) Pelle Orinius 1997-2008

Syntax:
PORC [options] input[.rc]

Options:
/C<cp>             Define codepage for NLS conversion (default: 1252)
/D<name>[=<text>]  Define a symbol
/E                 Preprocess only (to stdout)
/Fo<file>          Rename the output file (default: input.res)
/I<path>           Add a search path for #include files
/L<langid>         Set default language ID
/N                 Append null character to all strings in the string table
/R                 Create a .res file (default, can always be omitted)
/V                 Display more information
/X                 Don't search standard places for #include files



Regards,
sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: Resources Problem

Postby nageswaragunupudi » Fri Jul 31, 2009 9:34 am

savepic.rc
Code: Select all  Expand view
SavePic BITMAP "Icons\Save.bmp"


better you give full path for the bmp file
You need not have any other statement in the rc file
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India

Re: Resources Problem

Postby sajith » Fri Jul 31, 2009 10:16 am

Dear Rao,ManyMany thanks for ur Support.

I tried by giving full pathName. Pblm still remains.

Regards,
sajith
sajith
 
Posts: 110
Joined: Wed Feb 18, 2009 9:58 am
Location: India

Re: Resources Problem

Postby nageswaragunupudi » Fri Jul 31, 2009 12:14 pm

you are using pelles c resource compiler. I do not know how to use that.
simpler to use brc32 of borland

brc32 -r savepic.rc

or just try buildx.bat in \fwh\samples folder
Regards

G. N. Rao.
Hyderabad, India
User avatar
nageswaragunupudi
 
Posts: 10625
Joined: Sun Nov 19, 2006 5:22 am
Location: India


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 61 guests