Visual Studio 2019升级 - 错误MIDL2025:语法错误:期望“IInterfaceNameHere”附近的类型规范 [英] Visual Studio 2019 Upgrade - error MIDL2025: syntax error : expecting a type specification near 'IInterfaceNameHere'

查看:192
本文介绍了Visual Studio 2019升级 - 错误MIDL2025:语法错误:期望“IInterfaceNameHere”附近的类型规范的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我已从2017年升级到visual studio 2019的解决方案,其中包含一系列升级到v142和SDK  10.0.17763.0的c ++项目。我现在在编译一个项目时出现问题,标题中包含错误:

I have upgraded a solution to visual studio 2019 from 2017 which contains a collection of c++ projects upgraded to v142 and SDK 10.0.17763.0. I am now having an issue compiling one project with the error in the title:

错误MIDL2025:语法错误:期望"IInterfaceNameHere"附近的类型规范

这不是Visual Studio 2017(v141)中的一个问题。

This wasn't an issue in Visual studio 2017 (v141).

任何指针都赞赏。

Stephen

推荐答案

有两点需要注意。

There are two things to point out.

首先,像midl,rc和mt这样的工具是Windows SDK的一部分,而不是Visual C ++工具集。如果您遇到midl的问题,那么这与Visual Studio版本无关,您可以通过将项目设置为使用10.0.17763.0 SDK来实现Visual Studio
2017中相同的操作。

First, tools like midl, rc and mt are part of the Windows SDK, not the Visual C++ toolset. If you are having an issue with midl, then this is independent of Visual Studio versions and you could probably get the same thing to happen in Visual Studio 2017 by setting your project to use the 10.0.17763.0 SDK.

其次,看看midl遇到问题会很有用。

Secondly, it would be useful to see what midl is having problems with.

作为解决方法,更改它在Visual Studio中使用的Windows SDK 2019年,可能与2017年使用的版本相同。

As a work around, change the Windows SDK that it is using in Visual Studio 2019, maybe to the same version as being used in 2017.


这篇关于Visual Studio 2019升级 - 错误MIDL2025:语法错误:期望“IInterfaceNameHere”附近的类型规范的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆