Dave's Brain

Browse - Programming Tips - Can I use GDI Plus without MFC or ATL?

Date: 2015apr22
Language: C++
Platform: Windows

Q.  Can I use GDI Plus without MFC or ATL?
(In other words in a plain win32 application)

A.  Yes, you can.

I found I just need to add one include before to make it work without
those frameworks:

#include <unknwn.h> // Needed for non-MFC/ATL use #include <Gdiplus.h>
My version of gdiplus.h says:
/**************************************************************************\ * * Copyright (c) 1998-2000, Microsoft Corp. All Rights Reserved. * * Module Name: * * Gdiplus.h * * Abstract: * * GDI+ Native C++ public header file * \**************************************************************************/

Add a comment

Sign in to add a comment
Copyright © 2008-2018, dave - Code samples on Dave's Brain is licensed under the Creative Commons Attribution 2.5 License. However other material, including English text has all rights reserved.