MFC对话框集成IE控件碰到的有关问题

MFC对话框集成IE控件碰到的问题
大家好,
 
  鄙人需要在MFC的对话框中,使用一个浏览器,查了一些资料,在对话框上集成了一个WEBBROWSER控件,
打开网页的功能都可以了.现在的问题是,IE控件与网页之间的交互,比较棘手,没有什么头绪,原理不是很清楚.

  好不容易在网上找了一个MFCHtml的实例,下载下来之后,居然编译有问题.错误如下:

Compiling...
CustomControlSite.cpp
d:\program files\microsoft visual studio\vc98\include\transact.h(226) : error C2059: syntax error : 'constant'
d:\program files\microsoft visual studio\vc98\include\transact.h(271) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
webbrowser2.cpp
d:\program files\microsoft visual studio\vc98\include\transact.h(226) : error C2059: syntax error : 'constant'
d:\program files\microsoft visual studio\vc98\include\transact.h(271) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
d:\program files\microsoft visual studio\vc98\include\oledb.h(17149) : error C2143: syntax error : missing ';' before '}'
Generating Code...
Error executing cl.exe.

  经过思考,添加了shdocvw.dll(浏览器的控件),解决了webbrowser2.cpp文件的编译错误.
CustomControlSite.cpp的编译错误还是没有解决,猜测可能也是缺少了什么库文件,具体又不知道是哪个.还不知道是不是
这个原因,请知道的朋友多多指教.

另外,还请懂这方面的朋友们提供一些文档资料之类的,谢谢!


------解决方案--------------------
把出现错误的代码贴出来
------解决方案--------------------
codeproject有人给出了解决方法

Cause: old MSVC6.0 headers and headers in Platform SDK are not compatible.
Solution: remove or rename ...\vc98\include\transact.h and compile with PSDK\include\transact.h

如果没装PSDK就下一个最新的PSDK装上,
http://www.microsoft.com/msdownload/platformsdk/sdkupdate/XPSP2FULLInstall.htm