Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.basic.visual.misc > #2137 > unrolled thread

VB6 linker bug with resources larger than 0xfff0 bytes

Started byDeanna Earley <dee.earley@icode.co.uk>
First post2014-08-22 16:12 +0100
Last post2014-09-12 15:14 +0100
Articles 4 — 2 participants

Back to article view | Back to comp.lang.basic.visual.misc


Contents

  VB6 linker bug with resources larger than 0xfff0 bytes Deanna Earley <dee.earley@icode.co.uk> - 2014-08-22 16:12 +0100
    Re: VB6 linker bug with resources larger than 0xfff0 bytes "Paulo" <nospam.vbstudent@syscolor.net> - 2014-09-12 06:34 +0100
      Re: VB6 linker bug with resources larger than 0xfff0 bytes Deanna Earley <dee.earley@icode.co.uk> - 2014-09-12 10:15 +0100
        Re: VB6 linker bug with resources larger than 0xfff0 bytes "Paulo" <nospam.vbstudent@syscolor.net> - 2014-09-12 15:14 +0100

#2137 — VB6 linker bug with resources larger than 0xfff0 bytes

FromDeanna Earley <dee.earley@icode.co.uk>
Date2014-08-22 16:12 +0100
SubjectVB6 linker bug with resources larger than 0xfff0 bytes
Message-ID<lt7ml5$k1r$1@speranza.aioe.org>
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 (dee.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.)

[toc] | [next] | [standalone]


#2150

From"Paulo" <nospam.vbstudent@syscolor.net>
Date2014-09-12 06:34 +0100
Message-ID<luu0lh$lk9$1@dont-email.me>
In reply to#2137
Hi, Deanna
Have you fixed the problem with the RES file? Can you share the solution?

Paulo
(VB? Give me back the classic one.) 

[toc] | [prev] | [next] | [standalone]


#2151

FromDeanna Earley <dee.earley@icode.co.uk>
Date2014-09-12 10:15 +0100
Message-ID<luudk0$7e8$1@speranza.aioe.org>
In reply to#2150
On 12/09/2014 06:34, Paulo wrote:
> 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 (dee.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.)

[toc] | [prev] | [next] | [standalone]


#2152

From"Paulo" <nospam.vbstudent@syscolor.net>
Date2014-09-12 15:14 +0100
Message-ID<luuv4s$op5$1@dont-email.me>
In reply to#2151
Thank you, Deanna. 

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.basic.visual.misc


csiph-web