andrewamd / dynamicarray Goto Github PK
View Code? Open in Web Editor NEWA basic dynamic array library intended for the Zorro Trading Automaton.
License: MIT License
A basic dynamic array library intended for the Zorro Trading Automaton.
License: MIT License
Git cloned your repo and opened in VS 2022 Community Edition by upgrading the platform toolset to v143 and Windows SDK version to latest
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
According to SO if I change the Struct Member Alignment from 4 Byte
to Default.
Then the project builds successfully and the DynamicArray.dll is produced.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.