Linked Questions

1 vote
0 answers
356 views

I want to embed a XML file into EXE with VS2013 (i.e. I don't want to ship the XML to my customer, only the EXE). I'm using C++ (MFC), and I tried to put it into .rc file. But it gives back only ...
Jeffery's user avatar
  • 11
1 vote
0 answers
309 views

I am having a sample.dll, a sample.txt file and sample.exe. sample.exe uses sample.dll functions. I am opening sample.txt and reading its contents in sample.dll. Everytime I run sample.exe I need to ...
ManojKumar Paladugu's user avatar
178 votes
23 answers
101k views

Is there a way to include an entire text file as a string in a C program at compile-time? something like: file.txt: This is a little text file main.c: #include <stdio.h> int main(void) { #...
user avatar
4 votes
5 answers
2k views

I have a file I am compiling in C++ in which I wish to have a string whose value is the contents of a file at the time of compilation. In other words, I'd like to #include the file but have that be ...
WilliamKF's user avatar
  • 43.6k
6 votes
3 answers
2k views

So I made an application with visual 2012 that loades images and shaders (plain text). But really, I don't want people to open the images and shaders and mess around. How can I compress all this ...
marcg11's user avatar
  • 732
7 votes
1 answer
10k views

Here are the steps I took to add a text file as a resource: 1. Right click project, add New Item 2. Choose text file, click add 3. Go to project properties, configuration properties->Linker->Input->...
user3931764's user avatar
5 votes
1 answer
1k views

I would like to make a function that can print the contents of another function without breaking the functionality of the copied function. For example: int functionToCopy() { int a{ 5 }; int b{...
Z With Glasses's user avatar
2 votes
1 answer
2k views

In order to address some level of protection against reverse engineering or decompilation, I decided to move the important parts of my C# application including several xml resources into a native C++ ...
utvecklare's user avatar
3 votes
2 answers
699 views

For silly reasons, I am required to have a string with the options the compiler executable got embedded in the program I'm compiling. This can be achieved by the build system or build-system-generator,...
einpoklum's user avatar
  • 138k
0 votes
1 answer
873 views

I have multiple executable files. I want to write a program using cpp which will extract them to a specific location. Like unpacking a zip archive but i want it to be an executable and work in any ...
user avatar
0 votes
0 answers
930 views

Is there a way to embed .txt files (their text) into a binary C++ program executable? (EDIT: answered by the top comment) What I mean by that, is, I want compile some .txt files into a single ...
user avatar
0 votes
0 answers
771 views

I have created a c++ program in Visual Studio 2015 that reads in external CSV files, works on them, then produces an output. I know that in the release folder of the output directory that an .exe file ...
Joe Morgan's user avatar
-1 votes
1 answer
445 views

Ive been using the following code to start a bat script. private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) { std::wstring env = GetEnvString(); env += L"...
Jeremy Rowler's user avatar
0 votes
1 answer
411 views

I have a project written in C++ that depends on a local file. At runtime, I read that file from disk. When I build the project an .exe file is generated, but I still need that file on disk for the ...
anegru's user avatar
  • 1,133

15 30 50 per page