Click here to Skip to main content
15,886,199 members
Articles / Programming Languages / C++

Writing Win32 Apps with C++: V2 - part 1

Rate me:
Please Sign up or sign in to vote.
4.70/5 (34 votes)
20 Jun 2005CPOL14 min read 107.7K   1.2K   73  
An independent framework to handle Win32 objects inside C++ classes.
//STDX1/stdafx.h
//	precompiler header to include in the precompiler header of projects using this project

#pragma once

//gererally used files
#include <stdio.h>
#include <tchar.h>

//Global symbols
#ifndef interface
#define interface struct
#endif

#ifndef ASSERT
#include <stdlib.h>
#include <crtdbg.h>
#define ASSERT _ASSERTE
#ifdef _DEBUG
#define VERIFY(f) ASSERT(f)
#else
#define VERIFY(f) f
#endif
#endif

//some STL headers

#include <functional>
#include <utility>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <deque>
#include <stack>
#include <queue>
#include <bitset>

//WIN32 header
#include <windows.h>  //only macro flags are in Global namespace

//STDX1 always used headers

#include "Trace.h"	//debug tracing ...
#include "utils.h"	//common utilities
#include "wrp.h" //refcountable objects
#include "events.h" //events and syncs 
#include "winmain.h" //winmain stuffs
#include "winstring.h" //unmutable shared and string memory manager
#include "wndw.h" //HWND hook
#include "wndmsg.h" //message crackers
#include "coords.h" //coordinates
#include "gdix.h" //GDI element wrappers
#include "resread.h" //resource data reading






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 Code Project Open License (CPOL)


Written By
Architect
Italy Italy
Born and living in Milan (Italy), I'm an engineer in electronics actually working in the ICT department of an important oil/gas & energy company as responsible for planning and engineering of ICT infrastructures.
Interested in programming since the '70s, today I still define architectures for the ICT, deploying dedicated specific client application for engineering purposes, working with C++, MFC, STL, and recently also C# and D.

Comments and Discussions