By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,101 Members | 1,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,101 IT Pros & Developers. It's quick & easy.

ServProv.h problem for first time Win32 API user

P: 1
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?

'Chops
Aug 7 '07 #1
Share this Question
Share on Google+
1 Reply


weaknessforcats
Expert Mod 5K+
P: 9,197
Create a Win32 Console Application project in Visual Studio.NET.

You are missing some #defines, some header files and some compiler flag settings.
Aug 8 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.