如何使用 Visual Studio 2008 编译 NPAPI 插件源代码?
(首先,抱歉英语不好!)
我在这里下载了源代码:http://minimizetotray.googlecode .com/files/SourceCode.zip - 这是一个 NPAPI 插件,能够将 Chrome 窗口最小化到系统托盘。
使用 Visual Studio 9.0,我打开文件 chromeTray.vcproj (位于 SourceCode.zip 的 DLL 目录中),尝试编译项目以获取 dll,但我得到了很多 错误消息!
使用记事本打开 chromeTray.vcproj,我发现它有一些对 XULRunner SDK 的引用,但我不知道如何在 Visual Studio 中使用该 SDK,我不确定是否需要其他任何东西才能使其工作。
任何人都可以看一下并告诉我需要什么才能让这个源代码工作(创建 dll )? 提前致谢!
(First, sorry for bad English ! )
I downloaded the source code here : http://minimizetotray.googlecode.com/files/SourceCode.zip - which is a NPAPI plugin that has the ability to minimize Chrome windows to system tray.
Using Visual Studio 9.0, I opened the file chromeTray.vcproj (located in DLL dir of SourceCode.zip ), tried compiling the project to get a dll but I got alot of error messages !
Opening chromeTray.vcproj using Notepad, I found that it has some references to XULRunner SDK but i dont know how to use that SDK with Visual Studio and I not sure if I need anything else to get it work.
Anyone can take a look and tell me what I need to get this sourceCode work ( creating the dll )?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不熟悉该项目,但从您的错误列表来看,您似乎缺少
atlbase.h
的包含内容。鉴于atlbase.h
确实包含在项目的stdafx.h
中,似乎有一些编译单元不包含stdafx.h
第一的。尝试让编译器在编译期间显示包含列表(项目设置 -> C/C++ -> 高级 -> 在我的 VC8 中显示包含),并查看谁在
atlbase.h
。I'm not familiar with that project, but from the list of your errors, it looks like you're missing an inclusion of
atlbase.h
. Givenatlbase.h
is indeed included in the project'sstdafx.h
, there seems to be some compilation unit that doesn't includestdafx.h
first.Try having the compiler show the list of includes during compilation (Project settings -> C/C++ -> Advanced -> Show Includes in my VC8), and see who's including ATL headers before
atlbase.h
.