CharlesCarleton
asked on
Why won't the rpcdce.h file compile in a Win32 Aplication?
I've been trying to compile the rpcdce.h in a Win32 Application and i've been getting this error:
c:\program files\microsoft visual studio\vc98\include\rpcdce .h(30) : error C2146: syntax error : missing ';' before identifier 'RPC_BINDING_HANDLE'
c:\program files\microsoft visual studio\vc98\include\rpcdce .h(30) : fatal error C1004: unexpected end of file found
I know that rpcdce.h compiles in a MFC Dialog based app but I need to create an application with an invisible window.
I would really appreciate some suggestions.
Charles
c:\program files\microsoft visual studio\vc98\include\rpcdce
c:\program files\microsoft visual studio\vc98\include\rpcdce
I know that rpcdce.h compiles in a MFC Dialog based app but I need to create an application with an invisible window.
I would really appreciate some suggestions.
Charles
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
This error may come duet to error in header file included just before rpcdce.h there if you forget to put ; then it may be causing problem check your header and cpp files to see is there any character (you may have typed it unintentionally).
You can also do one more check project setting define /p compiler option to send preprocessor to .i file after compiling check this file for RPC_BINDING_HANDLE and line before that
ASKER
Thanks guys for your help! I was getting frustrated with this problem.
First of all, in your program file (.cpp) put the #include "rpcdce.h" before #include "stdafx.h"