Click here to Skip to main content
Click here to Skip to main content
 
Add your own
alternative version
Go to top

Full getopt Port for Unicode and Multibyte Microsoft Visual C, C++, or MFC Projects

, 15 Oct 2012
Supports getopt, getopt_long, and getopt_long_only and POSIXLY_CORRECT environment flag
getopt_mb_uni_mfc_vc6.zip
getopt_mb_uni_mfc_vc6
getopt_mb_uni_mfc_vc6.dsw
getopt_mb_uni_mfc_vc6
getopt_mb_uni_mfc_vc6.clw
getopt_mb_uni_mfc_vc6.dsp
getopt_mb_uni_vc6_dll
getopt_mb_uni_vc6_dll.dsp
getopt_mb_uni_vc6_lib
getopt_mb_uni_vc6_lib.dsp
getopt_mb_uni_mfc_vc8.zip
getopt_mb_uni_mfc_vc8
getopt_mb_uni_mfc_vc8
getopt_mb_uni_vc8_dll
getopt_mb_uni_mfc_vc9.zip
getopt_mb_uni_mfc_vc9
getopt_mb_uni_mfc_vc9
getopt_mb_uni_vc9_dll
getopt_mb_uni_src.zip
getopt_mb_uni_vc10.zip
getopt_mb_uni_vc10
getopt_mb_uni_vc10
getopt_mb_uni_vc10.vcxproj.filters
getopt_mb_uni_vc10_dll
getopt_mb_uni_vc10_dll.vcxproj.filters
getopt_mb_uni_vc6.zip
getopt_mb_uni_vc6
getopt_mb_uni_vc6.dsw
getopt_mb_uni_vc6
getopt_mb_uni_vc6.dsp
getopt_mb_uni_vc6_dll
getopt_mb_uni_vc6_dll.dsp
getopt_mb_uni_vc6_lib
getopt_mb_uni_vc6_lib.dsp
getopt_mb_uni_vc8.zip
getopt_mb_uni_vc8
getopt_mb_uni_vc8
getopt_mb_uni_vc8_dll
getopt_mb_uni_vc9.zip
getopt_mb_uni_vc9
getopt_mb_uni_vc9
getopt_mb_uni_vc9_dll
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once

#define _CRT_SECURE_NO_DEPRECATE

// Modify the following defines if you have to target a platform prior to the ones specified below.
// Refer to MSDN for the latest info on corresponding values for different platforms.
#ifndef WINVER				// Allow use of features specific to Windows XP or later.
#define WINVER 0x0501		// Change this to the appropriate value to target other versions of Windows.
#endif

#ifndef _WIN32_WINNT		// Allow use of features specific to Windows XP or later.                   
#define _WIN32_WINNT 0x0501	// Change this to the appropriate value to target other versions of Windows.
#endif						

#ifndef _WIN32_WINDOWS		// Allow use of features specific to Windows 98 or later.
#define _WIN32_WINDOWS 0x0410 // Change this to the appropriate value to target Windows Me or later.
#endif

#ifndef _WIN32_IE			// Allow use of features specific to IE 6.0 or later.
#define _WIN32_IE 0x0600	// Change this to the appropriate value to target other versions of IE.
#endif

#define WIN32_LEAN_AND_MEAN		// Exclude rarely-used stuff from Windows headers
#include <stdio.h>
#include <tchar.h>
#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS	// some CString constructors will be explicit

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN		// Exclude rarely-used stuff from Windows headers
#endif

#include <afx.h>
#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions
#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>		// MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>			// MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include <iostream>



// TODO: reference additional headers your program requires here

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.

License

This article, along with any associated source code and files, is licensed under The GNU Lesser General Public License (LGPLv3)

Share

About the Author

Ludvik Jerabek
Software Developer
United States United States
No Biography provided

| Advertise | Privacy | Mobile
Web03 | 2.8.140922.1 | Last Updated 15 Oct 2012
Article Copyright 2011 by Ludvik Jerabek
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid