For compiling 7-Zip.dll/7-Zipn.dll with Microsoft
Visual C++ .NET 2003 you have to modify StdAfx.h (from
4.15 beta) as follows. Be aware that your program will
need MSVCP71.DLL (multithreaded Standard C++ Library
dll) to run. No more LNK2001/LNK2019 errors at compile
time.
// StdAfx.h
#ifndef __STDAFX_H
#define __STDAFX_H
#define _WIN32_WINNT 0x0400
// it's hack for Windows NT supporting
#define WINVER 0x0400
// #define _WIN32_IE 0x0500
#include <windows.h>
#include <CommCtrl.h>
#include <shlobj.h>
#include <tchar.h>
#include <stddef.h>
#include <string.h>
#include <mbstring.h>
#include <wchar.h>
#define _ATL_APARTMENT_THREADED
#define _ATL_NO_UUIDOF
#include <atlbase.h>
extern CComModule _Module;
#include <atlcom.h>
#include <shlguid.h>
#include <regstr.h>
#if _MSC_VER < 1300
#undef _MT
#endif
#include <vector>
#if _MSC_VER < 1300
#define _MT
#endif
#endif