C4867和ISAPI扩展解析映射 [英] C4867 and ISAPI extension parse maps

查看:91
本文介绍了C4867和ISAPI扩展解析映射的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们正打算将当前在VC 6下构建的IIS扩展DLL移植到Visual Studio2008.我在每个"ON_PARSE_COMMAND"上都收到错误C4867.和"DEFAULT_PARSE_COMMAND"宏.有关编译器错误的帮助指出,这通常是由于中断"了程序.为了更严格的一致性,在VS 2005中对编译器进行了一些更改,但这似乎也表明Microsoft已修复"了该问题.消息映射中的问题(因此我也认为它们将在解析映射中).在组成我们应用程序一部分的任何ActiveX控件上都没有出现此错误.

一个示例是:

ON_PARSE_COMMAND(EoeApiProcess,CEoeapiExtension,ITS_PSTR ITS_PSTR ITS_PSTR)

我们正在XP Pro SP2上构建.感谢任何帮助.

谢谢,
比尔

Hi,
 
We are tying to port an IIS extension DLL currently built under VC 6 to Visual Studio 2008. I get error C4867 on every "ON_PARSE_COMMAND" and the "DEFAULT_PARSE_COMMAND" macro. The help on the compiler error states that this is usually due to "breaking" changes made in the compiler with VS 2005 for more strict conformance, but it also seems to indicate that Microsoft "fixed" the issue within message maps (and so I would also think they would within parse maps). I did not get this error on any of the ActiveX controls that comprise part of our application.

One sample is:

ON_PARSE_COMMAND(EoeApiProcess,CEoeapiExtension,ITS_PSTR ITS_PSTR ITS_PSTR)

We are building on XP Pro SP2. Any help appreciated.

Thanks,
Bill

推荐答案

好,我知道了.操作员错误; \ ...我使用的是Windows 2003 SP1平台SDK,而不是VS 2008.一旦我解决了问题,便得到了预期的未找到类".因为事实证明VS 2008 MFC不再支持CHTTPServer等类.因此,我们回溯到VS 2005,在那里得到了支持,一切都很好.希望没有人会觉得这很有用,因为没有人会像我尝试将VS 2008/2005与VS 6支持的最新平台SDK一起使用时那样愚蠢! ...但是无论如何,这都是为了防万一:)

Bill
Ok, I figured it out. Operator error ;\ ... I was using the Windows 2003 SP1 Platform SDK instead of the VS 2008 one. Once I fixed that I got the expected "class not found" since it turns out VS 2008 MFC no longer supports CHTTPServer etc classes. So we retrograded back to VS 2005 where it is supported and all is well. Hopefully, no one will find this useful because no one will be a goofy as I was to try and use VS 2008/2005 with the last platform SDK supported with VS 6! ... but here it is anyway, just in case :)

Bill


这篇关于C4867和ISAPI扩展解析映射的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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