Posted 29 November 2024, 6:20 am EST
We are using the VsFlexgrid ActiveX control in our software, specifically the control vsFlex8u and its associated ocx, and are encountering a problem with the VisualStudio2022 resource editor.
When editing a FlexGrid resource in the Vs22 Resource Editor, the Hex Block in the Rc file encoding the information is changed, which results in the component no longer working when compiling in 32bit. It does however still work when compiling in 64 bit. This does not happen in VisualStudio2019, where both 32bit and 64bit applications produce no error.
Steps to Reproduce:
- Create a Resource using VsFlexGrid in Visual Studio 2019
- Edit this Resource in VisualStudio2022, for example by moving the Grid slightly and saving
- Compile in 32bit
- Run the application, an error stating “encountered improper argument” pops up and the flexgrid is never loaded
The specific Change that occurs in the Hex block is that the third value in the second row is changed from 0x0900 to 0x0a00, nothing else about the Hex block changes. This is reproducible, and the error goes away when manually editing the file to undo this change.