I am trying to implement DLL Redirection for my 32-bit PowerBuilder desktop application (developed in R3) in below way:
- Created a application.exe.local file
- Created a new DWORD key called DevOverrideEnable at HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options and set it to 1.
Now, when I am trying to trigger the application.exe, I am getting below error on Win10:
---------------------------
Microsoft Visual C++ Runtime Library
---------------------------
Runtime Error!
Program: C:\Program Files (x86)\application_folder\application.exe
R6034
An application has made an attempt to load the C runtime library incorrectly.
Please contact the application's support team for more information.
---------------------------
OK
---------------------------
I have msvcp80.dll, msvcp100.dll, msvcr80.dll, msvcr100.dll in the application installation directory (C:\Program Files (x86)\application_folder\).
I am not clear how to get rid of this error. Can I remove the above DLLs from the application installation directory? Or is there any other way to address this issue?