Error in VC++ 2010 when generating solution

Posts 1–10 of 10 · Page 1 of 1
Error in VC++ 2010 when generating solution
So, im kinda new into programming in vc++ and I came across this error while trying to generate solution of a game menu.

Code:
1>------ Operación Generar iniciada: proyecto: d3dtemplate, configuración: Debug Win32 ------
1>  main.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  hacks.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  d3d9tex.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  d3d9int.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  d3d9dev.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  d3d9.cpp
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11280): error C2061: error de sintaxis : identificador '__RPC__out_xcount_part'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): error C2059: error de sintaxis : ')'
1>c:\program files (x86)\microsoft sdks\windows\v7.0a\include\objidl.h(11281): fatal error C1903: no se puede recuperar de errores anteriores; se detiene la compilación
1>  Generando código...
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
So it would be very nice if someone could help me out on this Thanks and sorry for my bad English.
You're having a Syntax error.
Look around the Project and Check what's missing.
Quote Originally Posted by Reflex- View Post
You're having a Syntax error.
Look around the Project and Check what's missing.
Im searching around but I just can't find it. Any tips?
Quote Originally Posted by ruekv View Post
Im searching around but I just can't find it. Any tips?
Well by the Looks of it you're missing a Parenthesis, I Could try TVing you.
Add me on skype please: dj-enfadi
there is only two errors:
__RPC__out_xcount_part not defined (used in objidl.h line 11280)
an extra ) detected in objidl.h line 11281
problem is I dont have any objidl on my proyect.

---------- Post added at 03:54 PM ---------- Previous post was at 03:38 PM ----------

Quote Originally Posted by giniyat101 View Post
there is only two errors:
__RPC__out_xcount_part not defined (used in objidl.h line 11280)
an extra ) detected in objidl.h line 11281
Ok I found this:

This is line 11279 to 11281 of objidl

virtual HRESULT STDMETHODCALLTYPE Finish_Pull(
/* [length_is][size_is][out] */ __RPC__out_xcount_part(cRequest, *pcReturned) BYTE *buf,
/* [out] */ __RPC__out ULONG *pcReturned) = 0;

What do I miss ?
Bump#1 Still need some help
Listen, those errors you have are coming from the windows sdk. Those sdk's are supposed to be compatible with the most recent versions of VC++. Unless you/someone/something tampered with those files the problem lies with your version of VC++.

Try:

Resetting your project configuration to defaults

_or_

Re installing the sdk

_or_

Re installing VC++

_or_

Upgrading to a new version of VC++

If all that doesn't work, then you're out of luck, and you'll have to fix the error yourself. I've done that sort of thing before, so post if it still doesn't work after the above steps.
Ok I fixed that stuff. Now I get this:

Code:
1>------ Operación Generar iniciada: proyecto: d3dtemplate, configuración: Debug Win32 ------
1>  hacks.cpp
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(13): error C2761: 'void hacks::CreateFontA(IDirect3DDevice9 *,std::string)' : no se permite la nueva declaración de la función miembro
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(14): error C2447: '{' : falta el encabezado de función (¿lista formal de estilo anterior?)
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(20): error C2761: 'void hacks::InitializeMenuItems(void)' : no se permite la nueva declaración de la función miembro
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(21): error C2447: '{' : falta el encabezado de función (¿lista formal de estilo anterior?)
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(32): error C2761: 'void hacks::Draw_Text(LPCSTR,int,int,D3DCOLOR)' : no se permite la nueva declaración de la función miembro
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(33): error C2447: '{' : falta el encabezado de función (¿lista formal de estilo anterior?)
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(38): error C2761: 'void hacks::DrawMenu(IDirect3DDevice9 *)' : no se permite la nueva declaración de la función miembro
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(39): error C2447: '{' : falta el encabezado de función (¿lista formal de estilo anterior?)
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.cpp(115): fatal error C1004: se encontró un final de archivo no esperado
1>  d3d9dev.cpp
1>c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\d3d9dev.cpp(216): error C2039: 'KeyboardInput' : no es un miembro de 'hacks'
1>          c:\users\daniel\documents\visual studio 2010\projects\d3dtemplate\d3dtemplate\hacks.h(27) : vea la declaración de 'hacks'
1>  Generando código...
========== Generar: 0 correctos, 1 incorrectos, 0 actualizados, 0 omitidos ==========
Posts 1–10 of 10 · Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us