|
// crt0tcon.cpp
// based on:
// LIBCTINY - Matt Pietrek 2001
// MSDN Magazine, January 2001
// 08/12/06 (mv)
#include <windows.h>
#include "libct.h"
#include <stdio.h>
#pragma comment(linker, "/nodefaultlib:libc.lib")
#pragma comment(linker, "/nodefaultlib:libcmt.lib")
#pragma comment(linker, "/nodefaultlib:libcmtd.lib")
EXTERN_C int _tmain(int, TCHAR **, TCHAR **); // In user's code
#ifdef UNICODE
EXTERN_C void wmainCRTStartup()
#else
EXTERN_C void mainCRTStartup()
#endif
{
int argc = _init_args();
_initterm(__xc_a, __xc_z);
int ret = _tmain(argc, _argv, 0);
_doexit();
_term_args();
ExitProcess(ret);
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.