Click here to Skip to main content
15,860,943 members
Articles / Programming Languages / Visual C++ 10.0

Linq-To-XML Style of Node Creation for C++

Rate me:
Please Sign up or sign in to vote.
4.78/5 (14 votes)
12 Apr 2016Ms-PL11 min read 43.3K   500   29  
Linq-To-XML Node Creation for Native C++
// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently
//

#pragma once


#if _MSC_VER >= 1600
	#include "targetver.h"
#endif

#define WIN32_LEAN_AND_MEAN             // Exclude rarely-used stuff from Windows headers

#define _CRTDBG_MAP_ALLOC

#include <atlstr.h>
#include <atlenc.h>

#import <msxml6.dll>
using namespace MSXML2; 

#include <iostream>
#include <vector>
#include <string>
#include <map>
#include <cfloat>
#include <Strsafe.h>
#include <Shlwapi.h>

#pragma comment(lib, "Shlwapi.lib")

#ifndef _HAS_CPP0X
	#define _HAS_CPP0X 0
#endif

#if _MSC_VER <= 1400
	#define ELMAX_USE_BOOST_REGEX
#endif

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 Microsoft Public License (Ms-PL)


Written By
Software Developer (Senior)
Singapore Singapore
Shao Voon is from Singapore. His interest lies primarily in computer graphics, software optimization, concurrency, security, and Agile methodologies.

In recent years, he shifted focus to software safety research. His hobby is writing a free C++ DirectX photo slideshow application which can be viewed here.

Comments and Discussions