新手chrome插件开发人员需要帮助开始使用NPAPI
Newbie chrome-plugin developer needs help getting started with NPAPI
虽然在我试图编译以下chrome插件之前只做了很少的c++,以便我可以看到它是如何工作的,并将其作为开发类似内容的起点:http://code.google.com/p/minimizetotray/source/browse/trunk/?r=17#trunk%2FDLL
到目前为止,我已经采取了以下步骤:下载源代码,在MS Visual Studio Pro 2008中打开它,并获得了一些sdk和头文件,它要求包括最新版本的NPAPI头文件:http://npapi-sdk.googlecode.com/svn/trunk/headers/
现在当我尝试编译并且不知道如何排序时,我得到以下错误:
Compiling...
JSMethods.cpp
c:documents and settingsdell customerdesktopdlljsmethods.cpp(92) : error C2039: 'UTF8length' : is not a member of '_NPString'
c:program filesmicrosoft visual studio 9.0vcincludepluginnpruntime.h(85) : see declaration of '_NPString'
c:documents and settingsdell customerdesktopdlljsmethods.cpp(101) : error C2039: 'UTF8characters' : is not a member of '_NPString'
c:program filesmicrosoft visual studio 9.0vcincludepluginnpruntime.h(85) : see declaration of '_NPString'
等等……
除了这两个错误,一切看起来都很好,它不要求丢失的包括或任何东西。任何帮助,感谢!
除非我在最新SDK上弄错了,否则_NPString结构体被定义为…
typedef char NPUTF8;
typedef struct _NPString {
const NPUTF8 *UTF8Characters;
uint32_t UTF8Length;
} NPString;
在你的代码中,你调用UTF8length而不是UTF8length(大写L)。
相关文章:
- 当回溯以零开始时,如何调试崩溃
- 需要帮助设置在C++中使用的Potrace
- 在指针的帮助下,文本文件中单词的频率
- 计算每个节点的树高,帮助我解释这个代码解决方案
- 如何在Qbutton的帮助下更改Q对话框的宽度
- 需要帮助将结构数组传递给函数
- C++需要帮助从用户那里获得一个整数,并确保它在另外两个整数之间
- 根据用户输入用字母填充矢量,并将"开始"和"结束"放在四肢
- 如何从头开始创建 avi 文件?
- 为什么 -mmacosx-version-min=10.10 不阻止使用标记为从 10.11 开始的函数?
- 自一周开始以来的秒数?
- 一旦双簧管录制开始,主 UI 线程就会被阻止
- GStreamer在开始任何播放之前进行搜索
- 需要帮助在 c++ 中将字符串转换为字符 ----错误 "const char *" 类型的值不能用于初始化 "char" 类型的实体
- 嗨,我需要帮助构建具有特定要求的程序.我已经开始,但只需要帮助完成即可
- 需要帮助开始构建我自己的哈希表
- tbb::concurrent_hash_map-需要帮助才能开始
- 新手chrome插件开发人员需要帮助开始使用NPAPI
- 需要帮助开始c++程序
- 需要帮助开始使用Boost.Python