Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old April 22nd, 2007, 12:35 PM
WELCOME ###
Guest
 
Posts: n/a
Default Windows Data Types

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
Default 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
Default 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
Default 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.

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles