?
Solved

Why won't  the rpcdce.h file compile in a Win32 Aplication?

Posted on 2004-08-24
5
Medium Priority
?
2,152 Views
Last Modified: 2013-11-20
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
0
Comment
Question by:CharlesCarleton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 55

Expert Comment

by:Jaime Olivares
ID: 11889064
It works for me.
First of all, in your program file (.cpp) put the #include "rpcdce.h" before #include "stdafx.h"
0
 
LVL 19

Accepted Solution

by:
drichards earned 2000 total points
ID: 11889392
You need to do:

    #include <rpc.h>
    #include <rpcdce.h>

to make it work.

And stdafx.h should be included first by convention if you are using precompiled headers.
0
 
LVL 7

Expert Comment

by:vijay_visana
ID: 11890270
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).
0
 
LVL 7

Expert Comment

by:vijay_visana
ID: 11890289
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
0
 

Author Comment

by:CharlesCarleton
ID: 11895283
Thanks guys for your help! I was getting frustrated with this problem.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
This tutorial will teach you the special effect of super speed similar to the fictional character Wally West aka "The Flash" After Shake : http://www.videocopilot.net/presets/after_shake/ All lightning effects with instructions : http://www.mediaf…

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question