Solved

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

Posted on 2004-10-12
5
931 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
ID: 12288078
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
ID: 12294544
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
ID: 12300367
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
ID: 12304174
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
ID: 12304182
Also I've downloaded  wceatl.h   but it doesn't change anything if I include it too
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Written by John Humphreys C++ Threading and the POSIX Library This article will cover the basic information that you need to know in order to make use of the POSIX threading library available for C and C++ on UNIX and most Linux systems.   [s…
C++ Properties One feature missing from standard C++ that you will find in many other Object Oriented Programming languages is something called a Property (http://www.experts-exchange.com/Programming/Languages/CPP/A_3912-Object-Properties-in-C.ht…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

829 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