Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kezhengjie/binincpp
embed bin file in .h&.cpp
https://github.com/kezhengjie/binincpp
Last synced: 6 days ago
JSON representation
embed bin file in .h&.cpp
- Host: GitHub
- URL: https://github.com/kezhengjie/binincpp
- Owner: kezhengjie
- License: mit
- Created: 2022-01-21T06:34:51.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-21T06:51:00.000Z (almost 3 years ago)
- Last Synced: 2024-12-25T03:22:14.300Z (10 days ago)
- Language: C++
- Size: 349 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# BinInCpp
Generate any binary file's .h&.cpp.## Usage
example:
```./BinInCpp.exe 7z.exe```
This will read ```7z.exe``` and create both 7z.h and 7z.cpp.
Include ```7z.h``` and compile ```7z.cpp``` in your project.
Call ```release_7z()``` to release origin 7z.exe to you word folder.
It is highly command to lib the cpp file to invoid IDE being slow.## Warning
**Due to stack limit,os might raise stack overflow when the embeded file is too large.**
**Better not to embed file that is larger than 10M.**
**Also if the size of embeded file is large than the main executable looks strange**
**and always not a good idea.**# 说明
为二进制文件生成 .h和.cpp 文件,用于集成到c++程序中。
**由于操作系统有栈限制,需要集成的文件大小不应该大于10M。**