Coder Social home page Coder Social logo

dynamicarray's People

Contributors

andrewamd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

dynamicarray's Issues

Build fails with Visual Studio 2022

Git cloned your repo and opened in VS 2022 Community Edition by upgrading the platform toolset to v143 and Windows SDK version to latest
2022-08-14 19_04_21-DynamicArray - Microsoft Visual Studio (Administrator)

throws an error

Severity	Code	Description	Project	File	Line	Suppression State
Error	C2338	static_assert failed: 'Windows headers require the default packing option. Changing this can lead to memory corruption. This diagnostic can be disabled by building with WINDOWS_IGNORE_PACKING_MISMATCH defined.'	DynamicArray	C:\Program Files (x86)\Windows Kits\10\Include\10.0.22621.0\um\winnt.h	2535	

2022-08-14 19_06_50-DynamicArray - Microsoft Visual Studio (Administrator)

According to SO if I change the Struct Member Alignment from 4 Byte

2022-08-14 19_03_54-DynamicArray - Microsoft Visual Studio (Administrator)

to Default.

2022-08-14 19_10_19-DynamicArray - Microsoft Visual Studio (Administrator)

Then the project builds successfully and the DynamicArray.dll is produced.

2022-08-14 19_11_37-DynamicArray - Microsoft Visual Studio (Administrator)

However, this would produce unintended behavior with Zorro since Lite-C has 4 byte struct alignment requirements. From the might manual.

If your broker DLL accesses Zorro-specific structs, set struct alignment to 4, or use the #pragma pack(4) statement. Otherwise structs can have different sizes in lite-C and in VC++.

So how we fix this issue?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.