Connecting Tech Pros Worldwide Help | Site Map

Windows Data Types

  #1  
Old April 22nd, 2007, 12:35 PM
WELCOME ###
Guest
 
Posts: n/a
From Beginner :
With Visual C++, there're 3 ways to create Windows Applications. One of
these is by using Windows API (Application Program Interface). Also Windows
Data Types are used to specify functions parameter types and return types in
windows API.
Windows Data Types are many as : HANDLE, HBRUSH, LPHANDLE ... etc
Now all the types used by windows are contained in a header file "window.h
".So we must include this header
file when we put our window program together.
The Question is : How can I get this header file???
Please can any body wants to help?
Thanks.
=================================


  #2  
Old April 22nd, 2007, 01:05 PM
bohemistanbul
Guest
 
Posts: n/a

re: Windows Data Types


On Apr 22, 2:24 pm, "WELCOME ###" <f...@alphalink.com.auwrote:
Quote:
From Beginner :
With Visual C++, there're 3 ways to create Windows Applications. One of
these is by using Windows API (Application Program Interface). Also Windows
Data Types are used to specify functions parameter types and return types in
windows API.
Windows Data Types are many as : HANDLE, HBRUSH, LPHANDLE ... etc
Now all the types used by windows are contained in a header file "window.h
".So we must include this header
file when we put our window program together.
The Question is : How can I get this header file???
Please can any body wants to help?
Thanks.
=================================
just simply add this line to your program,

#include <windows.h>

I use Visual C++ 2005, and I tried that, that works.


  #3  
Old April 22nd, 2007, 02:15 PM
=?ISO-8859-1?Q?Erik_Wikstr=F6m?=
Guest
 
Posts: n/a

re: Windows Data Types


On 2007-04-22 13:24, WELCOME ### wrote:
Quote:
From Beginner :
With Visual C++, there're 3 ways to create Windows Applications. One of
these is by using Windows API (Application Program Interface).
Are you sure you want to use this API, it's kind of a dying API, MS is
trying to more over to the .Net framework and if you are just starting
to learn you might want to go for that (unless you have any specific
reason to use Win32).
Quote:
Also Windows Data Types are used to specify functions parameter types
and return types in windows API.
Windows Data Types are many as : HANDLE, HBRUSH, LPHANDLE ... etc Now
all the types used by windows are contained in a header file "window.h".
So we must include this header file when we put our window program
together. The Question is : How can I get this header file???
I'm not sure that bohemistanbul's advice works unless you have the MS
Platform SDK installed, but even if it does you might want to download
and install it since it contains a lot of useful documentation and examples.

By the way, these kinds of questions (which are concerned with platform
specific topics) are off topic here and are better answered elsewhere
(like the microsoft.public.win32.programmer.* groups), however if you
have any questions regarding C++ programming in general this is the
place to ask.

--
Erik Wikström
  #4  
Old April 22nd, 2007, 04:15 PM
Siddhartha Gandhi
Guest
 
Posts: n/a

re: Windows Data Types


On Apr 22, 9:12 am, Erik Wikström <Erik-wikst...@telia.comwrote:
Quote:
On 2007-04-22 13:24, WELCOME ### wrote:
>
Quote:
From Beginner :
With Visual C++, there're 3 ways to create Windows Applications. One of
these is by using Windows API (Application Program Interface).
>
Are you sure you want to use this API, it's kind of a dying API, MS is
trying to more over to the .Net framework and if you are just starting
to learn you might want to go for that (unless you have any specific
reason to use Win32).
>
Quote:
Also Windows Data Types are used to specify functions parameter types
and return types in windows API.
Windows Data Types are many as : HANDLE, HBRUSH, LPHANDLE ... etc Now
all the types used by windows are contained in a header file "window.h".
>
Quote:
So we must include this header file when we put our window program
>
Quote:
together. The Question is : How can I get this header file???
>
I'm not sure that bohemistanbul's advice works unless you have the MS
Platform SDK installed, but even if it does you might want to download
and install it since it contains a lot of useful documentation and examples.
>
By the way, these kinds of questions (which are concerned with platform
specific topics) are off topic here and are better answered elsewhere
(like the microsoft.public.win32.programmer.* groups), however if you
have any questions regarding C++ programming in general this is the
place to ask.
>
--
Erik Wikström
Yepp, you're right, It will not work unless you download the MS
Platform SDK, which is separate.

Closed Thread


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windos Data Types WELCOME ### answers 1 April 22nd, 2007 02:35 PM
Where can we get a complete list of VC++ data types? mshetty@mail.com answers 4 October 4th, 2006 09:45 AM
linux compatible c datatypes for vc++ data types on windows ramu answers 8 February 21st, 2006 09:45 AM
equivalent c data types for vc++ data types ramu answers 2 February 20th, 2006 09:45 AM