Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.

ServProv.h problem for first time Win32 API user

Skip to first unread message


Aug 7, 2007, 2:20:02 PM8/7/07
Hello chaps.

I decided to have a go at using the Win API. Long time C++ coder, first
time coding the Win API. I banged out some lines.

#include <windows.h>

int main (void)

return 0;

Result: No dice. An error tucked away in ServProv.h, apparently. Seemed
odd, so I wrote this:

#include <ServProv.h>

int main (void)

return 0;

Same errors;

c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\ServProv.h(113): warning C4094: untagged
'struct' declared no symbols
c:\Program Files\Microsoft Visual Studio .NET
2003\Vc7\PlatformSDK\Include\ServProv.h(106): error C2283:
'__unnamed::QueryService' : pure specifier not allowed on unnamed struct

Since I'm doing nothing other than including a standard header file, I
must be really, REALLY missing the point here. Could someone please
enlighten me as to what I'm doing wrong?



Jan 24, 2008, 4:30:00 PM1/24/08
There are many who do not believe
solely from wickedness. Few are between the two.

In this I do not include those who are of truly pious character, nor all
those who believe from a feeling in their heart.

257. There are only three kinds of persons; those who serve God, having
found Him; others who are occupied in seeking Him, not having found Him;
while the remainder live without seeking Him and without having found Him.
The first are reasonable and happy, the last are foolish and unhappy; those
between are unhappy and reasonable.

258. Unusquisque sibi Deum fingit.[37]


259. Ordinary people have the power of not thinking of that about which they
do not wish to think. "Do not meditate on the passages about the Messiah,
said the Jew to his son. Thus our people often act. Thus are false religions
preserved, and even the true one, in regard to many persons.

But there are some who have not the power of thus preventing thought, and
who think so much the more as they are forbidden. These undo false religions
and even the true one, if they do not find solid arguments.

260. They hide themselves in the press and call numbers to their rescue.

Authority.--So far from making it a rule to believe a thing because you have
heard it, you ought to believe nothing without putting yourself into the
position as if you had never heard it.

It is your own assent to you

0 new messages