 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
d.newbold Guest
|
Posted: Mon Jan 09, 2006 9:18 pm Post subject: resource loading fails |
|
|
I'm porting an application from Microsoft Visual C++ 6 to Borland C++
Builder 6.
The only difference between the projects is the two project files use by
each ide.
All .c, .h, .rc, .ico and .cur files are unaltered and none include any
conditional
directives aimed an the IDE. The MVC build runs fine. The BCB build seems to
not load any of the resources. BCB creates a .res file of about 37K, which
is about
the same size as the MVC .res file. When I run the BCB debugger I don't seem
to
get any resources. LoadCursor() returns NULL. LoadIcon() returns NULL.
CreateDialogParam() returns NULL as well. Does anyone know why the
resources are not accessible and how I can correct this? Thanks!
|
|
| Back to top |
|
 |
Ed Mulroy Guest
|
Posted: Mon Jan 09, 2006 9:55 pm Post subject: Re: resource loading fails |
|
|
If the base filename of the *.res file is the same as that of the project
then there is a conflict. The project manager creates a *.res file with the
project base name. To get around that change the base name of the *.rc
file, remove the old name from the project and then add it under its new
name.
There is a glitch in the IDE that can occur in configurations. The glitch
is that when doing a Project|Make the project build may stop at the point
where it compiles the *.rc file you provided. If that seems to happen for
you try doing a Project|Build. I get frustrated by this and just build the
thing by hand with a command line like this:
brcc32 resname.rc
.. Ed
| Quote: | d.newbold wrote in message
news:43c2d284 (AT) newsgroups (DOT) borland.com...
I'm porting an application from Microsoft Visual C++ 6 to Borland C++
Builder 6. The only difference between the projects is the two project
files use by each ide. All .c, .h, .rc, .ico and .cur files are unaltered
and none include any conditional directives aimed an the IDE. The MVC
build runs fine. The BCB build seems to not load any of the resources. BCB
creates a .res file of about 37K, which is about
the same size as the MVC .res file. When I run the BCB debugger I don't
seem to get any resources. LoadCursor() returns NULL. LoadIcon() returns
NULL. CreateDialogParam() returns NULL as well. Does anyone know why the
resources are not accessible and how I can correct this? Thanks!
|
|
|
| Back to top |
|
 |
d.newbold Guest
|
Posted: Mon Jan 09, 2006 10:44 pm Post subject: Re: resource loading fails |
|
|
The project and .rc file names are entirely different: visual.bpr and
visual.bpf vs resource.rc and resource.res
I can't say that I've observed the IDE glitch you mentioned.
"Ed Mulroy" <dont_email_me (AT) bitbuc (DOT) ket> wrote
| Quote: | If the base filename of the *.res file is the same as that of the project
then there is a conflict. The project manager creates a *.res file with
the project base name. To get around that change the base name of the
*.rc file, remove the old name from the project and then add it under its
new name.
There is a glitch in the IDE that can occur in configurations. The glitch
is that when doing a Project|Make the project build may stop at the point
where it compiles the *.rc file you provided. If that seems to happen for
you try doing a Project|Build. I get frustrated by this and just build
the thing by hand with a command line like this:
brcc32 resname.rc
. Ed
d.newbold wrote in message
news:43c2d284 (AT) newsgroups (DOT) borland.com...
I'm porting an application from Microsoft Visual C++ 6 to Borland C++
Builder 6. The only difference between the projects is the two project
files use by each ide. All .c, .h, .rc, .ico and .cur files are
unaltered and none include any conditional directives aimed an the IDE.
The MVC build runs fine. The BCB build seems to not load any of the
resources. BCB creates a .res file of about 37K, which is about
the same size as the MVC .res file. When I run the BCB debugger I don't
seem to get any resources. LoadCursor() returns NULL. LoadIcon() returns
NULL. CreateDialogParam() returns NULL as well. Does anyone know why the
resources are not accessible and how I can correct this? Thanks!
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Jan 10, 2006 12:52 am Post subject: Re: resource loading fails |
|
|
"d.newbold" <d.newbold (AT) mchsi (DOT) com> wrote
| Quote: | The BCB build seems to not load any of the resources.
|
Did you verify that the resources actually exist in the compiled executable?
Run the .exe file through a resource viewer.
Gambit
|
|
| Back to top |
|
 |
d.newbold Guest
|
Posted: Tue Jan 10, 2006 2:51 pm Post subject: Re: resource loading fails |
|
|
The .res file is created, but it looks like the resources aren't in the
executable.
The question is why, and how can I fix it?
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"d.newbold" <d.newbold (AT) mchsi (DOT) com> wrote in message
news:43c2d284 (AT) newsgroups (DOT) borland.com...
The BCB build seems to not load any of the resources.
Did you verify that the resources actually exist in the compiled
executable?
Run the .exe file through a resource viewer.
Gambit
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|