1、Platform Toolset设置Visual Studio 2013 - Windows XP (v120_xp)。

2、Character Set设置Use Multi-Byte Character Set

3、添加以下Preprocessor Definitions:

NPRT_EXPORTS

XP_WIN32

MOZILLA_STRICT_API

XPCOM_GLUE

XP_WIN

_X86_

_CRT_SECURE_NO_WARNINGS

4、Precomplied Header设置Not Using Precompiled Headers

5、npupp.h修改为npfunctions.h

6、类似int16int32的修改为int16_tint32_t

7、返回PR_TRUEPR_FALSE的直接truefalse

8、NPStringutf8charactersutf8length修改为UTF8CharactersUTF8Length

9、添加stdio.h确保printf可以调用。

10、strdup修改为_strdup

11、Module Definition File设置nprt.def

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-08-29
  • 2021-10-13
  • 2022-01-13
  • 2021-07-01
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2021-12-12
  • 2021-08-08
  • 2022-01-02
  • 2021-09-01
  • 2021-12-16
  • 2021-06-21
相关资源
相似解决方案