Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

MIDL target

251 views
Skip to first unread message

Jaap Havinga

unread,
Apr 10, 2003, 6:11:52 AM4/10/03
to
Hello,

Can anyone help me out on these two issues (I'm using VC7, on windows XP):

1) How can I set up the MIDL compiler to target Windows 98 & ME?
2) Also, how can I avoid that my program is linked to use oleaut32.dll
version 3.5, instead of the better distributed version 2.4?

Ad 1:
When I compile an idl file with MIDL option /target NT40 , the following
error is generated:
.....\objidl.idl(306) : error MIDL2455 : The feature cannot be used on the
target system : [async_uuid]

Looking at this line in the objidl.idl this async_uuid is enclosed in the
condition __midl >= 500
So if I set the __midl value < 500 and recompile again, I get another error:

.....\objidl.idl(1634) : error MIDL2455 : The feature cannot be used on the
target system : [async]

Obviously not a good solution.

Thanks in advance,

Jaap Havinga


Liju Thomas [MS]

unread,
Apr 14, 2003, 5:55:47 PM4/14/03
to
Have to tried /no_robust flag

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/midl/midl/_
no_robust.asp

--
thanks,
liju

This posting is provided "AS IS" with no warranties, and confers no rights.
"Jaap Havinga" <j.ha...@planet.nl> wrote in message
news:b73g65$t1e$1...@reader08.wxs.nl...

Jian-Shen Lin[MS]

unread,
Apr 15, 2003, 5:59:43 AM4/15/03
to
Starting with MIDL version 6.0.359, the default command line option for the
MIDL compiler is /Oicf /robust. To disable /robust, specify the /no_robust
option.

The MIDL compiler switches /env, /server, /sstub, and /out affect the
server stub file.
Note The MIDL compiler provided with Microsoft RPC uses a different
command-line syntax than the DCE IDL compiler.

Best Regards

Jian Shen

Jaap Havinga

unread,
Apr 17, 2003, 4:18:18 AM4/17/03
to
Ok, I tried
/target NT40 /no_robust
but still it gives the same error as without the /no_robust flag:

.....\objidl.idl(306) : error MIDL2455 : The feature cannot be used on the
target system : [async_uuid]

I added these options in the MIDL command line settings tab, field
'Additonal options'. The build log shows these flags are added.
All other standard included idl files are processed without error.
To reproduce this:
Create a new project using the mfc-application template, check automation in
advanced options. Add the midl options and compile the project's idl file.

Any other suggestions please?

Thanks
Jaap Havinga


--
Jaap Havinga
Author of ThreeDimSim
http://www.havingasoftware.nl

"Liju Thomas [MS]" <lijut...@microsoft.com> wrote in message
news:ugrecCtA...@TK2MSFTNGP10.phx.gbl...

Liju Thomas [MS]

unread,
Apr 17, 2003, 3:50:33 PM4/17/03
to
Have you tried just by using /no_robust flag?
Try it without specifying /target NT40

--
thanks,
liju

This posting is provided "AS IS" with no warranties, and confers no rights.
"Jaap Havinga" <j.ha...@planet.nl> wrote in message

news:b7lo2m$qva$1...@reader10.wxs.nl...

Jaap Havinga

unread,
Apr 17, 2003, 5:04:47 PM4/17/03
to
Using the single option /no_robust worked, but is the generated code
targeting to win98/me? The help says:
"When targeting Windows 95 (with DCOM installed), Windows 98, or Windows
Millennium, use the following:


/target NT40"ThanksJaap Havinga


--
Jaap Havinga
Author of ThreeDimSim
http://www.havingasoftware.nl

"Liju Thomas [MS]" <lijut...@microsoft.com> wrote in message

news:usb1cqRB...@TK2MSFTNGP12.phx.gbl...

Liju Thomas [MS]

unread,
Apr 18, 2003, 7:50:43 PM4/18/03
to
It should run on win98/me systems.

Platform SDK: Microsoft Interface Definition Language (MIDL)

/no_robust

The /no_robust switch directs the MIDL compiler to explicitly disable the
/robust command line feature. The /robust command line switch and its
associated features is the default compiler setting for MIDL version 6.0.359
and later.


midl /no_robust
Remarks
With MIDL version 6.0.359 and later, the MIDL compiler sets /robust by
default. The /no_robust command line switch must be used to disable the
/robust feature if generated stubs need to run on Microsoft Windows NT,
Windows 95/98, or Windows Me.


--
thanks,
liju

This posting is provided "AS IS" with no warranties, and confers no rights.
"Jaap Havinga" <j.ha...@planet.nl> wrote in message

news:b7n55s$37t$1...@reader08.wxs.nl...

0 new messages