Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 19:37pm
Edited 27-Apr-13 20:15pm
v4
Comments
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.
—SA
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. :-)
—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
0 OriginalGriff 400
1 Jochen Arndt 200
2 Richard MacCutchan 135
3 DamithSL 95
4 Maciej Los 95
0 OriginalGriff 6,045
1 DamithSL 4,601
2 Maciej Los 4,032
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,220


Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 28 Apr 2013
Copyright © CodeProject, 1999-2014
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