by
31 6
0
2
93
0
Specified
OpenSource
Created
Modified Nov 19, 2017
No tags for this snippet yet.
Extension.c
LanguageC
Languagecsharp
OSWindows

Console Application template windows. Main file.

Requires stdafx.h
Copy Embed Code
<iframe id="embedFrame" style="width:600px; height:300px;"
src="https://www.snip2code.com/Embed/3059538/Console-Application-template-windows--Ma?startLine=0"></iframe>
Click on the embed code to copy it into your clipboard Width Height
Leave empty to retrieve all the content Start End
#include "stdafx.h" /** * @file * @brief Program entry point. */ #pragma region Declaration /** * Program entry point. * @param [in] argc Number of arguments. * @param [in] argv Arguments. * @return 0 on success. 1 - 255 Error code. */ int main(int argc, char * argv[]); /** * Initializes a program. * @param [in] argc Number of arguments. * @param [in] argv Arguments. * @return 0 on success. 1 - 255 Error code. */ static int Init(int argc, const char * argv[]); /** * Cleans up for the program. */ static void Cleanup(void); /** * Main loop. */ static void MainLoop(void); #pragma endregion #pragma region Implementation int main(int argc, char * argv[]) { int r = Init(argc, argv); if(!r) { MainLoop(); } Cleanup(); return r; } static int Init(int argc, const char * argv[]) { UNREFERENCED_PARAMETER(argc); UNREFERENCED_PARAMETER(argv); return 0; } static void Cleanup(void) { } static void MainLoop(void) { } #pragma endregion
If you want to be updated about similar snippets, Sign in and follow our Channels

blog comments powered by Disqus