阅读背景:

在不重建C ++的情况下更改常量变量

来源:互联网 

I've developed a c++ project with visual studio 2015. The output of my project is a single executable that must have a unique ID for every client and this ID must be accessible inside the code. A simple approach is to just define a constant variable inside the code and change its value for every client and build it many times but I have a Linux server and I'm not sure I can build it simply because I've used many Winapi libraries. I was thinking that maybe there is another way to change or add some constant value to the output like manipulating the executable. For example:I've developed a c++ project with visual studio




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: