Link to home
Start Free TrialLog in
Avatar of CharlesCarleton
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
Avatar of Jaime Olivares
Jaime Olivares
Flag of Peru image

It works for me.
First of all, in your program file (.cpp) put the #include "rpcdce.h" before #include "stdafx.h"
ASKER CERTIFIED SOLUTION
Avatar of drichards
drichards

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of vijay_visana
vijay_visana

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
Avatar of CharlesCarleton

ASKER

Thanks guys for your help! I was getting frustrated with this problem.