Skip to main content
GameDev.net gamedev.net
🔒 Locked

Just Got VC++ 2005 Beta - Cannot Open Include File windows.h

Started by v0dKA Feb 26, 2005 at 9:22 PM 11 replies 14k views
Original Post
v0dKA
v0dKA
Since some DirectX samples from my book didn't work, I decided to download Visual C++ 2005 Express Beta. I copied the source code into a new project, compiled, and... what!? Can't find !? This is a really odd error if it can't find the main include file. Does anyone know what's wrong here? Worked fine in 6.0.
.:-v0d[KA]-:. <<>>
wyrzy
wyrzy
You need to download the Windows SDK files from the Microsoft site. I believe there's a link to them on the same page as where you can download VC++ 2K5 Beta Express.

Just checked. Its under the "Learn How to Program" area near the bottom. Click the link that says: "Install the Microsoft Platform SDK".
josh1billion
josh1billion
Here's a link for you.

I have the same problem, so I'm currently downloading files for the platform SDK.. The bottom one I think is for XP, the top for Server 2003.. and there aren't any for 2000 (which I'm using) so I'm hoping the XP one works.
Website (with downloads of my games)
Blog (updates on current projects)
Seeds of Time Online has returned!
v0dKA
v0dKA
Quote:
Original post by josh1billion
Here's a link for you.

I have the same problem, so I'm currently downloading files for the platform SDK.. The bottom one I think is for XP, the top for Server 2003.. and there aren't any for 2000 (which I'm using) so I'm hoping the XP one works.


Did you ever get yours to work? I have big trouble setting up mine.

I downloaded the list, ran setup. Following their instructions, I went under start->Microsoft Platform SDK for Windows XP SP2->Visual Studio Registration->Register PSDK Directories with Visual Studio. That should have done it, right?

It still couldn't find windows.h, so I manually enter in the path to the sdk as an additional include path. Now, it gives me a slew of weird errors found in the sdk itself... ugh, have a look:

C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2146: syntax error : missing ';' before identifier 'IRpcStubBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(378) : error C2079: 'IRpcStubBuffer' uses undefined struct 'IRpcStubBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2146: syntax error : missing ';' before identifier 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\ObjBase.h(379) : error C2371: 'IRpcChannelBuffer' : redefinition; different basic types        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : error C2146: syntax error : missing ';' before identifier 'IUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : error C2146: syntax error : missing ';' before identifier 'AsyncIUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : error C2146: syntax error : missing ';' before identifier 'IClassFactory'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(109) : error C2371: 'IUnknown' : redefinition; different basic types        C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(47) : see declaration of 'IUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(135) : error C2065: 'This' : undeclared identifierC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2065: '_pRpcChannelBuffer' : undeclared identifierC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(136) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2182: 'IUnknown_QueryInterface_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(137) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(138) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(145) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2182: 'IUnknown_AddRef_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(146) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(147) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(154) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2182: 'IUnknown_Release_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(155) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(156) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(285) : error C2371: 'AsyncIUnknown' : redefinition; different basic types        C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(53) : see declaration of 'AsyncIUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(396) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2182: 'AsyncIUnknown_Begin_QueryInterface_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(397) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(398) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(408) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2182: 'AsyncIUnknown_Finish_QueryInterface_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(409) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(410) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(419) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2182: 'AsyncIUnknown_Begin_AddRef_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(420) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(421) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(430) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2182: 'AsyncIUnknown_Finish_AddRef_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(431) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(432) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(441) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2182: 'AsyncIUnknown_Begin_Release_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(442) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(443) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(452) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2182: 'AsyncIUnknown_Finish_Release_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(453) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(454) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(475) : error C2371: 'IClassFactory' : redefinition; different basic types        C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(59) : see declaration of 'IClassFactory'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(559) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2182: 'IClassFactory_RemoteCreateInstance_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(560) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(561) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(571) : error C2275: 'IRpcChannelBuffer' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcNdr.h(676) : see declaration of 'IRpcChannelBuffer'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2146: syntax error : missing ')' before identifier '_pRpcMessage'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : warning C4229: anachronism used : modifiers on data are ignoredC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2182: 'IClassFactory_RemoteLockServer_Stub' : illegal use of type 'void'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2078: too many initializersC:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(572) : error C2275: 'PRPC_MESSAGE' : illegal use of this type as an expression        C:\Program Files\Microsoft SDK XPSP2\Include\RpcDceP.h(51) : see declaration of 'PRPC_MESSAGE'C:\Program Files\Microsoft SDK XPSP2\Include\Unknwn.h(573) : error C2059: syntax error : ')'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : error C2146: syntax error : missing ';' before identifier 'IMarshal'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(47) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : error C2146: syntax error : missing ';' before identifier 'IMarshal2'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(53) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : error C2146: syntax error : missing ';' before identifier 'IMalloc'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(59) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : error C2146: syntax error : missing ';' before identifier 'IMallocSpy'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(65) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : error C2146: syntax error : missing ';' before identifier 'IStdMarshalInfo'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(71) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : error C2146: syntax error : missing ';' before identifier 'IExternalConnection'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(77) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : error C2146: syntax error : missing ';' before identifier 'IMultiQI'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(83) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : error C2146: syntax error : missing ';' before identifier 'AsyncIMultiQI'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(89) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : error C2146: syntax error : missing ';' before identifier 'IInternalUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(95) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : error C2146: syntax error : missing ';' before identifier 'IEnumUnknown'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(101) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : error C2146: syntax error : missing ';' before identifier 'IBindCtx'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(107) : warning C4091: '' : ignored on left of 'interface' when no variable is declaredC:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : error C2146: syntax error : missing ';' before identifier 'IEnumMoniker'C:\Program Files\Microsoft SDK XPSP2\Include\ObjIdl.h(113) : fatal error C1003: error count exceeds 100; stopping compilation


It can't really be the SDK that's at fault, can it? Anyone have any ideas here?
.:-v0d[KA]-:. <<>>
Stevieboy
Stevieboy
Hi, another link;

http://lab.msdn.microsoft.com/express/visualc/usingpsdk/default.aspx

This should link in the windows files as well.

Oh, almost forgot, the include paths shown on above link will have to be adjusted for the xp platfor sdk, they are given for the core sdk, also in the ignore libs under vc2005->projects ect, add ignore libcp.lib



(sorry, forgotton how to do clickies links again).
josh1billion
josh1billion
v0dka, now you just have to add the include directory. In VC++ 2005 Express Edition Beta, go to Tools->Options. Then, in the "Projects and Solutions" area, go to VC++ Directories. Change the "Show directories for" to "Include files." Click the "New Line" button (the one that looks like the Create Folder button in Explorer) and type C:\Program Files\Microsoft Platform SDK for Windows XP SP2\Include\ (or whatever else your path is).

Hope that helps.
Website (with downloads of my games)
Blog (updates on current projects)
Seeds of Time Online has returned!
v0dKA
v0dKA
What am I supposed to do to create a regular Win32 application? In my case, when I go under New Project, then under Visual C++, and finally under Win32 node, there's only a template for a console application. Where's the template for Win32? Am I supposed to download it? Currently, for lack of such option, I just selected Empty Project (.NET) under the .NET node under Visual C++. Would I be correct? Or is that the source of errors?

I followed all directions given to me correctly, as far as I know, and it still gives me the same slew of erros. Am I cursed?

EDIT:
Ooh, just found a new option, but I don't know if it's a good one. I went under console application, but under the options they give you, there's a radio button for "Windows Application". I clicked it, tried to build my file, and it now gives only one error:
LINK : fatal error LNK1104: cannot open file 'libcp.lib'

Firstly, can anyone explain why this file is needed? I looked for it in the SDK folder, it's really not there. Why is it looking for it? Secondly, is the option I selected wrong? Where can I get the Win32 template?

[Edited by - v0dKA on February 28, 2005 7:17:06 PM]
.:-v0d[KA]-:. <<>>
v0dKA
v0dKA
Still can't figure this out. Here's what the problem looks like:



Can anyone explain where the Win32 template is?
.:-v0d[KA]-:. <<>>
Ralphzehunter
Ralphzehunter
Quote:
Original post by v0dKA
Still can't figure this out. Here's what the problem looks like:

[picture]

Can anyone explain where the Win32 template is?

I have had that same problem. I still don't know how to fix it... I hope you learn how to.
Dave Hunt
Dave Hunt
IIRC, when you click Ok, you will get another dialog that will allow you to specify what kind of Win32 project you want to create.

edit -- If not, you can go into the project properties and set the type of project there.
Rhaal
Rhaal
Quote:
image
Add New Template Online...
- A momentary maniac with casual delusions.
v0dKA
v0dKA
Quote:
Original post by Rhaal
Quote:
image
Add New Template Online...


I guess I should have mentioned beforehand, but...



However, there is an option under Console Application for Windows application, and it works fine [smile]! In my earlier post, however, I explained that it requested a library (libcp.lib) that it couldn't find (scroll up a bit). I'll work on solving that, but does anyone happen to know reasons for that error?
.:-v0d[KA]-:. <<>>
josh1billion
josh1billion
Quote:
Original post by v0dKA
EDIT:
Ooh, just found a new option, but I don't know if it's a good one. I went under console application, but under the options they give you, there's a radio button for "Windows Application". I clicked it, tried to build my file, and it now gives only one error:
LINK : fatal error LNK1104: cannot open file 'libcp.lib'

Firstly, can anyone explain why this file is needed? I looked for it in the SDK folder, it's really not there. Why is it looking for it? Secondly, is the option I selected wrong? Where can I get the Win32 template?


Sounds like you need to add the library path in the same way you added the include path.. except in the Libraries area of course.
Website (with downloads of my games)
Blog (updates on current projects)
Seeds of Time Online has returned!

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.