"You need a Windows 2000 or later to run this stub..."?
I am porting to vs.net 2003. I get the following compile time error:
fatal error C1189: #error : You need a Windows 2000 or later to run this stub because it uses these features:
the error is caused by the following code generated by MIDL.
#if !(TARGET_IS_NT50_OR_LATER)
#error You need a Windows 2000 or later to run this stub because it uses these features:
#error /robust command line switch.
#error However, your C/C++ compilation flags indicate you intend to run this app on earlier systems.
#error This app will die there with the RPC_X_WRONG_STUB_VERSION error.
#endif
I searched for TARGET_IS_NT50_OR_LATER and it is only in files generated by the MIDL.
The funny thing is that I am compiling on XP PRO! What do I not have set correctly?
thanx
How do I change the target system?
I am kinda new to VS.net 2003, so how do I go in and change the MIDL compiler to use the target of NT50 rather than NT40? I am going through the properties now and dont see it readily....
thanx
Re: How do I change the target system?
Quote:
Originally posted by roujesky
I am kinda new to VS.net 2003, so how do I go in and change the MIDL compiler to use the target of NT50 rather than NT40? I am going through the properties now and dont see it readily....
thanx
Hmm there is no /target switch as I know of it, not sure what gstercken is talking about. XP thing?
there is a
Quote:
/win32 Target environment is Microsoft Windows 32-bit (NT)
switch.
Re: Re: How do I change the target system?
Quote:
Originally posted by Mick_2002
Hmm there is no /target switch as I know of it, not sure what gstercken is talking about. XP thing?
No, just a command line switch for the MIDL compiler: MIDL Command-Line Reference on MSDN
Re: Re: Re: How do I change the target system?
Too hard for them to write that to stdout I guess
Midl /? <got nothing>
Bow
doesn't make sense with microsoft...
I just opened this project/workspace that was created in vc6. All I do is just build. I wonder where the midl compiler is kicked off? Microsoft is not making this easy.... :)
Re: doesn't make sense with microsoft...
Quote:
Originally posted by roujesky
I just opened this project/workspace that was created in vc6. All I do is just build. I wonder where the midl compiler is kicked off? Microsoft is not making this easy.... :)
If you create an ATL project, you can set the options in the MIDL tab.