API connection on Windows 7/8
Posted by Mohammad Rahhal, Last modified by Diana Alkouni on 27 August 2020 12:38 PM
|
|
To bypass the Data Execution Prevention (DEP) asking to be turned off when connecting a .NET application with any ActiveX API at windows 7/8 and above, which is not good because it is a security breach and it became difficult to do this each time for each plug-in since almost everyone has Windows 7 and above now. The developers must run the below script on any EXE released from .NET that uses VertexFX ActiveX API. This script must run from the Visual Studio Command Prompt. The next steps will show you how to run the VS Command Prompt: A- In windows 8.1
B- In Windows 8
C- In Windows 7
After you run the VS Command Prompt, run the below command link: editbin.exe /nxcompat:no "c:\path\to\exe\file.exe" * Note that you must change the path to your EXE's path. After that, this EXE will be compatible with all versions of Windows without the need to do anything on the end-users machines. This EXE (which you ran the script on it) must be packaged and delivered to the end-users.
Related Topics: | |
|