Skip to content
This repository was archived by the owner on Jul 15, 2025. It is now read-only.
This repository was archived by the owner on Jul 15, 2025. It is now read-only.

call c++ dll by using loadlibrary #92

@ricky-yi

Description

@ricky-yi

Everything works when the environment setup with option I.

And because my dev machine can't connect to Internet, I use option 2 to setup node-gyp, it works ok but loading c++ dll with loadlibray, compile succeed, but run error by returning NULL handle.

are there any configure options should be set in option 2.

Thanks.

Following are the 2 options:

Environment setup and configuration:
•Option 1: Install all the required tools and configurations using Microsoft's windows-build-tools by running npm install -g windows-build-tools from an elevated PowerShell (run as Administrator).
•Option 2: Install dependencies and configuration manually
i.Install Visual C++ Build Environment: Visual Studio Build Tools (using "Visual C++ build tools" workload) or Visual Studio 2017 Community (using the "Desktop development with C++" workload)
ii.Install Python 2.7 (v3.x.x is not supported), and run npm config set python python2.7
iii.Launch cmd, npm config set msvs_version 2017

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions