Open jonatino opened 3 years ago
The longest string literal for my background.png image is 1,585,218 characters.
Hi. After googling this I found out library shoud generate strings as
char *s = "very long"
"string";
instead of
char *s = "very long string";
to make this work in VS on Windows.
@Jonatino feel free to open a pull request, otherwise I can take a look next week.
@jkuri I think we'd need to take a step farther and chunk them into separate strings entirely; it seems msvc still enforces a 65535 byte length for even contacted strings.
While an individual quoted string cannot be longer than 2048 bytes, a string literal of roughly 65535 bytes can be constructed by concatenating strings.
And I've just started C++ a few days ago. I can try to get this working if not your help would be appreciated :)
sure, you are welcome to open a PR then we can check together.
btw, manually converting strings to format I mentioned above make this compile on Windows if I recall correctly, maybe this lib https://github.com/ekg/split can come handy.
My project fails to compile when trying to embed an angular web application. Compiling VS 2019 msvc.
Here is my binfs.hpp
https://gist.github.com/Jonatino/9bd16b105c12305e2e227c7f4710cba5