a question about atltypes.h

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Nov 2008
Posts: 2
Reputation: Quendy is an unknown quantity at this point 
Solved Threads: 0
Quendy Quendy is offline Offline
Newbie Poster

a question about atltypes.h

 
0
  #1
Nov 20th, 2008
Here is my code, I want to get the coordinate of the mouse position:
  1. #include <iostream>
  2. #include <string>
  3. //#include "WinDef.h"
  4. //#include "stdafx.h"
  5. #include <windowsx.h>
  6. #include <windows.h>
  7. #include <atltypes.h>
  8.  
  9. using namespace std;
  10.  
  11. int main() {
  12. DWORD pos = GetMessagePos();
  13. CPoint pt(LOWORD(pos), HIWORD(pos));
  14. ScreenToClient(&pt);
  15. return 0;
  16. }
But I could get it compiled through, below is the error information I got:

c:\documents and settings\yayang\my documents\visual studio 2008\projects\test2\test2\yyh2.cpp(7) : fatal error C1083: Cannot open include file: 'atltypes.h': No such file or directory

Does anyone help me? I am new to C++. Thanks!
Last edited by Narue; Nov 20th, 2008 at 3:24 pm. Reason: added code tags
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 1,678
Reputation: vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold 
Solved Threads: 193
vmanes's Avatar
vmanes vmanes is offline Offline
Posting Virtuoso

Re: a question about atltypes.h

 
0
  #2
Nov 20th, 2008
Which compiler are you using? VC++ Express versions don't have the MFC or ATL components.
"We Americans got so tired of being thought of as dumb by the rest of the world that we went to the polls last November and removed all doubt."
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
Reply With Quote Quick reply to this message  
Join Date: Nov 2008
Posts: 2
Reputation: Quendy is an unknown quantity at this point 
Solved Threads: 0
Quendy Quendy is offline Offline
Newbie Poster

Re: a question about atltypes.h

 
0
  #3
Nov 20th, 2008
Yes, it is VC++ express version. Then what header file I need to add under this version for solving this problem?

Thanks!
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 1,678
Reputation: vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold vmanes is a splendid one to behold 
Solved Threads: 193
vmanes's Avatar
vmanes vmanes is offline Offline
Posting Virtuoso

Re: a question about atltypes.h

 
0
  #4
Nov 20th, 2008
I think you'll have to move up to a full version of Visual Studio (Standard or higher).

If you're a university student, see if your school participates in the Microsoft Developer Network Academic Alliance (MSDNAA).
"We Americans got so tired of being thought of as dumb by the rest of the world that we went to the polls last November and removed all doubt."
~~~~~~~~~~~~~~~~~~
Looking for an exciting graduate degree? Robotics and Intelligent Autonomous Systems (RIAS) at SDSM&T See the program brochure here.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC