Not able to register a C++ executable

We have a C++ executable that is built in the release configuration. As a project requirement before running the same, it first needs to be registered using /RegServer option. And doing so, it fails and throws this application error: 'The application was unable to start correctly(0xc000007b)'
Whereas, in debug mode we can register the same successfully.
Actually, we have been facing some workflow issue with this exe when deployed to a test machine and therefore we configured this project to be able to debug in the release mode.
Please follow this link to get to know the config we did to debug in the release mode.
https://learn.microsoft.com/en-us/cpp/build/how-to-debug-a-release-build?view=msvc-170
Environment: Visual Studio 2010
Hi Sandeep Gupta,
There could be a mix of 32-bit and 64-bit of a Windows version and application. Specifically, you are trying to start an application that was designed to run on a 64-bit operating system. However, your computer is running 32-bit Windows. 32-bit applications cannot load 64-bit dlls, so confusing a 32-bit environment with a 64-bit environment can cause problems.
Hey Guys,
Thanks for your inputs.
Highly appreciate!
However, i tried with matching the bitness for all the dependent DLLs as well and no luck as yet!
All of the DLL dependencies (other than system DLLs) need to be checked. For example, if executable A depends on DLL B and DLL B depends on DLLs C & D then you need to verify bitness match for B, C and D that are being accessd at load-time.
Sign in to comment