Code-Generation Setting
-
Hello All, I made an API Hook using mHook Library and successfully hooking NtSetInformationFile , I then made an DLL which loads the DLL into the process using CreateRemoteThread, It's working fine in my PC, But when checked on windows server 2003(32 bit) the application won't start and gives me the message that "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem." . Now i googled about the error and found so many answers, One of them was to check the "Code generation" setting under C/C++ property, if it is Multi-Threaded DLL (/MD) then change to Multi-Threaded (/MT) , Changing the setting works in windows server 2003, But now the problem is when i recompile my code with (/MT) the anti virus won't let me build the exe and delete the exe, I can only build and run the exe after i uninstall or stop the anti-virus. Could anyone throw some light on this problem. Thanks
-
Hello All, I made an API Hook using mHook Library and successfully hooking NtSetInformationFile , I then made an DLL which loads the DLL into the process using CreateRemoteThread, It's working fine in my PC, But when checked on windows server 2003(32 bit) the application won't start and gives me the message that "This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix the problem." . Now i googled about the error and found so many answers, One of them was to check the "Code generation" setting under C/C++ property, if it is Multi-Threaded DLL (/MD) then change to Multi-Threaded (/MT) , Changing the setting works in windows server 2003, But now the problem is when i recompile my code with (/MT) the anti virus won't let me build the exe and delete the exe, I can only build and run the exe after i uninstall or stop the anti-virus. Could anyone throw some light on this problem. Thanks
Do not change the property to multithreaded. Please follow the steps: 1) Go to Project Menu -> Properties 2) Select Configuration Properties ->general There are two properties Use of MFC :if you have "Use MFC in a Shared DLL" than change this property to "Use MFC in a Static Library". Use of ATL :if you have "Dynamic Link to ATL" than change this property to "Static Link to ATL". than check. :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
Do not change the property to multithreaded. Please follow the steps: 1) Go to Project Menu -> Properties 2) Select Configuration Properties ->general There are two properties Use of MFC :if you have "Use MFC in a Shared DLL" than change this property to "Use MFC in a Static Library". Use of ATL :if you have "Dynamic Link to ATL" than change this property to "Static Link to ATL". than check. :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
The value under "Use of ATL" is "Not Using ATL"
-
The value under "Use of ATL" is "Not Using ATL"
-
If your setting is "Not using ATL" than dont change the setting if your setting is "Dynamic Link to ATL" than change it to "Static link to ATL" and what about MFC setting.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
MFC Setting is "Use Standard Windows Libraries"
-
MFC Setting is "Use Standard Windows Libraries"
I am not sure please change the settings of "Use Standard Windows Library" to "Use MFC in a Static Library" and compile. if u receive any error of start up than update the setting of Linker Entry point and than check if it is working fine.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
I am not sure please change the settings of "Use Standard Windows Library" to "Use MFC in a Static Library" and compile. if u receive any error of start up than update the setting of Linker Entry point and than check if it is working fine.
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
I added msvcrt.lib and it's working :)
-
I added msvcrt.lib and it's working :)
-
Do not change the property to multithreaded. Please follow the steps: 1) Go to Project Menu -> Properties 2) Select Configuration Properties ->general There are two properties Use of MFC :if you have "Use MFC in a Shared DLL" than change this property to "Use MFC in a Static Library". Use of ATL :if you have "Dynamic Link to ATL" than change this property to "Static Link to ATL". than check. :)
Yes U Can ...If U Can ,Dream it , U can do it ...ICAN
-
Who me??