作者在WTL演示程序中使用了哪些编译器? [英] What compiler did the author use in the WTL demo programs?

查看:86
本文介绍了作者在WTL演示程序中使用了哪些编译器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用VC6.0编​​译这些程序时有很多错误,作者写的文章是MFC程序员的WTL?

There are many errors when I compile those programs with VC6.0, the article that the author writes is "WTL for MFC Programmers"?

推荐答案

我是我不知道你读了哪篇文章,但我刚刚在他的系列文章的第一部分开头略读,发现了这个:



Well I don''t know which article you read, but I just skimmed over the beginning of part one in his series and found this:

This is the stuff I want you to read first, before proceeding on or posting messages to this article's discussion board.

This series of articles originally covered WTL 7.0 and written for VC 6 users. Now that VC 8 is out, I felt it was about time to update the articles to cover VC 7.1. ;) (Also, the automatic 6-to-7 conversion done by VC 7.1 doesn't always go smoothly so VC 7.1 users could get stuck when trying to use the demo source code.) So as I go through and update this series, the articles will be updated to reflect new WTL 7.1 features, and I'll have VC 7.1 projects in the source downloads.

Important note for VC 2005 users: The Express edition of VC 2005 does not come with ATL (or MFC for that matter) so you can't build ATL or WTL projects with the Express version.

If you are using VC 6, then you need the Platform SDK. You can't use WTL without it. You can use the web install version, or download the CAB files or an ISO image and run the setup locally. Be sure you use the utility to add the SDK include and lib directories to the VC search path. You can find this in the Visual Studio Registration folder in the Platform SDK program group. It's a good idea to get the latest Platform SDK even if you're using VC 7 so you have the latest headers and libs.

You need WTL. Download version 7.1 from Microsoft. See the articles "Introduction to WTL - Part 1" and "Easy installation of WTL" for some tips on installing the files. Those articles are rather out-of-date now, but still contain some good info. The WTL distribution also has a readme file with installation instructions. One thing which I don't think is mentioned in those articles is how to add the WTL files to the VC include path. In VC 6, click Tools|Options and go to the Directories tab. In the Show directories for combo box, select Include files. Then add a new entry that points to the directory where you put the WTL header files. In VC 7, click Tools|Options, click Projects then VC++ Directories. In the Show directories for combo box, select Include files. Then add a new entry that points to the directory where you put the WTL header files.

Important: While we're on the subject of the VC 7 include path, you must make a change to the default directory list if you haven't updated your Platform SDK. Make sure that


(VCInstallDir)PlatformSDK \ include 首先 上面的列表(
(VCInstallDir)PlatformSDK\include is first in the list, above (


VCInstallDir )包括, as 显示在这里:
VCInstallDir)include, as shown here:



引用Michael Dunn的MFC程序员的WTL,第一部分
参见特别是第四段。它是以如果你使用VC 6,你将需要Platform SDK ......开头的那个。



问候,


- Manfred


这篇关于作者在WTL演示程序中使用了哪些编译器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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