Home > Back-end >  BCB is unable to compile the code in memory
BCB is unable to compile the code in memory

Time:09-23

On the SVN server requires encryption code, don't want to be the code in a colleague's PC, but want to compiled into a DLL to use for everyone,
Access to the data from the SVN within a memory address, BCB to compile?

The current approach is to write a tool from the SVN access to the data saved into a CPP file to compile, although you can set the file attributes is not Shared, but when I command-line compiler, or handle to release the file, and then call to make. Exe to read the file, this practice have a chance to source failed to delete,
If can directly compiled data memory, do not generate temporary files, you can avoid this problem, the BCB can do?

Or, before I download save into the CPP file to the code data encryption, BCB can for the encrypted file, at compile time, run my decryption process, then send the data to BCC32,

Have this kind of encryption example? Or have other encryption approach?

Thank you

CodePudding user response:

Alone to get a machine in the compiled DLL to submit to SVN

CodePudding user response:

reference 1st floor akirya response:
alone make a machine in the compiled DLL to submit to SVN


This plan need to add a PC, increasing cost,
Have a check on the net, have similar practices, for file encryption, but compile time, other useful tool to compile the encrypted files, process must be decrypted,
Just don't know what to do,
I here also generates a temporary file, you'd better, if I can not let the user see have a method to generate temporary files to find, but the only gave a handle, there is no path, BCB to compile only the handle avoided path

CodePudding user response:

refer to the second floor redghy119 response:
Quote: refer to 1st floor akirya response:

Alone make a machine in the compiled DLL to submit to SVN


This plan need to add a PC, increasing cost,
Have a check on the net, have similar practices, for file encryption, but compile time, other useful tool to compile the encrypted files, process must be decrypted,
Just don't know what to do,
I here also generates a temporary file, you'd better, if I can not let the user see have a method to generate temporary files to find, but the only gave a handle, there is no path, BCB have any way to compile only the handle avoided path

Increases the cost of a PC is not high, only compiled,

Is the simplest way to crack, modify the compiler options, let the compiler output code after pretreatment,
Adopt private compiler can do, of course, of course, also have to avoid the original code in memory, so that the development cost is greater than the increase the cost of a PC,
  • Related