How to convert .rc to .res

Re: How to convert .rc to .res

Postby Antonio Linares » Tue Apr 17, 2012 8:39 am

Eddie,

Your code is working fine here with some minor changes. In your RC you were not using 5000 neither 5001,

eddie.prg
Code: Select all  Expand view
#include "FiveWin.ch"

FUNCTION GETPASSWORD()
   LOCAL oUSER, oGET, oDlg, lGo := .T.
   LOCAL cPASSWORD :=SPAC(10)
   LOCAL cUSER     :=SPAC(10)
   LOCAL NTRIES    :=0

   DEFINE DIALOG oDLG RESOURCE "INIT_PASS" // of oWND1

          REDEFINE GET oUSER VAR cUSER     ID 4003 OF ODLG
          REDEFINE GET oGET  VAR cPASSWORD ID 4004 OF ODLG
          REDEFINE BUTTON ID 5000 OF ODLG ;
                   ACTION NTRIES++,CHKP(cUSER,cPASSWORD,oDLG,@LGO),;
                   IIF(NTRIES>=3,(MsgStop("PASSWORD INCORRECT") /* ,oWND1:End() */ ),)
                   oDLG:SETFOCUS()

          REDEFINE BUTTON ID 5001 OF ODLG ACTION( Msginfo("Cancel") /*, oWND1:End() */ )
     

   ACTIVATE DIALOG oDLG;
            CENTERED

return nil

function Chkp()

return .T.
 


eddie.rc
Code: Select all  Expand view
#include <windows.h>

INIT_PASS DIALOGEX DISCARDABLE 6, 18, 210, 142
STYLE DS_SHELLFONT|WS_POPUP|DS_MODALFRAME|DS_CONTEXTHELP|DS_3DLOOK|WS_CAPTION|WS_SYSMENU|WS_VISIBLE
CAPTION "Dialog"
FONT 8, "Tahoma"
{
   CONTROL "OK", 5000, "Button", WS_TABSTOP, 156, 100, 45, 15
   CONTROL "Cancel", 5001, "Button", WS_TABSTOP, 156, 116, 45, 15
   CONTROL "User Name", 4001, "Static", WS_GROUP, 8, 16, 40, 8
   CONTROL "Password", 4002, "Static", WS_GROUP, 8, 44, 40, 8
   CONTROL "", 4003, "Edit", ES_AUTOHSCROLL|WS_BORDER|WS_TABSTOP, 68, 12, 88, 12
   CONTROL "", 4004, "Edit", ES_AUTOHSCROLL|ES_PASSWORD|WS_BORDER|WS_TABSTOP, 68, 44, 88, 12
}


Image
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby eddielum » Tue Apr 17, 2012 9:36 am

Antonio

I just copy the .prg and .rc from your post but still got the errors. What's wrong of me???? :twisted:

Code: Select all  Expand view

Application
===========
   Path and name: C:\FOOTBALL\dprog3.exe (32 bits)
   Size: 2,076,672 bytes
   Compiler version: Harbour 3.1.0dev (Rev. 17222)
   FiveWin  Version: FWH 12.01
   Windows version: 5.1, Build 2600 Service Pack 3

   Time from start: 0 hours 0 mins 0 secs
   Error occurred at: 04/17/12, 17:28:41
   Error description: Error FiveWin/3  Cannot create Dialog Box:
                      Resource: INIT_PASS

Stack Calls
===========
   Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 538 )
   Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 273 )
   Called from: .\dprog3.PRG => GETPASSWORD( 0 )



Code: Select all  Expand view
My autoexec.bat
INCLUDE=C:\FWH\INCLUDE;C:\HARBOUR\LIB;C:\PROGRA~1\PellesC\Include\WIN
LIB=C:\FWH\LIB;C:\HARBOUR\LIB
 
FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Re: How to convert .rc to .res

Postby Antonio Linares » Tue Apr 17, 2012 10:53 am

Eddie,

Please copy my PRG and RC into FWH\samples and do:

buildh.bat eddie
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby eddielum » Wed Apr 18, 2012 2:14 am

Antonio

It works fine. Thx. But what is my problem?
FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Re: How to convert .rc to .res

Postby Antonio Linares » Wed Apr 18, 2012 8:08 am

Have you compared my files with yours ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby eddielum » Wed Apr 18, 2012 8:41 am

Antonio

The eddie.prg and eddie.rc is the same.

Success is using buildh.bat in fwh\samples. Not success is using go.bat c:\football

buildh.bat
Code: Select all  Expand view
@ECHO OFF
CLS
ECHO 矬闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡醴
ECHO ?FiveWin for Harbour 12.02 - Feb.  2012          Harbour development power  喝
ECHO ?(c) FiveTech, 1993-2012     for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7
ECHO 斂闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡闡囁?
ECHO  葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔葔?

if A%1 == A GOTO :SINTAX
if NOT EXIST %1.prg GOTO :NOEXIST

if "%FWDIR%" == "" set FWDIR=.\..
if "%HBDIR%" == "" set HBDIR=c:\harbour
rem if "%2" == "/b" set GT=gtwin
rem if not "%2" == "/b" set GT=gtgui
set GT=gtgui

ECHO Compiling...

set hdir=%HBDIR%
set hdirl=%hdir%\lib
set fwh=%FWDIR%
set bcdir=c:\bcc582

%hdir%\bin\harbour %1 /n /i%fwh%\include;%hdir%\include /w /p %2 %3 > comp.log
IF ERRORLEVEL 1 GOTO COMPILEERRORS
@type comp.log

echo -O2 -e%1.exe -I%hdir%\include -I%bcdir%\include %1.c > b32.bc
%bcdir%\bin\bcc32 -M -c @b32.bc
:ENDCOMPILE

IF EXIST %1.rc %bcdir%\bin\brc32 -r -I%bcdir%\include %1
rem IF EXIST %1.rc %vcdir%\bin\rc -r -d__FLAT__ %1

echo %bcdir%\lib\c0w32.obj + > b32.bc
echo %1.obj, + >> b32.bc
echo %1.exe, + >> b32.bc
echo %1.map, + >> b32.bc
echo %fwh%\lib\FiveH.lib %fwh%\lib\FiveHC.lib + >> b32.bc
echo %hdirl%\hbrtl.lib + >> b32.bc
echo %hdirl%\hbvm.lib + >> b32.bc
echo %hdirl%\%GT%.lib + >> b32.bc
echo %hdirl%\hblang.lib + >> b32.bc
echo %hdirl%\hbmacro.lib + >> b32.bc
echo %hdirl%\hbrdd.lib + >> b32.bc
echo %hdirl%\rddntx.lib + >> b32.bc
echo %hdirl%\rddcdx.lib + >> b32.bc
echo %hdirl%\rddfpt.lib + >> b32.bc
echo %hdirl%\hbsix.lib + >> b32.bc
echo %hdirl%\hbdebug.lib + >> b32.bc
echo %hdirl%\hbcommon.lib + >> b32.bc
echo %hdirl%\hbpp.lib + >> b32.bc
echo %hdirl%\hbcpage.lib + >> b32.bc
echo %hdirl%\hbwin.lib + >> b32.bc
echo %hdirl%\hbcplr.lib + >> b32.bc
echo %hdirl%\hbct.lib + >> b32.bc
echo %hdirl%\xhb.lib + >> b32.bc
echo %hdirl%\hbziparc.lib + >> b32.bc
echo %hdirl%\hbmzip.lib + >> b32.bc
echo %hdirl%\hbzlib.lib + >> b32.bc
echo %hdirl%\minizip.lib + >> b32.bc
echo %hdirl%\png.lib + >> b32.bc

rem Uncomment these two lines to use Advantage RDD
rem echo %hdirl%\rddads.lib + >> b32.bc
rem echo %hdirl%\Ace32.lib + >> b32.bc

rem echo %fwh%\lib\dolphin.lib + >> b32.bc
rem echo %fwh%\lib\libmysql.lib + >> b32.bc
 
echo %bcdir%\lib\cw32.lib + >> b32.bc
echo %bcdir%\lib\uuid.lib + >> b32.bc
echo %bcdir%\lib\import32.lib + >> b32.bc
echo %bcdir%\lib\ws2_32.lib + >> b32.bc
echo %bcdir%\lib\psdk\odbc32.lib + >> b32.bc
echo %bcdir%\lib\psdk\nddeapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\iphlpapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\msimg32.lib + >> b32.bc
echo %bcdir%\lib\psdk\psapi.lib + >> b32.bc
echo %bcdir%\lib\psdk\rasapi32.lib + >> b32.bc
echo %bcdir%\lib\psdk\gdiplus.lib + >> b32.bc
echo %bcdir%\lib\psdk\shell32.lib, >> b32.bc

IF EXIST %1.res echo %1.res >> b32.bc
if %GT% == gtwin %bcdir%\bin\ilink32 -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
if %GT% == gtgui %bcdir%\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
IF ERRORLEVEL 1 GOTO LINKERROR
ECHO * Application successfully built *
%1
GOTO EXIT
ECHO

rem delete temporary files
@del %1.c

:COMPILEERRORS
@type comp.log
ECHO * Compile errors *
GOTO EXIT

:LINKERROR
ECHO * Linking errors *
GOTO EXIT

:SINTAX
ECHO    SYNTAX: Build [Program]     {-- No especifiques la extensi▋ PRG
ECHO                                {-- Don't specify .PRG extension
GOTO EXIT

:NOEXIST
ECHO The specified PRG %1 does not exist

:EXIT


go.bat
Code: Select all  Expand view
if not exist obj md obj
c:\bcc582\bin\make -ftest.mak


test.mak
Code: Select all  Expand view
#Borland make sample, (c) FiveTech Software 2005-2009

HBDIR=c:\harbour
BCDIR=c:\bcc582
FWDIR=c:\fwh

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(HBDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =         \
eddie.PRG


PROJECT    : eddie.exe

eddie.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) eddie.res
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\eddie.obj, + >> b32.bc
   echo eddie.exe, + >> b32.bc
   echo eddie.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bc

   echo $(BCDIR)\lib\cw32.lib + >> b32.bc
   echo $(BCDIR)\lib\import32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib, >> b32.bc

   IF EXIST eddie.res echo eddie.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

eddie.res : eddie.rc
  $(BCDIR)\bin\brc32.exe -r eddie.rc


error.log
Code: Select all  Expand view
Application
===========
   Path and name: C:\FOOTBALL\eddie.exe (32 bits)
   Size: 1,743,872 bytes
   Compiler version: Harbour 3.1.0dev (Rev. 17222)
   FiveWin  Version: FWH 12.01
   Windows version: 5.1, Build 2600 Service Pack 3

   Time from start: 0 hours 0 mins 0 secs
   Error occurred at: 04/18/12, 16:40:26
   Error description: Error FiveWin/3  Cannot create Dialog Box:
                      Resource: INIT_PASS

Stack Calls
===========
   Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 538 )
   Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 273 )
   Called from: .\eddie.PRG => GETPASSWORD( 0 )

System
======
   CPU type:               Intel(R) Pentium(R) 4 CPU 3.00GHz 3000 Mhz
   Hardware memory: 504 megs

   Free System resources: 90 %
        GDI    resources: 90 %
        User   resources: 90 %

   Windows total applications running: 13
      1 , C:\Program Files\Analog Devices\SoundMAX\DrvLsnr.exe
      2 , C:\Program Files\Internet Explorer\iexplore.exe
      3 , C:\Program Files\Symantec\Symantec Endpoint Protection\SmcGui.exe
      4 , C:\WINDOWS\Explorer.EXE
      5 , C:\WINDOWS\system32\conime.exe
      6 , C:\WINDOWS\system32\hkcmd.exe
      7 About WinZip Quick Pick, C:\Program Files\WinZip\WZQKPICK32.EXE
      8 CCALERT, C:\Program Files\Common Files\Symantec Shared\ccApp.exe
      9 CiceroUIWndFrame, C:\WINDOWS\system32\ctfmon.exe
     10 FWH Samples, C:\WINDOWS\system32\cmd.exe
     11 SS, C:\Program Files\Symantec\Symantec Endpoint Protection\Smc.exe
     12 SoundMAX Tray, C:\Program Files\Analog Devices\SoundMAX\SMTray.exe
     13 buildh - 記事本, C:\WINDOWS\system32\notepad.exe

Variables in use
================
   Procedure     Type   Value
   ==========================
   CREATEDLGERROR
     Param   1:    O    Class: ERROR
   TDIALOG:ACTIVATE
     Param   1:    O    Class: TDIALOG
     Local   1:    C    "INIT_PASS"
     Local   2:    C    "                      "
   GETPASSWORD
     Param   1:    U    
     Param   2:    U    
     Param   3:    U    
     Param   4:    L    .T.
     Param   5:    U    
     Param   6:    L    .T.
     Param   7:    U    
     Param   8:    U    
     Param   9:    U    
     Param  10:    L    .F.
     Param  11:    L    .F.
     Local   1:    N    0

Linked RDDs
===========
   DBF
   DBFFPT
   DBFBLOB
   DBFNTX

DataBases in use
================

Classes in use:
===============
     1 ERROR
     2 HBCLASS
     3 HBOBJECT
     4 TWINDOW
     5 TDIALOG
     6 TBRUSH
     7 TCONTROL
     8 TGET
     9 GET
    10 TCLIPGET
    11 TBUTTON
    12 TREG32

Memory Analysis
===============
      198 Static variables

   Dynamic memory consume:
      Actual  Value:          0 bytes
      Highest Value:          0 bytes

FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Re: How to convert .rc to .res

Postby Antonio Linares » Wed Apr 18, 2012 11:34 am

Eddie,

Then compare the make file with buildh.bat. Compilers flags, and libs linking order.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby Antonio Linares » Wed Apr 18, 2012 11:58 am

Eddie,

Please open your EXE with PellesC and check if your resources are inside the EXE. If they are not, then your app can't create the dialogbox from resources.
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby eddielum » Fri Apr 20, 2012 9:05 am

Antonio,

I've check the buildh.bat and test.mak link with same lib. And i found that, i open the EXE with PellesC. The dialog name in resources name is different.
In eddie.exe (cannot run) the dialog resources name is #1000
In eddie.exe (can run) the dialog resources name is "INIT_PASS"

So it will display error while run the program eddie.exe


Error Message :

Stack Calls
===========
Called from: .\source\classes\DIALOG.PRG => CREATEDLGERROR( 538 )
Called from: .\source\classes\DIALOG.PRG => TDIALOG:ACTIVATE( 273 )
Called from: .\eddie.PRG => GETPASSWORD( 0 )


I think the mistake occur by this command line

Test.mak
$(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

Buildh.bat
%bcdir%\bin\bcc32 -M -c @b32.bc

Can you give me some idea?
Code: Select all  Expand view
Test.mak

#Borland make sample, (c) FiveTech Software 2005-2009

HBDIR=c:\harbour
BCDIR=c:\bcc582
FWDIR=c:\fwh

#change these paths as needed
.path.OBJ = .\obj
.path.PRG = .\
.path.CH  = $(FWDIR)\include;$(hbDIR)\include
.path.C   = .\
.path.rc  = .\

#important: Use Uppercase for filenames extensions, in the next two rules!

PRG =         \
eddie.PRG

PROJECT    : eddie.exe

eddie.exe  : $(PRG:.PRG=.OBJ) $(C:.C=.OBJ) eddie.res
   echo off
   echo $(BCDIR)\lib\c0w32.obj + > b32.bc
   echo obj\eddie.obj, + >> b32.bc
   echo eddie.exe, + >> b32.bc
   echo eddie.map, + >> b32.bc
   echo $(FWDIR)\lib\FiveH.lib $(FWDIR)\lib\FiveHC.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrtl.lib + >> b32.bc
   echo $(HBDIR)\lib\hbvm.lib + >> b32.bc
   echo $(HBDIR)\lib\gtgui.lib + >> b32.bc
   echo $(HBDIR)\lib\hblang.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmacro.lib + >> b32.bc
   echo $(HBDIR)\lib\hbrdd.lib + >> b32.bc
   echo $(HBDIR)\lib\rddntx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddcdx.lib + >> b32.bc
   echo $(HBDIR)\lib\rddfpt.lib + >> b32.bc
   echo $(HBDIR)\lib\hbsix.lib + >> b32.bc
   echo $(HBDIR)\lib\hbdebug.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcommon.lib + >> b32.bc
   echo $(HBDIR)\lib\hbpp.lib + >> b32.bc
   echo $(HBDIR)\lib\hbwin.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcpage.lib + >> b32.bc
   echo $(HBDIR)\lib\hbct.lib + >> b32.bc
   echo $(HBDIR)\lib\hbcplr.lib + >> b32.bc
   echo $(HBDIR)\lib\xhb.lib + >> b32.bc
   echo $(HBDIR)\lib\hbziparc.lib + >> b32.bc
   echo $(HBDIR)\lib\hbmzip.lib + >> b32.bc
   echo $(HBDIR)\lib\hbzlib.lib + >> b32.bc
   echo $(HBDIR)\lib\minizip.lib + >> b32.bc
   echo $(HBDIR)\lib\png.lib + >> b32.bc
   echo $(HBDIR)\lib\uuid.lib + >> b32.bc
   echo $(HBDIR)\lib\ws2_32.lib + >> b32.bc

   rem Uncomment these two lines to use Advantage RDD
   rem echo $(HBDIR)\lib\rddads.lib + >> b32.bc
   rem echo $(HBDIR)\lib\Ace32.lib + >> b32.bcWWW

   echo $(BCDIR)\lib\cw32.lib + >> b32.bc
   echo $(BCDIR)\lib\import32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\psapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\odbc32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\nddeapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\iphlpapi.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\msimg32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\rasapi32.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\gdiplus.lib + >> b32.bc
   echo $(BCDIR)\lib\psdk\shell32.lib, >> b32.bc

   IF EXIST eddie.res echo eddie.res >> b32.bc
   $(BCDIR)\bin\ilink32 -Gn -aa -Tpe -s @b32.bc
   del b32.bc

.PRG.OBJ:
  $(HBDIR)\bin\harbour $< /L /N /W /Oobj\ /I$(FWDIR)\include;$(HBDIR)\include
  $(BCDIR)\bin\bcc32 -c -tWM -I$(HBDIR)\include -oobj\$& obj\$&.c

eddie.res : eddie.rc
  $(BCDIR)\bin\brc32.exe -r -I$(BCDIR)\include eddie.rc
FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Re: How to convert .rc to .res

Postby Antonio Linares » Fri Apr 20, 2012 12:18 pm

Eddie,

Please check if inside the file "DPROG2.h" there is a #define INIT_PASS ... and remove it
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42089
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: How to convert .rc to .res

Postby nnicanor » Fri Apr 20, 2012 9:16 pm

You can use resedit http://www.resedit.net/ also works fine if you plain to compile your resurces with mingw, msvc and borland.

Regards,
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
nnicanor
 
Posts: 302
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: How to convert .rc to .res

Postby eddielum » Mon Apr 23, 2012 2:09 am

Antonio

Thx. I did it, and the #define INIT_PASS 1000 contains in DRPOG2.dll (windows.h)

Best Regards
Eddie
FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Re: How to convert .rc to .res

Postby eddielum » Mon Apr 23, 2012 2:14 am

nnicanor

Thx for your information. Let me try whether PellesC or resedit 32Bit will be better in Traditional Chinese Version.

Best Regards,
Eddie
FW12.01, BCC582, DBFNTX, Pelles C 6.50
eddielum
 
Posts: 17
Joined: Mon Apr 16, 2012 7:25 am

Previous

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 101 guests