Tag Archives: 【Tools/VSCode/XCode】

Post build event after VC generation

Requirement: Maybe we need to release a version to the artist, so we need *.exe, *.dll and resources all in one folder and then synchronize them to the artist
Problem: The.exe generated directory may not match the resource directory, so you can’t manually copy the generated.exe and DLL to the resource directory every time you compile the project

Solution: Use the build post batch command that comes with Visual Studio
visual studio-> Right-click project ->; properties-> Build Events-> Post-Build Event-> Under the Command Line

Xcopy $(OutDir) $(TargetFileName) $(ProjectDir.). \Resources
\/Y

This imperative function copies the exe files in the build directory to the Resources folder one level above the project directory

Note:

$outDir = $outDir = $outDir = $outDir

2. Generate post-event xcopy is simply running a console command, so
Command does not support ‘/’

Like an error command written earlier

Xcopy $(OutDir) $(TargetFileName) $(ProjectDir.).
/ Resources \/Y

Runtime will prompt an error

3. “/Y” is a parameter, indicating that there is the same file to replace

You can also copy the entire folder

Xcopy “$(ProjectDir) controls,” “$(TargetDir).. \ app1 \ controls “/ y/I/e/exclude: CodeFilesToExclude. TXT

For specific parameters, refer to the CMD console to see the specific function of xcopy…

Synergy 1.4.12 “ipc connection error, connection refused” and other issues

You have encountered the same problems with installing the latest version of Synergy 1.4.12 as I did. If you have encountered the same problems as I did, I hope you can take less detour

Installation steps and tutorials, a search on the Internet without saying a few points need to pay attention to the problem

1. I suggest you download the latest version of Synergy, because the operation of the latest version has been greatly simplified and many bugs have been solved

2. The two versions should be consistent. If they are not consistent, all kinds of weird problems will occur

Example: Your server has 64-bit Synergy installed while your client has 32-bit Synergy installed

3
.”ipc connection error, connection refused”

“Failed to connect to Server: Protocol Error from Server “error prompt

I encountered a situation that worked the first time it was configured, but didn’t work the next day when it was restarted. The client kept reporting this error when connecting

My configuration environment: My server synergys is MAC and my Synergyc is WIN7

The reason was that I used syner1.4.10 version of synergy1.4.10 inexplicably after synergy1.4.10 was installed before and restarted. The server and client versions failed to match, so I kept reporting this error

Solution: Delete synergy from previous releases completely, and don’t be distracted

4. The inconsistency between the protocols of the Server and the Client will also result in the problems described above. For example, the Client chooses the “encryption protocol”, while the Server chooses other protocols, which can be seen in the configuration

If you have any questions, please leave a message to discuss