Click here to Skip to main content
13,141,637 members (50,326 online)
Rate this:
Please Sign up or sign in to vote.
See more: , +
i used Rect Class in my MFC project under vs2010 like this:
Rect m_rect

and include <gdiplus.h>, but still got this error:
Error:identifier "Rect" is undifined

is there anyone who can tell me why?
Posted 27-Apr-13 18:37pm
Updated 27-Apr-13 19:15pm
The question makes no sense. You did not specify platform, language and the library you want to use. Your lack of understanding of what you need to specify tells me that you cannot use the libraries and find proper documentation. So, practically, you should not be doing what you are doing. You should get back and learn the very basics of programming, your platforms and language. Start with the very basics, I'm sure you really need that.
Autumn_Gao 28-Apr-13 1:06am
sorry, my fault, and thanks for you criticism.
i created my mfc project using vs2010 and i want to use Rect class in library gdiplus.lib
Sergey Alexandrovich Kryukov 28-Apr-13 12:32pm
Thank you for understanding, my congratulations for finding the ends. :-)
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

thank you all, i have solved it myself, just one simple mistake. i forgot to import namespace Gdiplus, when add
using namespace Gdiplus
, problem solved
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

You probably wanted to use the CRect class.

Note that all MFC class names begin with an uppercase 'C' letter.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.170915.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100