Click here to Skip to main content
11,805,035 members (58,334 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: Visual-Studio MFC VS2010 , +
i used Rect Class in my MFC project under vs2010 like this:
Rect m_rect
and include , but still got this error:
Error:identifier "Rect" is undifined
is there anyone who can tell me why?
Posted 27-Apr-13 18:37pm
Edited 27-Apr-13 19:15pm
Sergey Alexandrovich Kryukov at 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.
Autumn_Gao at 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 at 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
0 OriginalGriff 315
1 CPallini 210
2 Richard Deeming 200
3 Sergey Alexandrovich Kryukov 168
4 CHill60 150
0 OriginalGriff 3,255
1 Maciej Los 1,990
2 KrunalRohit 1,907
3 CPallini 1,855
4 Richard MacCutchan 1,227

Advertise | Privacy | Mobile
Web04 | 2.8.151002.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2015
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