Gold mine of Visual C++ tricks!
Embed a copyright notice in EXE
![]()
You can embed any strings in your exe or dlls.
1) It can be used for copyright messages etc…
2) It can be used in Export DLL header files to know which version of DLL is linked in the exe.
Apply your imagination for more usages…
![]()
Use the #pragma directive. See the usage below.
#pragma comment(exestr, "This is my Exe. Don't copy it away!");
#pragma comment(exestr, "GraphicLibrary Version 1.01.");
![]()
Open the exe in textpad for seeing the data. Opening in notepad will not work.
| Print article | This entry was posted by Jijo Raj on March 24, 2008 at 8:56 am, and is filed under Codeproject, Uncategorized. Follow any responses to this post through RSS 2.0. You can leave a response or trackback from your own site. |









