Solved

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

Posted on 2004-08-24
5
2,124 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
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 500 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
MFC Dialog 9 49
Expand macro to include alternate header placement and naming 5 71
repeateFront java challenge 31 92
Annoying "thing" blocks my view 4 98
Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.

808 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