?
Solved

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

Posted on 2004-10-12
5
Medium Priority
?
951 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
[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
  • 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 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 viewer will learn how to pass data into a function in C++. This is one step further in using functions. Instead of only printing text onto the console, the function will be able to perform calculations with argumentents given by the user.
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.
Suggested Courses

777 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