VB6.frm Changing the file format for no reason!

We (our company) notice that between registering code in our repository from different users / machines, the Format property inside the VB6 form file continues to change, although we have not changed anything on our PCs.

To: Format = 82182147

After: Format = 69337091

It hurts with our source code comparison tools that compile them, and it looks like these are date picker controls. The numbers seem random, as sometimes from the same machine that he changes!

All PCs whose registration is located in the same locale of the same version of vb6 .. are almost the same settings as all of us with whom we develop VM (from the standard VM template).

Does anyone know why this is changing and how to prevent it? It seems very random!

+4
source share
1 answer

The fundamental DateTimePicker Common Control sets its โ€œstandardโ€ formats through the bottom 6 bits or so of the GWL-STYLE DWORD of its window. The value for the format stored in the .frm file may well be the whole bit of the DWORD style (WS_TABSTOP, WS_VISIBLE, etc.).

So it may happen that people change other style bit fields, or perhaps even the IDE picks up the difference in default values โ€‹โ€‹on different machines. For example, some things exist only in later versions of Windows, or perhaps they differ depending on whether the user is active with Luna, Aero, etc.

Using a "standard virtual machine" makes this less likely, but I admit.

0
source

All Articles