# Include "stdafx. H"
# Include <winsvc. h>
The above two rowsCodeThe order is not interchangeable. Because of my carelessness, I want to put the <> above, so that the code looks pleasing to the eye, and the result is 2.5 hours delayed.
After interchange, a lot of inexplicable errors are reported due to incorrect Code call relationships, but the issue of which. cpp file is located can be located.
I searched for msdn, Google, and Baidu, but few of them showed evidence of how to solve them. It seems that an mvp on the msdn Forum gave the correct answer and couldn't remember it, but he seemed very lazy, just saying that he guessed it was the case.
Even more cool, some forums, even say that winver and so on, are really getting farther and farther away, and can get people killed.
In any case, I found the real reason, because it was a beginner who wrote an article to help others.
Technorati label: winsvc. h