Discussion:
VB6 linker bug with resources larger than 0xfff0 bytes
(too old to reply)
Deanna Earley
2014-08-22 15:12:23 UTC
Permalink
Hi all.

Can anyone else confirm a bug for me?

I have a number of resources of type RC_HTML/23 that are compiled into a
res file which is then included in a VB6 project.
When one of these resources is larger than 0xfff0 bytes, the resource
file gets created with the correct size, but when linked into the final
executable, it gets padded to DWORD boundaries.

There was a similar bug in VB6 for much smaller resources that was fixed
in SP5 (see KB297112, http://support.microsoft.com/kb/297112/en-us)

I'll try and do a simpler test case tonight than me huge project tonight
--
Deanna Earley (***@icode.co.uk)
iCatcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be printed, shredded then fed
to the rats. Please reply to the group.)
Paulo
2014-09-12 05:34:45 UTC
Permalink
Hi, Deanna
Have you fixed the problem with the RES file? Can you share the solution?

Paulo
(VB? Give me back the classic one.)
Deanna Earley
2014-09-12 09:15:41 UTC
Permalink
Post by Paulo
Hi, Deanna
Have you fixed the problem with the RES file? Can you share the solution?
It depends on the data in that resource. If it's XML and larger than
65520 bytes, you need to pad it with spaces to a DWORD boundary.
(multiples of 4)
Resources smaller than that are handled correctly if you have VB6 SP6.
--
Deanna Earley (***@icode.co.uk)
iCatcher Development Team
http://www.icode.co.uk/icatcher/

iCode Systems

(Replies direct to my email address will be printed, shredded then fed
to the rats. Please reply to the group.)
Paulo
2014-09-12 14:14:43 UTC
Permalink
Thank you, Deanna.

Loading...