Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-10-12
5
Medium Priority
?
961 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

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…
Errors will happen. It is a fact of life for the programmer. How and when errors are detected have a great impact on quality and cost of a product. It is better to detect errors at compile time, when possible and practical. Errors that make their wa…
The viewer will learn how to user default arguments when defining functions. This method of defining functions will be contrasted with the non-default-argument of defining functions.
The viewer will be introduced to the member functions push_back and pop_back of the vector class. The video will teach the difference between the two as well as how to use each one along with its functionality.

610 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