Solved

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

Posted on 2004-10-12
5
925 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

ScreenConnect 6.0 Free Trial

Explore all the enhancements in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI, app configurations and chat acknowledgement to improve customer engagement!

Question has a verified solution.

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

When writing generic code, using template meta-programming techniques, it is sometimes useful to know if a type is convertible to another type. A good example of when this might be is if you are writing diagnostic instrumentation for code to generat…
In days of old, returning something by value from a function in C++ was necessarily avoided because it would, invariably, involve one or even two copies of the object being created and potentially costly calls to a copy-constructor and destructor. A…
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 additional member functions of the vector class. Specifically, the capacity and swap member functions will be introduced.

770 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