Visual Studio 2013 compiling Mozilla NPAPI sample considerations

Source: Internet
Author: User

1. Platform toolset Set Visual Studio 2013-windows XP (V120_XP).

2,Character set sets the use multi-byte Character set.

3. Add the following preprocessor definitions:

Nprt_exports

Xp_win32

Mozilla_strict_api

Xpcom_glue

Xp_win

_x86_

_crt_secure_no_warnings

4,precomplied Header Set not Using precompiled Headers.

5,npupp.h modified to npfunctions.h.

6, similar int16,int32 modification for int16_t,int32_t.

7, return pr_true,pr_false the direct TRUE,FALSE.

8,npstring utf8characters,utf8length modified to utf8characters,utf8length.

9 . Add stdio.h to ensure that printf can be called.

10,strdup modified to _strdup.

11,Module Definition File set nprt.def.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.