Re: Updating file version number using UpdateResource



google@xxxxxxxxxxxxxxxx schrieb im Beitrag
<f6edc302-9add-4079-8790-8318ab3ceded@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>...
When declaring an array in VB6 the number indicates the upper bound of
the array not the number of items in the array like most other
languages. Since VB6 defaults to a lower bound of 0 this is in fact a
correct declaration (not nonsense!).

Sorry, that was my fault caused by the fact that currently I am working
with C more often than with VB.

If you look carefully where I'm updating the file and product numbers
you'll see that I am using offsets of 48 and 56 repectively, I've just
placed them in order of Major, Minor, Build and Revision instead of
the order they appear in the data.

Sorry, again my fault. In each case I have looked only at the first line
following the comment...

I'm not sure about the language, some examples I've found use language
neutral and others US English.

Get yourself a good resource viewer/editor, open the executable, and check
the version info resource. A good one IMHO is Resource Hacker written by
Angus Johnson from
http://www.angusj.com/resourcehacker/

In addition: In another newsgroup there were reported problems with
UpdateResource() on MS Windows Vista...

--
----------------------------------------------------------------------
Thorsten Albers albers(a)uni-freiburg.de
----------------------------------------------------------------------

.



Relevant Pages

  • Re: Conversion Problem
    ... prefix is written or not depending on the exact type of the variable. ... VB6 side Ive got a xinteger array... ... the _x array is a single dimension array whose size is the same as the ... dim arr1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Java Indexing- Historical question
    ... design decision - so does anyone know who decided that indexing from ... An array access ... take the initial lower bound of the index as an optional argument, ...
    (comp.lang.java.programmer)
  • Re: Conversion Problem
    ... VB6 side Ive got a xinteger array... ... the _x array is a single dimension array whose size is the same as the 3D array VB6 side. ... that vb8 does not support arrays declared like arr1because when you try to do the Fileput it just gives an error saying only 2 dimentional arrays are supported - what a load of tat!!! ... dim arr1 ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Setting based 1 Arrays
    ... will create an array with the lower bound 0 and upper bound NUM_USER_SECURITY. ... Public Structure TSecurityName ... Public Name As String ... Short of using a class wrapper, maybe a Get/Set Property, is there a way or method to declare, maybe at the compiler level what the lower bound would be? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Reading a binary file created with VB6
    ... read/write VB6 stuff. ... Private Type MyAttrib ... Dim count As Integer ... Note that the MyType type has an array of "MyAttrib"s. ...
    (microsoft.public.dotnet.languages.vb)

Loading