cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
Embedding txt file to DLL file
Embedding txt file to DLL file
Oct 11, 2018 at 9:56pm UTC
anasmourad
(4)
Hi there,
I am trying to embed a text file with 40k records in C++ project, that exports DLL file.
I tried this in visual studio
1
2
3
string myFile = {
#include "lemmantization.txt"
};
But it is not working. Error: String too big, trailing characters truncated.
Thanks for helping in advance.
Oct 11, 2018 at 10:49pm UTC
poteto
(525)
https://stackoverflow.com/questions/2740164/how-to-embed-link-binary-data-into-a-c-dll/2740236#2740236
Oct 11, 2018 at 11:35pm UTC
closed account (
E0p9LyTq
)
Do you know how to deal with custom resources like icons and bitmaps? Using a resource script file?
A text file can be just as easily manipulated and embedded as a custom resource as an icon or bitmap.
Topic archived. No new replies allowed.