Click here to Skip to main content
12,950,184 members (47,274 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
v4
Comments
   
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.
—SA
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. :-)
—SA
Rate this: bad
 
good
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
  Permalink  
Rate this: bad
 
good
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.
  Permalink  

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
OriginalGriff 5,829
CHill60 3,460
Maciej Los 2,953
Jochen Arndt 1,975
ppolymorphe 1,820


Advertise | Privacy | Mobile
Web02 | 2.8.170525.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