The rc2dll32.bat problem, moving resources to screen32.dl

The rc2dll32.bat problem, moving resources to screen32.dl

Postby hag » Tue Jul 15, 2008 3:59 am

2 problems:

The rc2dll32 doesn't seem to be working correctly. Screen32.c is in c:\Borland\bcc55\bin but doen't see it. Message reads "could not find file screen32.c" Its there. Also can't find the screen32.obj in the 6th line of the bat file below. Please help by correcting the bat file.

Once the 32 bit dlls are created how do I get them into screen32.dll since I store all resoures in one dll.

Bat file:
rem RC file to 32 bits resources DLL
rem syntax: rc2dll32.bat Your_rc_file !!! without the .RC extension

c:\borland\bcc55\bin\bcc32 -c screen32.c
c:\borland\bcc55\bin\brc32 -r %1.rc
c:\borland\bcc55\bin\ilink32 /Tpd c:\borland\bcc55\lib\c0d32.obj screen32.obj, %1.dll,,c:\borland\bc55\lib\cw32.lib c:\borland\bcc55\lib\import32.lib,, %1.res
del *.i*
del *.map
del *.obj
del *.res
del *.tds
echo done!

Thanks for all of your help

HAg



Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby Antonio Linares » Tue Jul 15, 2008 11:31 am

Harvey,

> screen32.c is in c:\Borland\bcc55\bin but doen't see it

If screen32.c is there, then you have to specify its path in the bat file:

c:\borland\bcc55\bin\bcc32 -c c:\borland\bcc55\bin\screen32.c

also modify the screen32.obj path here:

c:\borland\bcc55\bin\ilink32 /Tpd c:\borland\bcc55\lib\c0d32.obj c:\borland\bcc55\bin\screen32.obj, ...

To use more than one RC file, create a RC file that contains all of them:

global.rc:

#include "first.rc"
#include "second.rc"
#include "third.rc"
...

So global.res from global.rc will have all inside it.
regards, saludos

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

Postby hag » Tue Jul 15, 2008 2:14 pm

Antonio:
Thnks for the quick response. The screen32.obj file doesn"t exist. I wrote the other day asking for a copy and you also said it doesn"t exist. Yet the bat file rc2dll32 calls for it. is it call for it in error? should it be calling something else.

Thanks Again

Hag
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California

Postby Antonio Linares » Tue Jul 15, 2008 5:04 pm

Harvey,

screen32.obj is created from screen32.c when bcc32.exe is called:

c:\borland\bcc55\bin\bcc32 -c c:\borland\bcc55\bin\screen32.c

This is the process:

1. bcc32.exe compiles screen32.c and creates screen32.obj

2. brc32.exe compiles your RC file and creates a RES file.

3. ilink32.exe builds a DLL from screen32.obj and your RES file.
regards, saludos

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

Postby hag » Tue Jul 15, 2008 5:36 pm

Great.
Thank you
Harvey
hag
 
Posts: 598
Joined: Tue Apr 15, 2008 4:51 pm
Location: LOs Angeles, California


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 60 guests