Click here to Skip to main content
15,880,469 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more: , +
i used Rect Class in my MFC project under vs2010 like this:
C++
Rect m_rect

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

is there anyone who can tell me why?
Posted
Updated 27-Apr-13 19:15pm
v4
Comments
Sergey Alexandrovich Kryukov 28-Apr-13 0:42am    
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

thank you all, i have solved it myself, just one simple mistake. i forgot to import namespace Gdiplus, when add
C++
using namespace Gdiplus
, problem solved
 
Share this answer
 
You probably wanted to use the CRect class.

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

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900