Troubleshoot:Error 1053 when starting a service compiled using Windows (/SUBSYSTEM:WINDOWS)

Error 1053 when starting a service compiled using Windows (/SUBSYSTEM:WINDOWS)

I am writing a windows service for my app, I used a code sample from msdn "A basic Windows service in C++ (CppWindowsService)"
It works nicely, but when I changed the Project properties->Linker->System->Subsystem  from Console (/SUBSYSTEM:CONSOLE) to Windows (/SUBSYSTEM:WINDOWS) and add Preprocessor _WINDOWS, I got error 1053 when starting the service.
I did these because I wanted
to integrate the service to my msi installer and call the "-install" and "-remove" via custom action and I dont need the console window for it.
Any idea how can I do it?
Thanks in advance.

Solutions to the Problem Error 1053 when starting a service compiled using Windows (/SUBSYSTEM:WINDOWS)

Download SmartPCFixer to Fix It (Free)

Manually editing the Windows registry

Caution: Unless you an advanced PC user, please do not edit the Windows registry manually.

Because of this risk, we highly recommend using a trusted registry cleaner such as SmartPCFixer Using a registry cleaner automates the process of finding invalid registry entries, missing file references (like the one causing your MACHINE_CHECK_EXCEPTION error), and broken links within the registry. A backup is automatically created before each scan, with the ability to undo any changes in a single click, protecting you against the possibility of PC damage. The best part is that repairing registry errors can also dramatically improve system speed and performance.

  • Click the Start button.
  • Type "command" in the search box... DO NOT hit ENTER yet!
  • While holding CTRL-Shift on your keyboard, hit ENTER.
  • You will be prompted with a permission dialog box.
  • Click Yes.
  • A black box will open with a blinking cursor.
  • Type "regedit" and hit ENTER.
  • In the Registry Editor, select the Error 0x9C-related key (eg. Windows Operating System) you want to back up.
  • From the File menu, choose Export.
  • In the Save In list, select the folder where you want to save the Windows Operating System backup key.
  • In the File Name box, type a name for your backup file, such as "Windows Operating System Backup".
  • In the Export Range box, be sure that "Selected branch" is selected.
  • Click Save.
  • The file is then saved with a .reg file extension.
  • You now have a backup of your MACHINE_CHECK_EXCEPTION-related registry entry.

The next steps in manually editing your registry will not be discussed in this article due to the high risk of damaging your system. If you would like to learn more about manual registry editing, please see the links below.

Recommended Method to Fix the Problem: Error 1053 when starting a service compiled using Windows (/SUBSYSTEM:WINDOWS):

How to Fix Error 1053 when starting a service compiled using Windows (/SUBSYSTEM:WINDOWS) with SmartPCFixer?

1. Download Error Fixer. Install it on your computer.

2. After the scan is done, you can see the errors and problems need to be repaired. Click Fix All.

3. The Repair part is finished, the speed of your computer will be much higher than before and the errors have been removed. You can also use other functions in SmartPCFixer. Like dll downloading, junk file cleaning and print spooler error repair.

Related: Download SONY SVE1512H1RB Synaptics PS/2 Port ClickPad driver,Method to Download SONY VGC-LT10E SigmaTel Audio Driver Update v.6.10.5614.0,Way to Download SONY VGN-CS118E/R AV Mode Button Utility v. driver,Method to Download SONY VGN-FW375J/B Alps Pointing Device Driver v.,Where to Download SONY VGN-NS270J/S Pioneer BD-ROM BDC-TD01 Firmware Update v.1.03,Data Export From Quickbooks To Excel,Date Format In Formula Bar And In The Cell Is Not The Same,Deleted The Snipping Tool,Desktop - Open Program Issues,Desktop Windows Manager Keeps Poping Up & It Reads That There Is A Problem & That Windows Will Check It Out & Send Me An Answer .
Read More: [Solved] Error (0x80070002) backup an library,Troubleshoot Embedding the Password into the Microsoft Query Data Source Error,Solution to Problem: Error 0xc000000f. Can't get beyond this point.,Troubleshoot:Envelopes and Labels,[Solution] error 2 "related file cannot be found" Superfetch,does anyone know what the dialog means "System.Media.FontFamily' threw an exception windows is checking for a solution?,Does Log Me In Ignition for my Android with Windows 7 Home Premium?,Download failure for my Blackberry and the process stops during the install,Display settings keep changing when I come back from sleep mode,Downloaded files are not saved
by Nss3Dll | 2016-10-11 15:43