Solved

#error : this stub requires an updated version of <rpcndr.h>

Posted on 2004-10-12
5
911 Views
Last Modified: 2010-10-05
How can I fix this error that I've got when compiled code from PSDK SP2 ?
0
Comment
Question by:desktop2
  • 3
  • 2
5 Comments
 
LVL 86

Expert Comment

by:jkr
Comment Utility
Does http://support.microsoft.com/default.aspx?scid=kb;en-us;234314 ("BUG: "This Stub Requires an Updated Version of <Rpcndr.h>" Error") aooly?
0
 

Author Comment

by:desktop2
Comment Utility
Look like this is the solution... Just one more question : it recommends to use header 'wceatl.h'
Where can I find this file for download?
I cant find it in PSDK_SP2, not on microsoft.com not on google :-(
0
 
LVL 86

Accepted Solution

by:
jkr earned 250 total points
Comment Utility
You won't have that unless you use the CE SDK. I'd suggest to find the file that holds the definition of 'MIDL_INTERFACE()' and #include that *before* rpcndr.h.
0
 

Author Comment

by:desktop2
Comment Utility
still some problem...
When I add following headers to my.cpp - it compiles OK

#define __RPCNDR_H_VERSION__// actually we do not have an updated version of <rpcndr.h>
#define MIDL_INTERFACE(x)   struct __declspec(uuid(x)) __declspec(novtable)// missed definition from rpcndr.h
#include <rpcndr.h>

But when I add header netfw.h

#define __RPCNDR_H_VERSION__// actually we do not have an updated version of <rpcndr.h>
#define MIDL_INTERFACE(x)   struct __declspec(uuid(x)) __declspec(novtable)// missed definition from rpcndr.h
#include <rpcndr.h>
#include <netfw.h>

I've got an errors : "Declaration syntax error" in netfw.h at following lines


EXTERN_C const IID IID_INetFwRemoteAdminSettings;
 MIDL_INTERFACE("D4BECDDF-6F73-4A83-B832-9C66874CD20E")//error in that line
    INetFwRemoteAdminSettings : public IDispatch
    {
    public:
        virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_IpVersion(
            /* [retval][out] */ NET_FW_IP_VERSION *ipVersion) = 0;
       

When I expand this code to MIDL_INTERFACE() definition I have same error in following line:


EXTERN_C const IID IID_INetFwRemoteAdminSettings;
    struct
__declspec(uuid("D4BECDDF-6F73-4A83-B832-9C66874CD20E")) //error in that line
__declspec(novtable)

    INetFwRemoteAdminSettings : public IDispatch
    {
    public:
        virtual /* [propget][id] */ HRESULT STDMETHODCALLTYPE get_IpVersion(
            /* [retval][out] */ NET_FW_IP_VERSION *ipVersion) = 0;
       

Is there something wrong with uuid() ? I cant find definition for uuid() in headers...

0
 

Author Comment

by:desktop2
Comment Utility
Also I've downloaded  wceatl.h   but it doesn't change anything if I include it too
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now