473,748 Members | 2,214 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Getting windows.h -- Where?

Hi,

I just downloaded/installed GCC from MinGW ... worked beautifully.

I downloaded a small Windows C++ source and executable example from
http://www.cplusplus.com/src/. The .exe works fine. The .cpp
#includes a windows.h header.

Is there a publicly available Win32 version of windows.h?

Thanks in advance,
Richard

Oct 27 '07 #1
8 18592
"RichardOnR uby" <Ri************ **********@USCo mputerGurus.com wrote in
message news:11******** *************@v 3g2000hsg.googl egroups.com...
Hi,

I just downloaded/installed GCC from MinGW ... worked beautifully.

I downloaded a small Windows C++ source and executable example from
http://www.cplusplus.com/src/. The .exe works fine. The .cpp
#includes a windows.h header.

Is there a publicly available Win32 version of windows.h?

windows.h includes lots of other .h files, so you need much more. Get the
free SDK here:
<http://www.microsoft.c om/downloads/details.aspx?fa milyid=0baf2b35-c656-4969-ace8-e4c0c0716adb&di splaylang=en>

--
Scott McPhillips [VC++ MVP]

Oct 27 '07 #2
On Oct 26, 8:41 pm, "Scott McPhillips [MVP]" <org-dot-mvps-at-
scottmcpwrote:
"RichardOnR uby" <RichardDummyMa ilbox58...@USCo mputerGurus.com wrote in
messagenews:11* *************** *****@v3g2000hs g.googlegroups. com...
Hi,
I just downloaded/installed GCC from MinGW ... worked beautifully.
I downloaded a small Windows C++ source and executable example from
http://www.cplusplus.com/src/. The .exe works fine. The .cpp
#includes a windows.h header.
Is there a publicly available Win32 version of windows.h?

windows.h includes lots of other .h files, so you need much more. Get the
free SDK here:
<http://www.microsoft.c om/downloads/details.aspx?fa milyid=0baf2b35-c65...>

--
Scott McPhillips [VC++ MVP]
Hi Scott,

Thanks for replying. It's nice to hear from an expert.

I'm a retried Widows applications developer (Oct. 2001), but I'm
getting the itch to start programming again. After I posted my
question, I realized I should just hunt on my system, because I've
got Visual Studio 6 installed (and VS.Net, which I never used
seriously.)

So I found the SDK, so I should be able to get it working with GCC. I
want to use the open source stuff because it fits in nicely with the
web development tools I've started to use, like the Aptane IDE,
Firefox browser, Apache Tomcat web server.

Again, thanks for announcing the proper place to find the SDK. It's
stll be useful to know in case I need an updated version.

Best wishes,
Richard

Oct 27 '07 #3
RichardOnRuby wrote:
On Oct 26, 8:41 pm, "Scott McPhillips [MVP]" <org-dot-mvps-at-
scottmcpwrote:
>"RichardOnRuby " <RichardDummyMa ilbox58...@USCo mputerGurus.com wrote in
messagenews:11 *************** ******@v3g2000h sg.googlegroups .com...
>>Hi,
I just downloaded/installed GCC from MinGW ... worked beautifully.
I downloaded a small Windows C++ source and executable example from
http://www.cplusplus.com/src/. The .exe works fine. The .cpp
#includes a windows.h header.
Is there a publicly available Win32 version of windows.h?
windows.h includes lots of other .h files, so you need much more. Get the
free SDK here:
<http://www.microsoft.c om/downloads/details.aspx?fa milyid=0baf2b35-c65...>

--
Scott McPhillips [VC++ MVP]

Hi Scott,

Thanks for replying. It's nice to hear from an expert.

I'm a retried Widows applications developer (Oct. 2001), but I'm
getting the itch to start programming again. After I posted my
question, I realized I should just hunt on my system, because I've
got Visual Studio 6 installed (and VS.Net, which I never used
seriously.)
Go with VS.Net (2003 or 2005). You don't have to use the .NET stuff,
you can write to the Win32 API, but it's a hell of a lot more compliant
to the Standard than VS6.
Oct 27 '07 #4
In article <11************ **********@22g2 000hsm.googlegr oups.com>, RichardOnRuby <Ri************ **********@USCo mputerGurus.com wrote:
>On Oct 26, 8:41 pm, "Scott McPhillips [MVP]" <org-dot-mvps-at-
scottmcpwrot e:
>"RichardOnRuby " <RichardDummyMa ilbox58...@USCo mputerGurus.com wrote in
messagenews:11 *************** ******@v3g2000h sg.googlegroups .com...
Hi,
I just downloaded/installed GCC from MinGW ... worked beautifully.
If you need windows.h, get ready.
You'd have to get a truckload of stuff and switch to
microsux development environment. Else you'll be battling
all sorts of things till your nose goes blue.

--
The most powerful Usenet tool you have ever heard of.
NewsMaestro v. 4.0.4 has been released.

Job list improvements for new installations having no jobs
to begin with.

In some previous releases some class files were missing.
As a result, the program would not run.
Sorry for the inconvenience.

Multi-job support and other important feature additions
and various improvements and optimizations.

Web page:
http://newsmaestro.sourceforge.net/

Download page:
http://newsmaestro.sourceforge.net/D...nformation.htm

Send any feedback to ne************* @mail.ru.
Your personal info will not be released and your privacy
will be honored.
Oct 27 '07 #5
On Oct 27, 6:30 am, alm...@brothers .orgy (Almond) wrote:
In article
<1193451981.030 576.114...@22g2 000hsm.googlegr oups.com>,
RichardOnRuby <RichardDummyMa ilbox58...@USCo mputerGurus.com >
wrote:
If you need windows.h, get ready.
You'd have to get a truckload of stuff and switch to
microsux development environment. Else you'll be battling
all sorts of things till your nose goes blue.
That's not been my experience. I need windows.h in the system
specific parts of the environment, and I've had no problems with
it. It means an extra /I option to the compiler, and an extra
library to specify to the linker, and that's all.

Of course, for Windows, I usually do use the Microsoft compiler;
it's one of the better compilers around. (Comeau, obviously, is
considerably better. G++ may be slightly better for the
compiler, but I find the VC++ standard library slightly better
than that of g++. Both are, however, very good.) And I have
no problem using VC++ from UWin or MSys---both very good
development environments for those more used to a Unix
environment. I almost always invoke VC++ from GNU make, for
example (and my makefiles work anywhere GNU make and the usual
Unix tools are installed---including under Windows).

--
James Kanze (GABI Software) email:ja******* **@gmail.com
Conseils en informatique orientée objet/
Beratung in objektorientier ter Datenverarbeitu ng
9 place Sémard, 78210 St.-Cyr-l'École, France, +33 (0)1 30 23 00 34

Oct 27 '07 #6
On Fri, 26 Oct 2007 17:16:31 -0700, RichardOnRuby wrote:
>I just downloaded/installed GCC from MinGW ... worked beautifully.
[..]
>Is there a publicly available Win32 version of windows.h?
It's included in MinGW.
--
Roland Pibinger
"The best software is simple, elegant, and full of drama" - Grady Booch
Oct 27 '07 #7
Roland Pibinger wrote:
On Fri, 26 Oct 2007 17:16:31 -0700, RichardOnRuby wrote:
>I just downloaded/installed GCC from MinGW ... worked beautifully.
[..] Is there a publicly available Win32 version of windows.h?

It's included in MinGW.
If it isn't, Microsoft SDK is avialable for download from their
web site, IIRC.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Oct 27 '07 #8
On Oct 27, 1:01 pm, "Victor Bazarov" <v.Abaza...@com Acast.netwrote:
Roland Pibinger wrote:
On Fri, 26 Oct 2007 17:16:31 -0700, RichardOnRuby wrote:
I just downloaded/installed GCC from MinGW ... worked beautifully.
[..] Is there a publicly available Win32 version of windows.h?
It's included in MinGW.

If it isn't, Microsoft SDK is avialable for download from their
web site, IIRC.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Hi Roland,
It's included in MinGW.
You're so right.

I downloaded WinTut.x. x=cpp, h, exe from somewhere. The exe ran
fine, and I presume it was compiled from the cpp/h. But MinGW's g++
barfed immediately on LRESULT. I leaped to the conclusion that
windows.H was missing. My mistake.

I looked at the MinGW's windows.h. Sure enough, LRESULT isn't defined
in it. Moreover, it's only a fraction of the windows.h that I
remember.

Another responder suggested that what I really need in platform.sdk.
I've got:
Program Files\Microsoft Visual Studio .NET\Vc7\Platfo rmSDK
which includes bin, lib and include subdirectories. But the latter
includes WindowsX.h but not windows.h.

Another responder said I need more than mere windows.h. Sounds like I
really need the platform.sdk that I used to have when I had Visual
Studio 6 installed. I think that VS.Net wrecked VS6, but I can
reinstall it.

But I'd be left with the question of how to integrate platform.sdk
from VS6 into MinGW.

Amy ideas. Meanwhile, I'm going to check out the other responses on
this thread.

Again, thanks for your response.
--
Richard

Oct 28 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2161
by: James | last post by:
I can get the windows version number from System.Environment.OSVersion e.g. "Windows NT 5.1.2600.0" for XP SP2. I was wondering whether this tells you the type of windows it is or if you have to use something else? E.g. for windows 2000 do you just get a version number, or can you tell if it is Professional, Server, Advanced Server, Datacenter Server.
5
8139
by: Mike Turco | last post by:
(This was also posted to comp.database.ms-access before I realized this was the hep group.) Lets say that my WinXP computer has two users: Michael and Kathryn. One or the other logs into the computer and opens up an Access database (I happen to be using 2002). There is no security on the database -- just click on the shortcut and you're in. I want to be able to determine who opened that database by knowing who logged into the computer.
3
3227
by: Lex | last post by:
Is there a way in C# to get the windows/media drive/location? I looked in the SpecialFolder enum but saw nothing helpful. Regards
1
1211
by: lltaylor | last post by:
Hello, Does anyone know if windows controls can interact with web controls or vice versa. For example, I would like to have a web page with a Windows Tree Control embedded, and use that windows control to navigate around the web application and interact with other web controls. I know there is a web tree control available, however I was just
8
2959
by: Jonathan Dixon | last post by:
I am developing an intranet and was wondering, when a user logs on is there a way to get the username of the windows account in asp.net. I have tried the following but they return the worker process username e.g DOMAIN\ASPNET Can somone suggest a way or provide some code the get the username of the logged on account in windows Thanks
2
1494
by: Evan Basalik | last post by:
I have an ASP.NET application which uses forms authentication. For some reason, after someone logs in, they get a Windows logon dialog whenever they try to access any ASPX files in the forms-protected directory. I am inferring this from the fact that the last entry in the IIS log is the ASPX file in that directory. The really odd thing is that I have another ASP.NET application on the same server with the same exact setup (at least as...
1
1447
by: Zubair.NET! | last post by:
Hi, I am in a situation where I need to upload different File Types in an application, and based on their MIME-Type, I need to show their respective icons. The question is: Does anyone know how to read Windows Icons (.ico) from ASP.NET based on their MIME-Type and convert them to (.gif) I need a urgent answer to this. Thanks in anticipation!
8
12562
by: tiijnar | last post by:
Hi, To get windows username Im using the following code. public class GetWindowUsername { public String getUser() { String userName = System.getProperty("user.name"); System.out.println("Window's Username: "+userName); return userName; }
1
2032
by: onur karabulut | last post by:
Hi, I have a simple question for you guys. In my WinForms app, I'm using WndProc to trap certain Windows messages. I sometimes need to block the Main UI-Thread (waiting for a worker thread or a modal dialog box to close). WndProc stops working once that happens. Is there a way to keep getting Windows messages while the UI-thread is suspended? Thanks.
0
8991
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9249
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.