Re: MIDL compiler error...or me?
From: Alexander Nickolov (agnickolov_at_mvps.org)
Date: 07/21/04
- Next message: Alexander Nickolov: "Re: COM Sockets"
- Previous message: Alexander Nickolov: "Re: ROT vs "class object table", possible documentation bug, etc"
- In reply to: Robert: "MIDL compiler error...or me?"
- Next in thread: Robert: "Re: MIDL compiler error...or me?"
- Reply: Robert: "Re: MIDL compiler error...or me?"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 20 Jul 2004 23:13:08 -0700
Yes, you missing a macro. Add /D_WIN32_WINNT=0x500
when building your proxy/stub DLL.
Note this renders your proxy/stub DLL unusable on Win NT4
and Win 9x/Me. If you want compatibility with older OSes,
you need to instead add the /no_robust switch on your MIDL
processing line.
-- ===================================== Alexander Nickolov Microsoft MVP [VC], MCSD email: agnickolov@mvps.org MVP VC FAQ: http://www.mvps.org/vcfaq ===================================== "Robert" <Robert@discussions.microsoft.com> wrote in message news:7C430C69-DA37-4C90-AEBD-A186A6ACF1A2@microsoft.com... > Hello everyone, > > I am trying to add a new method to a dual interface. The IDL goes like this: > > [id(3)] HRESULT GetLocations([out] SAFEARRAY(long) *locations); > > When I try to compile this, I get the error: > > fatal error C1189: #error : You need a Windows NT 4.0 or later to run this stub because it uses these features: > NMAKE : fatal error U1077: 'cl' : return code '0x2' > Stop. > Error executing nmake. > > Why is this happening? I am developing on Windows XP Pro. Is it the use of SAFEARRAY? Am I missing a directive or something? I use: > > import "oaidl.idl"; > import "ocidl.idl"; > > at the top. Am I missing something? Any help here would be greatly appreciated. > > Thank you > > Robert > >
- Next message: Alexander Nickolov: "Re: COM Sockets"
- Previous message: Alexander Nickolov: "Re: ROT vs "class object table", possible documentation bug, etc"
- In reply to: Robert: "MIDL compiler error...or me?"
- Next in thread: Robert: "Re: MIDL compiler error...or me?"
- Reply: Robert: "Re: MIDL compiler error...or me?"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|